A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Flash CS3 AS3 imported swf

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    2

    Question Flash CS3 AS3 imported swf

    I am importing an SWF into my main SWF and it works fine my problem is that I am using a timer to detect inactivity and when the timer expires on that page the parent SWF goes back to the home page but the imported SWF stays. It appears on top of the home page. Is there a way to unload it without having to click a button? Thanks

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    Yes. Simply call unload on the loader you used to load it in the first place, assuming it's still in that loader. Optionally, remove the loader from the display as well.

  3. #3
    Junior Member
    Join Date
    May 2012
    Posts
    2
    Call unload... when..from what. I have it working on a button but I want it to unload when it the timer times out. I can't find an event to use to unload it. Like programming in MS Access there are events like lost focus or onexit something like that.

  4. #4
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    The Timer will fire TIMER_COMPLETE when it completes.

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