Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

preloader doesnt work when i export something for actionscript

Status
Not open for further replies.

lastingforhours

Programmer
Dec 29, 2004
49
US
i have a preloader that works like this...
Code:
[COLOR=blue]first frame:[/color]
var loaded:Number = _root.getBytesLoaded();
var total:Number = _root.getBytesTotal();
var percent:Number = Math.round((loaded/total)*100);
loadText.text = "Loading "+percent+"%";

[COLOR=blue]second frame:[/color]
if (loaded == total) {
	play();
} else {
	gotoAndPlay(1);
}

this works perfectly fine... unless i have something in that movie's library that is exported for actionscript. so i notice that i had the box checked to export that library item in the first frame, i figured "cool, this is the problem." yet when i do that, i can no longer use the attachMovie function with that exported library item. whats wrong here?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top