Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

What to do when Flash Movie ends

Options
  • 09-03-2009 7:21pm
    #1
    Registered Users Posts: 325 ✭✭


    Hi

    I have just created a very simple movie with flash - but how do I get it to redirect to my websites homepage when it finishes?


    Cheers


Comments

  • Registered Users Posts: 35,524 ✭✭✭✭Gordon


    It's been a while I used flash, but I think you create a blank frame and make sure you stop the movie and then use getUrl.

    stop();
    getUrl("http://www.website.com","_self");

    Or it's gotoUrl, I'll check if it doesn't work for you.


  • Registered Users Posts: 325 ✭✭doyler442


    Gordon wrote: »
    It's been a while I used flash, but I think you create a blank frame and make sure you stop the movie and then use getUrl.

    stop();
    getUrl("http://www.website.com","_self");

    Or it's gotoUrl, I'll check if it doesn't work for you.

    Hi

    Just tried them ther but it just loops back to the start of the movie.


  • Registered Users Posts: 35,524 ✭✭✭✭Gordon


    Sorry, forgot the caps:
    stop();
    getURL('http://www.test.com/', "_self");
    
    If the movie is still going back to the start - remove the getURL code and leave the stop(); code in the frame. If your movie is still going back to the start there is a problem. Maybe you haven't put the code on the frame as opposed to putting it on an object or something.


  • Registered Users Posts: 325 ✭✭doyler442


    Ya i had the stop(); and it worked but the navigation just won't do it for me ha


  • Registered Users Posts: 35,524 ✭✭✭✭Gordon


    doyler442 wrote: »
    Ya i had the stop(); and it worked but the navigation just won't do it for me ha

    Does this work?


  • Advertisement
  • Registered Users Posts: 325 ✭✭doyler442


    Gordon wrote: »
    Does this work?

    Yes, this worked alright - I'll have a look to see where I'm going wrong.


Advertisement