Hello!

This is for my 1st ever flash site, so apologies for the perhaps silly question.

I've found this actionscript on the web to preload the full movie, however i want to change it to only preload upto certain frames i.e frame 28. Can this be done?

Here is the actionscript i'm using:

loadedFrames = getProperty("/", _framesloaded);
totalFrames = getProperty("/", _totalframes);
if (Number(loadedFrames)<Number(27)) {
percentageOutput = int((loadedFrames/totalFrames)*100);
setProperty ("loaderBar", _xscale, percentageOutput);
gotoAndPlay ("preload-loop");
} else {
gotoAndPlay ("begin-movie");
}