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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

What to do when Flash Movie ends

  • 09-03-2009 6: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,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, 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,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, 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,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, 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