Hello,
I have a quick question for anyone that can help.
I was beta testing a portfolio site I had built in Flash CS4. I placed the swf into Dreamweaver CS4 and My preloader for the main swf does not register and a white box flashes for a sec before my main swf loads. I have the SAME pre-loader on 13 other pages and it works fine once inside the swf.
The backgrounds for both the swfs are set to black the html is set to black too.
The preloader it self is only 4k calling upon a 450k swf.
Here is the loader code:
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
l.load(new URLRequest(“portfolio.swf”));
function loop(e:ProgressEvent):void
{
var perc:Number = e.bytesLoaded / e.bytesTotal;
percent.text = Math.ceil(perc*100).toString() + “%”;
}
function done(e:Event):void
{
removeChildAt(0)
percent = null;
addChild(l);
}