Combinging SWFs and other resources into a single SWF file?

If you use the Flex compiler ( mxmlc or FlexBuilder) you can embed SWF files and create them at runtime, more or less like you would create any display object: package { public class Assets { Embed(source="another. Swf") public var another : Class; } } The code above embeds the file another. Swf and makes it possible to create it in another SWF, like this: package { import flash.display.

Sprite; public class MyFancySite extends Sprite { public function MyFancySprite( ) { var theOther : DisplayObject = new Assets.another(); addChild(theOther); } } } CSS, XML and any other file can be embedded in a similar fashion. Here's a description: http://livedocs.adobe.com/flex/3/html/help.html?content=embed_4.html.

If you use the Flex compiler (mxmlc or FlexBuilder) you can embed SWF files and create them at runtime, more or less like you would create any display object: package { public class Assets { Embed(source="another. Swf") public var another : Class; } } The code above embeds the file another. Swf and makes it possible to create it in another SWF, like this: package { import flash.display.

Sprite; public class MyFancySite extends Sprite { public function MyFancySprite( ) { var theOther : DisplayObject = new Assets.another(); addChild(theOther); } } } CSS, XML and any other file can be embedded in a similar fashion. Here's a description: http://livedocs.adobe.com/flex/3/html/help.html?content=embed_4.html.

I think you can just drag them into the library of your main swf and make references to them. At least the other SWFs you can, not sure about the CSS and XML.

These files are being generated by another program, so no FLAs to manipulate. – Evan Sep 16 '08 at 1:23 Sorry, then I think they'll have to be separate. You could create a wrapper FLA yourself, but depending on how those SWFs interact, I'd be surprised if that worked.

– UltimateBrent Sep 16 '08 at 17:51.

You can use the flex sdk and the EMBED tag for all those files, as for the xml and css you can just compile them in the wrapper swf produced by flex. It works by having a 'skeleton' mxml file that will be injected with the css and xml, and then embed the swf files.

Using flex to easily embed them is a good way to go, and if that doesn't sound like fun, think of it this way - XML and CSS data is really just a big long string - so hard-code the string data as a variable inside of your project, and use it as normal.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions