dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Unload All Movies After Certain Time

  1. #1
    Junior Member
    Join Date
    Aug 2002
    Posts
    2

    Unload All Movies After Certain Time

    Hi:
    Do any of you know how can i unload all level loaded swf's after certain ammount of innactivity. Something like: If no user is browsing the proyector, after 10 minutes it reset to the beggining and unload all movies.

    It is possible? Please Help
    Thanks in advance for any help
    cI)=IIIIII )====(AEnimouS))))

  2. #2
    Product Designer keyone.it's Avatar
    Join Date
    Aug 2001
    Location
    Rome, Italy.
    Posts
    1,625
    Well, maybe the best way to "reset" to the starting condition, is to LOAD the main movie again, on top of itself, instead of UNLOADING all the loaded movies.

    Anyway, the following function will be good for you:

    getTimer();

    It returnes the amount of time that has passed from the initial opening of the Flash movie, in milliseconds.

    You will have to make a loop that counts the seconds that pass from the last user activity, that will trigger the reloading of the movie when the value exceeds the amount you defined.

    Hope this helps,
    Altruism does not exist. Sustainability must be made profitable.

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