Skip to main content
Known Participant
December 2, 2010
Question

full browser external preloader

  • December 2, 2010
  • 1 reply
  • 985 views

I have a preloader and on completion it loads an external .swf. My external swf has full browser actionscript. How can I get the external PRELOADER to load the external swf and retain its full browser settings?

This is my preloader actionscript:

var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
l.load(new URLRequest("tester.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);
}

This topic has been closed for replies.

1 reply

Inspiring
December 3, 2010

When you say Full Browser are you referring to Full SCREEN?

Known Participant
December 3, 2010

no, full Browser as in 100% width/height.

Lee_Burrows
Participating Frequently
December 4, 2010

the external swf loads into the preloader swf, so make the preloader width/height 100% and the external one will have the space it needs