Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

What to do when Flash Movie ends

  • 09-03-2009 07:21PM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 Posts: 35,522 ✭✭✭✭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, Registered Users 2 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, Registered Users 2 Posts: 35,522 ✭✭✭✭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, Registered Users 2 Posts: 325 ✭✭doyler442


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


  • Registered Users, Registered Users 2 Posts: 35,522 ✭✭✭✭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, Registered Users 2 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