FORUMS: list search recent posts

Preloader causes trouble in other scene

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
shavonne wijesinghe
Preloader causes trouble in other scene
on Aug 12, 2008 at 3:14:51 pm

Hello..

I have a flash file with 2 scene..

1 scene - loader
2 scene - main

When i test the scene "main" (deleted the scene "loader" from my file) it works perfectly with the animations i have given it. But when I add the scene "loader", the "main" scene doesn't load completely..

Only with scene 2 "main"
http://88.34.161.130/formstudios/only_main.html

Scene 1 and 2 "loader" and "main"
http://88.34.161.130/formstudios/loader_main.html

code i used for the preloader

stop();

myInterval = setInterval(preloader, 100);

function preloader(){
if (_root.getBytesLoaded() >= _root.getBytesTotal() ){
gotoAndStop("main", 1);
clearInterval(myInterval);
}
}



Any idea what this could be??

Thank you


Return to posts index

Pieter Helsen
Re: Preloader causes trouble in other scene
on Aug 12, 2008 at 4:19:42 pm

gotoAndStop("main", 1);

Here's the problem. Read the line and try to figure out what happens ;) There's another, similar command that goes to the 'main' scene and starts playing from frame 1.

Kind regards,
Pieter

General notice: from now on, I would like to ask everyone to put [AS2] or [AS3] (corresponding to the version of actionscript you are using on your project) in front of their post titles when the question is actionscript related! Please help us help you faster. Thank you.


Return to posts index

shavonne wijesinghe
Re: Preloader causes trouble in other scene
on Aug 13, 2008 at 8:20:52 am

;) Thanks pieter.. I didn't notice..
i used gotoAndPlay and now it works..





Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]