I want to dynamically load a SWF file, before a particular view is created in a Flex 4.5 mobile app. Is it possible to load a SWF file into a SWFLoader before the SWFLoader is added to a container? I tried this but it didn't work.
I tried doing this using the AS3 Loader class and movieclips, but when I compile for iOS this method does not work for me. Is there a way to do what I want?
Firstly, why do you want to do this?
Secondly, you cannot run runtime-loaded SWF files on iOS devices.
By that I mean you can probably only use static SWF files like assets, but code inside them will not work.
If you still want to load it, try inside the initialize event handler.