PDA

View Full Version : flex equivalent of fl.containers.UILoader?


OmenKing
04-09-2008, 08:01 PM
What is the flex equivalent of fl.containers.UILoader?
I'm converting my Flash CS3 app over to Flex 3 but don't know where this class would be.

kahuja
04-09-2008, 09:41 PM
This is an object of AS3, hence should be available as is in Flex, also the live docs show the hierarchy that should work. I may be wrong, as I have not tried this.

sleekdigital
04-10-2008, 04:02 AM
Actually its not a native AS3 object its a flash CS3 ui component class like everything else in the fl package. In Flex you could use an Image Component or SWFLoader Component.

kahuja
04-10-2008, 04:16 AM
You said that this is a SWF file, then you can load and run as is. Unless I am missing a point here

sleekdigital
04-10-2008, 04:26 AM
You said that this is a SWF file, then you can load and run as is. Unless I am missing a point here

I'm not exactly sure what you are saying, but maybe this will clear things up... While its probably possible to use fl.containers.UILoader, it would not be available in flex unless you set a class path and import it. Also it wouldn't make much sense to do so. You would end up importing the base Flash component framework. Why do that in a flex application when you already have the flex framework available? There may be some circumstances where you would want to do that, but not to just get acceess to fl.containers.UILoader. it would make much more sense to use Image Component or SWFLoader Comonent of the flex framework.