bucket
02-22-2010, 02:05 AM
Hello, I am currently having some trouble.
I am getting these errors when I try to play my flash thing I made:
http://i48.tinypic.com/6f6tt4.jpg
These are errors from a pre-loader I am trying to add with dynamic text saying "Loading Config - 50%" The percentage changes.
The text has the instance name: loadText
Also, in the background a rectangle fills up, something like this:
http://i49.tinypic.com/s43w49.jpg
The background half loaded filled red rectangle has the instance name: loadBar
And it seems to not be working, this is the actionscript 3 I have on the first frame:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
this.loadBar._width = getPercent * 100;
this.loadText = "Loading Config2 - " + Math.round(getPercent * 100) + "%";
if (bytes_loaded == bytes_total)
{
this.gotoAndPlay(3);
} // end if
If anyone needs the FLA source to make it work, I will be able to give it to you. You may not even need it to make it work.
I am getting these errors when I try to play my flash thing I made:
http://i48.tinypic.com/6f6tt4.jpg
These are errors from a pre-loader I am trying to add with dynamic text saying "Loading Config - 50%" The percentage changes.
The text has the instance name: loadText
Also, in the background a rectangle fills up, something like this:
http://i49.tinypic.com/s43w49.jpg
The background half loaded filled red rectangle has the instance name: loadBar
And it seems to not be working, this is the actionscript 3 I have on the first frame:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
this.loadBar._width = getPercent * 100;
this.loadText = "Loading Config2 - " + Math.round(getPercent * 100) + "%";
if (bytes_loaded == bytes_total)
{
this.gotoAndPlay(3);
} // end if
If anyone needs the FLA source to make it work, I will be able to give it to you. You may not even need it to make it work.