Click to See Complete Forum and Search --> : Simple Preload Actionscript Problem


Benji6996
08-13-2010, 09:09 AM
Hi Guys,

I am very new to actionscript so may question will probably seem very very basic. I am trying to add a preloader to my flash file. At the moment I have a little animation at the beginning which I would like to play whilst the file is loading then once the file has loaded I would like to hide that image and play the main animation.

I have tried several ways to do this but none have worked. Everytime I try to compile some code that I have found on the internet flash returns with an error saying 'expecting semicolon before leftbrace'. I have included and example of some code that returns this error.

stop();

ifFrameLoaded (100){
gotoAndPlay (2);
}

Any Suggestions?

Thanks in Advance,

Ben