I'm working with a Flash project, but need some features of Flex. So I create a Flex application and build it to get the .swf file.
In the Flash project, I use 'Loader' class to load the .swf file created by Flex Builder. This .swf file is loaded and shown on stage well, however, it overlaps all other flash components on stage. The overlapping directions are right-wards and downwards.
The flex mxml file (component.mxml):
<s:Application xmlns:...
width="160" height="120">
...
</s:Application>
Loading to flash using 'Loader' class:
var loader:Loader = new Loader();
loader.load(new URLRequest("component.swf"));
loader.x = COMPONENT_POS_X; //constant
loader.y = COMPONENT_POS_Y; //constant
stage.addChild(loader);
When I try to set width for 'loader', the whole flex component disappears. What's going on?