Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 3 of 3
  1. #1

    Default Open New window!

    Could someone please help me figue this out.I have a full flash site and I want to be able to click on a button which opens a new window and starts to play my video. I have converted the video to .flv and I am playing it using Flash's Media Playback component. But I want to be able to click a button in my flash website that launches a new window which is just the right size for the player. Thanks In advance!

    regards,

    Graeme.

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    You can use javascript to open and size a new window.....

    Code:
    on (release) {
    getURL ("javascript:NewWindow=window.open('someURL.com','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=Yes,fullscreen=No');  NewWindow.focus();      void(0);");
    }
    Here is a very nice javascript pop up code generator...

    http://flash-db.com/PopUp/


    Hope it helps
    NTD

  4. #3

    Default button instances

    Hello,
    I am trying to make my button go to a new page. I have input the following code:
    on (release) {
    getURL ("javascript:NewWindow=window.open('http://somepage.com/ourteam.swf','newWin','width=400,height=300,left=0 ,top=0,toolbar=No,location=No,scrollbars=No,status =No,resizable=Yes,fullscreen=No'); NewWindow.focus(); void(0);");
    }


    and of course i have changed "somepage.com" to my URL. WHen i tried to play the movie i have the following error:
    Scene=Scene 1, Layer=about, Frame=120: Line 1: Mouse events are permitted only for button instances
    on (release) {


    But i have already changed the instances into button.
    help!

    thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. using buttons to open a new window
    By mlpenrod in forum Newbies
    Replies: 1
    Last Post: 07-26-2006, 05:10 PM
  2. open window in workspace
    By nebnimaj in forum Newbies
    Replies: 0
    Last Post: 05-16-2006, 05:41 PM
  3. flash button; unable to open in same window
    By nadeembabar in forum Newbies
    Replies: 1
    Last Post: 04-27-2006, 11:42 AM
  4. How to open new .swf in new window & keep original .swf
    By SuperMilk in forum Flash Scripting
    Replies: 4
    Last Post: 01-23-2005, 10:43 AM
  5. Open fla movie in new window
    By Stefan in forum Newbies
    Replies: 2
    Last Post: 10-20-2003, 10:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial