A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: unloading UILoader

  1. #1
    Member
    Join Date
    Jul 2008
    Posts
    40

    unloading UILoader

    In Flash CS5, I am using the UILoader Component. I am setting the source to a swf that is tracing a number on ENTER_FRAME. When I unload() the UILoader it continues to trace the number every frame!!! How do I properly unload the swf?

    Thanks,
    Jake

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Try the close() function.
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Member
    Join Date
    Jul 2008
    Posts
    40
    Thanks for the response... but I get this error:
    Error #2029: This URLStream object does not have a stream opened.

    I'm getting the feeling there is no way to completely remove a swf from within a swf unless you close flash player completely. This might work using some sort of "restartFlashPlayer()" method along with a Shared Object... but there is no restartFlashPlayer() method.

  4. #4
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Try the regular Loader object instead of the component. When you unload you can use the unloadAndStop() function. Alternatively load a foo movie into the UILoader, which should replace the former movie.
    - The right of the People to create Flash movies shall not be infringed. -

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