dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: AS2 Flash Movie Redirect

  1. #1
    Junior Member
    Join Date
    Sep 2008
    Posts
    19

    AS2 Flash Movie Redirect

    I have an splash page with a movie that plays, after the movie is finished I want it to redirect you to the home page. The movie is sitting on 1 frame in the timeline. Is there a way to have it redirect after the movie is finished playing??

    onEnterFrame = function() {
    getURL("http://www.website.com");
    }

    does not work.

    It is a dynamic site so there is no <head> tag I can put an HTML redirect in. I need to be able to do it through flash.

    any help would be great. thanks

  2. #2
    AS3 Mod
    Join Date
    Sep 2007
    Location
    O-H-I-O
    Posts
    2,385
    On the very last frame put
    PHP Code:
    getURL("http://www.website.com","_self"); 
    Do not put it in an onEnterFrame function.

  3. #3
    Junior Member
    Join Date
    Sep 2008
    Posts
    19
    Well where I imported the movie it sits on 1 frame. but this is what i did to fix it.

    my movie was running at 29 FPS and was 42 seconds long. So I just put a keyframe on the frame where the flash movie would have ended and put the
    getURL there. It worked, it's probably not the best way to do it, but it works.

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