I am using the preloader code:
host.loadMovie(“hwtp_main.swf”);
function preload(theClip) {
if (!theClip.doneLoading) {
if (theClip._framesloaded>0 && theClip._framesloaded == theClip._totalframes) {
gotoAndPlay(“Enter”);
} else {
theClip.stop();
}
bytesLoadedOutput = theClip.getBytesLoaded();
bytesTotalOutput = theClip.getBytesTotal();
var percentLoaded = (theClip.getBytesLoaded()/theClip.getBytesTotal());
LoadMask._width = 150*percentLoaded;
}
}
Script works fine and goes to framelabel “Enter” after swf has loaded. But then I have a button appear and I want to:
theClip.play()
Why won’t the clip start?
theClip.play() works if it replaces gotoAndPlay(“Enter”) in the script above
Please help!!!
RR