At 7/30/10 11:59 PM, Marsume wrote:
I have a file that has quite a few sounds and large graphics with linkages that export on the first frame (so before the preloader starts, technically)
So there must be a way around this, anyone have any ideas?
I heard someone say that you can string files together using Flash Projects (*.flp files), but I tried and either he was lying or I just couldn't figure it out.
Also, is it possible to embed a swf in a swf? But then when it gets to uploading to websites and such, would I have to upload both files in order for it to work? (from my understanding, yes I would)
Like can it even be done? Have you ever done it? Is there anything you can think of that I should try?
I'm having this exact same problem: my entire game is exported MCs, sounds, bitmaps, etc..
I was able to find some pages that say if you choose to export on a different frame (linkage>unckeck export on first frame, and instead choose a different frame in the flash publish settings), and you use your object (eg a bitmap) before you declare it dynamically (i just placed it off screen somewhere), you can use it that way. This worked when I tested it with pure timeline actionscript, but I ran into problems with my .as files tho - they seem to not recognize the exported objects this way.
So my solution (for now) is to export everything in the first frame, and instead make a new flash file that loads the game into it, using something like:
var loader:Loader = new Loader();
var req:URLRequest = new URLRequest("movie.swf");
var percent:Number = 0;
var info:LoaderInfo = loader.contentLoaderInfo;
percent = 100*info.bytesLoaded/info.bytesTotal;
I'll post if I find anything new.