开发者

loader on flash template doesn't work

开发者 https://www.devze.com 2023-02-01 19:05 出处:网络
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.

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:

  1. Layer 1739 / Frame 3 --> Copy the code of the 'load0' instance
  2. Layer 1739 / Frame 3 --> Clear the key frame
  3. 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!

0

精彩评论

暂无评论...
验证码 换一张
取 消