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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

perfcentage moving from left to right as the percentage bar grows 1

Status
Not open for further replies.
onClipEvent (enterFrame)
{
this._x = 260 + _parent.percentloaded - 0.500000;
}

I just can't understand why "... -0.500000"

Regards,
Dragos.


 
Solved it.

...and here is the code on the main _mc:

onClipEvent (enterFrame)
{
kbloaded=int(_root.getBytesLoaded()/_root.getBytesTotal()*100);
percentage.percent = kbloaded + "%";
barwidth=kbloaded*1.195;
loadbar._width=barwidth;
percentage._x=barwidth;
if (kbloaded == 100)
{
_root.gotoAndPlay("main");
} // end if
}



Regards,
Dragos.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top