Though i've never tried loading a Flex swf in Flash, I have done the opposite and ran into similar issues. Ultimately all of the problems I encountered were related to either security issues or incompatibilities in the loaded swf making the whole app fail with no indication why.
To solve security problems make sure that if the loaded swf needs to communicate with the main movie or vice versa, that they are both in the same SecurityDomain AND ApplicationDomain, or that you make liberal use of flash.system.Security.allowDomain(). For general incompatibilities remember that the Flex app doesn't run on the stage but inside of a mx.managers.SystemManager instance. references to Application inside the Flex app will reference this class. Also remember that the SystemManager class is a MovieClip with two frames. The first frame is just a preloader so if you load a Flex swf into Flash, you will have to wait until the SystemManager gets to frame 2 and initializes everything before you can access it within Flash. Also I've found that when trying to add a MovieClip instance to a UIComponent in Flex, the whole app just quits. Though technically there is nothing wrong with doing this, Flex components react badly to display objects that are not desensants of UIComponent. I don't think there is no reason why what you are doing shouldn't work, you just have to work through it. Jamie On Dec 19, 2007 2:41 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello- > > I need to load a compiled AS3 based Flex 3 swf (a simple form with > data validation) into an AS3 based Flash project I'm working on in > CS3. I tried importing the .swf into the library pre-compile as well > as loading it at runtime and nothing shows up. > > Can this be done? > Any ideas? > > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

