Where to load an swf that will be used as a view

jdijr's Avatar

jdijr

07 Sep, 2011 05:03 AM

I'm wondering where to load a swf that has assets that will be used in a view class? Would it make sense to load the swf in the context.startup() method and wait for load completion to map the views to their mediators? Also where should the asset references be kept?

Thanks,
Jordan

  1. 1 Posted by neil on 07 Sep, 2011 07:22 AM

    neil's Avatar

    I would separate into a start up process, load the swc, then pass it the injector so it can map its payload of classes.

  2. 2 Posted by jdijr on 07 Sep, 2011 10:02 PM

    jdijr's Avatar

    So you're saying to map the swf instance in the injector so I can ask for it later in the classes I need it in? Is that possible and if it is can I get an example? Thanks for the response btw

  3. Support Staff 3 Posted by Ondina D.F. on 02 Nov, 2011 05:14 PM

    Ondina D.F.'s Avatar

    Hi Jordan,
    Feel free to reopen this discussion in case you have more questions or you need further assistance with this issue. Please open new threads for new issues.
    Thank you for posting
    Ondina

  4. Ondina D.F. closed this discussion on 02 Nov, 2011 05:14 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac