A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: redirection

  1. #1
    Junior Member
    Join Date
    Jan 2004
    Posts
    5

    redirection

    i have a flash webpage and then a flash intro to that website...i want the flash intro on a sepreate HTML page then the flash website. the problem is i dont have the .fla for the intro b/c my friend made it...is there a HTML code that will redirect it to another page when the flash movie completes?
    www.hydroproductions.com
    www.mikecox.tk
    www.hydromix.tk
    www.avixdesign.com

  2. #2
    Senior Member timBertrand's Avatar
    Join Date
    Mar 2004
    Posts
    213
    Why don't you just get the .fla from your friend?
    Really, with no communication between Flash and the page, it will be a b*tch.

    This is a little script I jacked from another forum, and I haven't tested it but give it a go, nonetheless:

    PHP Code:
    <body onLoad=preLoad();> 
    then in your <head> tags you'd have this:

    PHP Code:
    <script language="JavaScript1.2" type="text/javascript"
      function 
    preLoad() { 
        
    splash = new Image();
        
    splash.src "splash.swf";
        
    splash.onLoad setTimeout("location.href='http://www.whatever.com/whatever.html'",XXXXX);
      }
    </
    script
    where XXXXX is the number of milliseconds after the load that the page will re-direct (remember: 1000ms = 1s)

    If that doesn't work you could stick a button on the page with a caption that says "Click here to skip intro". That seems kind of amateur, though.

    I still say the best thing to do is get the .fla from your friend.

    -Tim

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    You could also load your intro.swf into a new movie and monitor it's current frame and knowing it's total frames, just override the re-direction with your's on a previous frame on which the present re-direction now occurs.

  4. #4
    Junior Member
    Join Date
    Jan 2004
    Posts
    5
    i tried to load it into a new movei adn do that..but the audio doesnt load with it
    www.hydroproductions.com
    www.mikecox.tk
    www.hydromix.tk
    www.avixdesign.com

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