I'm working on a flash template, and when i publish the site, the loader dosnt work. I check the code in the actions menu of the .fla
and i can't find an error. this is the code.
onClipEvent (load)开发者_开发技巧
{
total = _root.getBytesTotal();
}
onClipEvent (enterFrame)
{
loaded = _root.getBytesLoaded();
percent = int(loaded / total * 100);
text = percent + "%";
gotoAndStop(percent);
if (loaded == total)
{
_root.gotoAndPlay(4);
} // end if
}
this is the complete flash template. with the .fla
and all the files.
http://hotfile.com/dl/93339597/35e8fdb/new_28781.zip.zip.html
Here it is:
- Layer 1739 / Frame 3 --> Copy the code of the 'load0' instance
- Layer 1739 / Frame 3 --> Clear the key frame
- Layer 1739 / Frame 1 --> Paste the code you copied to 'load0' instance.
I don't really understand why you have the same preloaders on the same layer with the same instance name. The second one doesn't do anything there.
Hope it helps, good luck. Rob
OK the answer was give it by ROB (heartcode) and was:
Layer 1739 / Frame 3 --> Copy the code of the 'load0' instance
Layer 1739 / Frame 3 --> Clear the key frame
Layer 1739 / Frame 1 --> Paste the code you copied to 'load0' instance.
thanks!
精彩评论