Hi all,
I have a few general questions about working with mixed .swf, some generated from the Flex framework and some generated from the Flash IDE.
Before I had decided to delve into flex, I devised a little framework that works well for me in the Flash IDE, in ActionScript 3.0 . The little framework takes a modular approach: It loads .swf’s created with the Flash IDE on demand, and I’m able to plug them in and running their content without problems. I’m still in the process of refining it, but the remote loading of .swf modules works without problems.
After reading about flex for a few weeks, I finally, kinda, got what the whole Flex thing was about. I decided to port my project over to using the Flex framework. I ditched the Flash IDE and downloaded FlashDevelop (which I have to say I like alot so far).
Yesterday, I decided to actually create a .swfs using MXML. The samples I ran worked fine by themselves, but when I tried to load those same modules from my framework thingy, they didn’t work so well. I solved some issues on my own, but these questions still linger:
-
When loading .swf files created in MXML dynamically, is there a way for them not to include the whole background. I mean, I have a simple 3 button widget created in MXML, but when I load that .swf, not only does that widget shows up, but the whole blue backdrop of its .swf, which is bigger than my stage!
-
Is there anything that can be done about the size of those things. The .swf that I create from my framework, using actionscript only, are currently about 5k. The little widgets I created using MXML are about 250k.
-
Any general tips and/or tricks when working with MXML created .swfs that could help me. My plan is to create my general modules using ActionScript only, and create .swf forms that are created using MXML. Then, I’ll load those forms at runtime and plug them into my modules. It seems possible, but it is still muddy for me.
Thanks for reading this friggin long post.