Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
Results 1 to 1 of 1
-
01-19-2016, 05:28 AM #1New to the CF scene
- Join Date
- Jan 2016
- Posts
- 1
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Add preloader to fla. file with play button
I create a preloader using the following actionscript 2.0
stop();
preloader.onEnterFrame = function()
{
filesize = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize)
{
preloader.loadBar._xscale = 100*loaded/filesize;
}
else
{
preloader._visible = false;
gotoAndStop(2);
}
};
I put this on frame 1 of the action layer.
then created a play button using
on(press){
play();
}
But only preloader loads.
I created the preloader file "cnytest.fla" and "cnydrft.fla" where the play button is.
They work fine separately , but when I try to combine the two the above occurs



Reply With Quote
