Wel ok, it wasn't that clear... so here is the code that generates the % loaded
of a *.swf file.
So how can i make it so that LoadingProject_mc.loadedbytes_txt.text =
percentLoaded+" % loaded"; displays only the numbers before the period? not
something like 15.164684 % loaded but just 15 % loaded....
var loader:MovieClipLoader = new MovieClipLoader();
var loadListener:Object = new Object();
loadListener.onLoadStart = function(loadTarget) {
//some thing to preform on the load
};
loadListener.onLoadProgress = function(loadTarget, bytesLoaded, bytesTotal) {
var percentLoaded = bytesLoaded/bytesTotal*100;
LoadingProject_mc.loadedbytes_txt.text = percentLoaded+" % loaded";
};
loadListener.onLoadComplete = function(loadTarget) {
//some thing to preform on the complete
};
loader.addListener(loadListener);
Thanks for the help!
I'm not at a spanish like person by the way, rather belgium. :)
Matbe you geys now the solution of this little problem:
I have a site with some navigation buttons to brows trough some pictures (next
and prev)
Some times these buttons don't seem to respond correctly. Moving away from the
button and then again on it makes it work again. Sometimes it works without a
problem, somtimes it doesn't... strange
This is the code:
forward_btn.onRelease = function (){
this._parent.MainTarget_mc.nextFrame();
back_btn.onRelease = function (){
this._parent.MainTarget_mc.prevFrame();
Any suggestions? this is the site with these buttons
http://www.nu-web.be