Hey on my .swf, i have two scenes, one acts as a preloader and is called “preloader” and the other scene, which is called (“Scene1”) contains all the rest of my stuff.
on the preloader scene i have inserted the following code:
stop();
this.addEventListener(Event.ENTER_FRAME, loading);
function loading(e:Event):void
{
var total:Number = this.stage.loaderInfo.bytesTotal;
var loaded:Number = this.stage.loaderInfo.bytesLoaded;
bar_mc.scaleX = loaded/total;
loader_txt.text = Math.floor((loaded/total)*100)+ “%”;
if (total == loaded)
{
gotoAndStop(Scene1,“home”);
this.removeEventListener(Event.ENTER_FRAME, loading);
}
}
But i am getting the following errors.
‘access of undefined property Scene1’
When i put the Scene1 in quotations i get
‘cannot find scene1 label on the timeline’
can anyone help at all?
i have never had a question answered on this forum and i am hoping this time i can
Thanks
ChrisW