Steps to be followed before Unloading any SWF

1. Tell any loaded .swf child assets to disable themselves.
2. Stop any sounds from playing.
3. Stop the main timeline, if it is currently playing.
4. Stop any movie clips that are currently playing.
5. Close any connected network objects, such as instances of Loader, URLLoader, Socket, XMLSocket, LocalConnection, 6. NetConnections, and NetStream.
7. Release all references to cameras and microphones.
8. Remove all event listeners
9. Stop any currently running intervals (via clearInterval()).
10. Stop any Timer objects (via the Timer class’s instance method stop()).
11. Dispose all subobjects
12. Release all references to external objects
In future Flash Player 10, does these by calling the Loader class’s new method unloadAndStop().

  1. Hi,

    Devaraj, Sorry 2 write this post in this comment jus want 2 contact u in any way thats y.

    I am arulmurugan from calsoft. I am in ur Linkedin Connection.

    Pls help me i have a error in Flex example .
    The example is the one i found in
    http://www.adobe.com/devnet/flex/

    scroll to the bottom of the page u will see the flex community rss widget.

    the source is here.
    http://www.adobe.com/devnet/flex/srcview/index.html

    when i download it and run it. It shows many errors.

    pls help me.

    The errors are as follows.

    Severity and Description Path Resource Location Creation Time Id
    1023: Incompatible override. Widget/src/com/universalmind/community/widgets ArticlePod.mxml line 171 1219651281140 2270
    1023: Incompatible override. Widget/src/com/universalmind/community/widgets EventPod.mxml line 177 1219651281125 2266
    1023: Incompatible override. Widget/src/com/universalmind/community/widgets WeblogPod.mxml line 38 1219651281656 2273

    1061: Call to a possibly undefined method createListChangeEvent through a reference with static type Class. Widget/src/com/universalmind/community/widgets ArticlePod.mxml line 198 1219651281156 2272
    1061: Call to a possibly undefined method createListChangeEvent through a reference with static type Class. Widget/src/com/universalmind/community/widgets EventPod.mxml line 212 1219651281140 2269
    1061: Call to a possibly undefined method createListChangeEvent through a reference with static type Class. Widget/src/com/universalmind/community/widgets WeblogPod.mxml line 137 1219651281671 2276
    1061: Call to a possibly undefined method createListChangeEvent through a reference with static type Class. Widget/src/com/universalmind/community/widgets WeblogPod.mxml line 147 1219651281687 2277
    1119: Access of possibly undefined property list through a reference with static type mx.events:ListEvent. Widget/src/com/universalmind/community/widgets ArticlePod.mxml line 173 1219651281156 2271
    1119: Access of possibly undefined property list through a reference with static type mx.events:ListEvent. Widget/src/com/universalmind/community/widgets EventPod.mxml line 179 1219651281140 2268
    1119: Access of possibly undefined property list through a reference with static type mx.events:ListEvent. Widget/src/com/universalmind/community/widgets WeblogPod.mxml line 44 1219651281671 2274
    1119: Access of possibly undefined property list through a reference with static type mx.events:ListEvent. Widget/src/com/universalmind/community/widgets WeblogPod.mxml line 49 1219651281671 2275
    1119: Access of possibly undefined property LIST_CHANGED through a reference with static type Class. Widget/src/com/universalmind/community/widgets EventPod.mxml line 49 1219651281140 2267
    Can not resolve a multiname reference unambiguously. com.universalmind.community.events:ListEvent (from D:\Widget\src\com\universalmind\community\events\ListEvent.as) and mx.events:ListEvent (from C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\libs\framework.swc(mx/events/ListEvent)) are available. Widget/src/com/universalmind/community/widgets ArticlePod.mxml Unknown 1219651280328 2262
    Can not resolve a multiname reference unambiguously. com.universalmind.community.events:ListEvent (from D:\Widget\src\com\universalmind\community\events\ListEvent.as) and mx.events:ListEvent (from C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\libs\framework.swc(mx/events/ListEvent)) are available. Widget/src/com/universalmind/community/widgets ArticlePod.mxml Unknown 1219651280328 2263
    Can not resolve a multiname reference unambiguously. com.universalmind.community.events:ListEvent (from D:\Widget\src\com\universalmind\community\events\ListEvent.as) and mx.events:ListEvent (from C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\libs\framework.swc(mx/events/ListEvent)) are available. Widget/src/com/universalmind/community/widgets EventPod.mxml Unknown 1219651280906 2264
    Can not resolve a multiname reference unambiguously. com.universalmind.community.events:ListEvent (from D:\Widget\src\com\universalmind\community\events\ListEvent.as) and mx.events:ListEvent (from C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\libs\framework.swc(mx/events/ListEvent)) are available. Widget/src/com/universalmind/community/widgets EventPod.mxml Unknown 1219651280921 2265
    Can not resolve a multiname reference unambiguously. com.universalmind.community.events:ListEvent (from D:\Widget\src\com\universalmind\community\events\ListEvent.as) and mx.events:ListEvent (from C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\libs\framework.swc(mx/events/ListEvent)) are available. Widget/src/com/universalmind/community/widgets WeblogPod.mxml Unknown 1219651280265 2260
    Can not resolve a multiname reference unambiguously. com.universalmind.community.events:ListEvent (from D:\Widget\src\com\universalmind\community\events\ListEvent.as) and mx.events:ListEvent (from C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\libs\framework.swc(mx/events/ListEvent)) are available. Widget/src/com/universalmind/community/widgets WeblogPod.mxml Unknown 1219651280265 2261


    T.Arulmurugan
    My Blog : http://arulmurugant.blogspot.com
    http://www.flickr.com/photos/arulmurugan/

  2. Hi Arul,
    The problem occured because of the ListEvent as there is another default ListEvent is available in flex framework.swc. the override was incomplete. I have modified the files and mailed you the latest source files to your gmail account.
    Regards,
    Devaraj

    • Aravind
    • October 6th, 2008

    Hi ,

    Iam also getting the same error ..Could you please send me the updated codebase..Please..

    Vidya.

  3. Hi Vidya,
    I don’t have the codebase available with me, can mail you within 2 days. Else, rename ListEvent to any other name. It solves the bug.
    Devaraj

  4. Hi Devaraj:
    I get same error ..Could you please send me the updated code too.
    Thank you a lot.

    Jimmy

  5. Dear Devaraj,

    It is working now. Thanks!

    Regards

    Jimmy

    • Carlos
    • January 4th, 2010

    I rename ListEvent to other name but it not work. Can any body send me de update code or tell me where to get it?

    Many Thanks

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: