A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: [Resolved] [Resolved] [Resolved] goto new page after swish intro

  1. #1
    Junior Member
    Join Date
    Aug 2000
    Posts
    2
    I have put a swish file on my index.htm page. I want the program to go to another page after it has finished playing the swish file. How do I do this?
    I have a skip intro button on my index.htm page that takes the user when ever they wish to the home.htm page, but I want swish to go to the home.htm page automatically after it has played the swish file once.

    Please help me out !!

    Thanks,
    Mark

  2. #2
    Registered User
    Join Date
    Jul 2000
    Posts
    8

    2 a new url

    hi,

    in your last scene ... select the scene name and in the last frame ... add action, go to url ... page2.htm




  3. #3
    Junior Member
    Join Date
    Aug 2000
    Location
    UK
    Posts
    16

    Me too..!

    I'm Ok setting up yje link to a new page but I need to take it to a window that has a stipulated size...ie...like Javascript!! Any help??

    SMURF

  4. #4
    Junior Member
    Join Date
    Aug 2000
    Posts
    2
    Doesn't seem to work, do matter URL I put in, http://www.swish.com is launched.

    Also I don't want the user to have to do an action like press a mouse button. The program should move to the new URL byitself at the end of the swish movie.


  5. #5
    N' then I might just
    Jump back on
    An' ride
    Like a cowboy
    Into the dawn
    ........To Montana.
    david petley's Avatar
    Join Date
    Jun 2000
    Location
    not in Montana ™
    Posts
    10,192

    mround,
    are you using one of the SWiSH demos as the basis of your project? If so, select your scene,click on the scene tab in SWiSH and you will see that a URL has been assigned to the scene, remove that and it will probably work for you (presuming you are using SWiSH demo, that is).
    re - where to put your action, click in the scene timeline in the frame you want this action to occur, and then click on the Action tab. Select 'Go to URL' and enter your URL and then select your target from the dropdown menu, 'blank' is a new browser window.
    david p.
    Originally posted by mround
    Doesn't seem to work, do matter URL I put in, http://www.swish.com is launched.

    Also I don't want the user to have to do an action like press a mouse button. The program should move to the new URL byitself at the end of the swish movie.


  6. #6
    Junior Member
    Join Date
    Aug 2000
    Posts
    10
    This is easy

    create a javascript code to open the new window with the stimulated size in the html file the swf is located on, then tell the last frame of the swf file to go to url..javascript command

    problem solved

  7. #7
    N' then I might just
    Jump back on
    An' ride
    Like a cowboy
    Into the dawn
    ........To Montana.
    david petley's Avatar
    Join Date
    Jun 2000
    Location
    not in Montana ™
    Posts
    10,192
    hellrazor,
    easy if you know how!!
    do you have an example that mround could follow?
    If so, help him (and a lot of other people) by posting the appropriate code. This has been a question that many forum members have asked.
    david p.
    Originally posted by hellrazor
    This is easy

    create a javascript code to open the new window with the stimulated size in the html file the swf is located on, then tell the last frame of the swf file to go to url..javascript command

    problem solved

  8. #8
    Junior Member
    Join Date
    Aug 2000
    Posts
    10
    Ok here goes the javascript:

    <script language="JavaScript">
    function YOURNAME() {
    window.open('NAMEHERE.html','EANITHING','toolbar=( yes/no),location=(yes/no),directories=(yes/no),status=(yes/no),menubar=(yes/no),resizable=(yes/no),copyhistory=(yes/no),scrollbars=(yes/no),width=(xxx in pixels),height=(xxx in pixels)');
    }
    </script>


    in the frame action go to url

    javascript:YOURNAME()

    questions reply back

  9. #9
    N' then I might just
    Jump back on
    An' ride
    Like a cowboy
    Into the dawn
    ........To Montana.
    david petley's Avatar
    Join Date
    Jun 2000
    Location
    not in Montana ™
    Posts
    10,192
    hellrazor,
    thank you very much. I will give this a go myself and see what happens for me. If this works you'll be a hero here.
    once again, thank you.
    david p.
    Originally posted by hellrazor
    Ok here goes the javascript:

    <script language="JavaScript">
    function YOURNAME() {
    window.open('NAMEHERE.html','EANITHING','toolbar=( yes/no),location=(yes/no),directories=(yes/no),status=(yes/no),menubar=(yes/no),resizable=(yes/no),copyhistory=(yes/no),scrollbars=(yes/no),width=(xxx in pixels),height=(xxx in pixels)');
    }
    </script>


    in the frame action go to url

    javascript:YOURNAME()

    questions reply back

  10. #10
    Junior Member
    Join Date
    Aug 2000
    Location
    UK
    Posts
    16

    Acknowledged

    Thanks for the response.

    I understand the principle....but wouldn't have thought of it myself.
    CHEERS - I'll give it a go.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center