Get your own customer support community
 

How to have a loading bar for ModestMap?

I want have a loading bar for the ModestMap, i tried to write code like this:
var txt:TextField = new TextField();
txt.x = 100;
txt.y = 100;
addChild(txt);
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS,loadingHandler);
function loadingHandler(event:ProgressEvent):void {
var loadInfo:uint = (event.bytesLoaded / event.bytesTotal)*100;
txt.text = String("loading:" + loadInfo + "%");
}

but it does not work, until the load finished, the txt cant be visible, i dont know why.
if i want this bar in flash cs3, how should i do ?
waiting your help, thanks!
 
sad I’m confused
Inappropriate?
5 people have this question

User_default_medium