A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Need to Loop Movie only 3 times

Hybrid View

  1. #1
    Junior Member
    Join Date
    Jun 2009
    Posts
    1

    Question

    what if i want to redirect to an specific URL after the 3 loops?

  2. #2
    Junior Member
    Join Date
    Sep 2009
    Posts
    2

    Looping

    Ifields ---

    Look at the file MyKal100 provided. It works and it's a great starting foundation for what you can do with looping. Take a look at his coded frames. The first frame of code is the variable. The last frame of code is the If Then statement based on the variable.

    If you look at the first part of the code in the last frame, you'll see
    if (countMe==howManyTimes) {
    stop();


    That is saying that if the movie has played 3 times, then "stop", in which the player will stop on that particular frame. Replace the stop(); code with a "getURL" function. Like this exactly but replace the full URL path with your own:
    getURL("http://www.yourdomain.com");

    Hope that helps. MyKal100 just helped me big time even though the post is 4 years old.

  3. #3
    Junior Member
    Join Date
    Sep 2009
    Posts
    2
    CCSCREATIVE,

    My post was for you instead of Ifields. Sorry.

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