-
i'm having trouble playing and controlling scenes. I have a preloader that is in a "preload" scene and then a "main" scene. Basically when the contents of "main" have been loaded by "preload" then it gotoAndPlay("main",1);
What's happening is that the "main" scene is just showing up, and it's not playing any of the animation in the timeline of the scene.
-
you have to give more details than that, because what you are saying should work.
you should try thowing in trace() statements to see how far the movie head gets.
-
Originally posted by ironmang
you have to give more details than that, because what you are saying should work.
right... is there a stop asction on frame one of main? are you sure your using gotoAndPlay not gotoAndStop? can you preview the scene and it plays correctly?
-
There is definately no stop action on frame one of main, and i'm using gotoandplay. When i play the "main" scene the movie animation runs fine. When i preview it, it doesn't seem to work.
What should i run the trace on?
-
what code are you using for the preloader?
-
I'm basically trying to follow the Advanced bytes-loaded Preloader by Cathode tutorial
http://www.flashkit.com/tutorials/Ac...12/index.shtml
-
This is basically the main code that is being used for the preloader
loadedbytes=getBytesLoaded();
totalbytes=getBytesTotal();
loadedkbytes=Math.ceil (loadedbytes/1000);
totalkbytes=Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
gotoAndPlay("main",1);
;
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.loader) {
gotoAndStop (_root.frame);
}
-
it probably won't make a difference but, get rid of the extra semicolin after gotoAndPlay
gotoAndPlay("main",1);
;
is main spelled correctly, it's not Main or Maine or Scene 1
can you post your fla somewhere?
-
have you tried using the tutorials fla and workin backwards from there?
another thing- if you want to see trace statements you have to do test movie, because they do not show up in preview mode.
-
The file you'll want to look at is the loader.fla
http://www3.telus.net/public/kellyco
The tutorial actually has the same problem. I added a small animation to the scene in the original tutorial fla file and it doesn't bring up the animation.
-
i got rid of the tell target thing and umm... here...
http://gsolo.com/temp/loader.fla
-
Senior Member
YES
Originally posted by brougham
This is basically the main code that is being used for the preloader
loadedbytes=getBytesLoaded();
totalbytes=getBytesTotal();
loadedkbytes=Math.ceil (loadedbytes/1000);
totalkbytes=Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
gotoAndPlay("main",1);
;
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.loader) {
gotoAndStop (_root.frame);
}
YES..I have the SAME problem. ( even used nextScene(); )instead of ( gotoAndPlay("main",1); )
I did this to figure out...
1. in the MAIN scene (frame 1), adding action script of ( play(); )
Buy the way...sometimes u don't need to add play(); in frame1. but it does work ( a bugs ?? don't know )
Cheers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|