Let’s start off by saying that I am the greenest of green newcomers to the world of Flash and Actionscript.
I have created several animations based off of the great camera movement tutorial found here:
http://www.kirupa.com/developer/actionscript/shape_camera.htm
Everything works great when I have my actionscript code in a single frame environment. However, I am currently trying to figure out how to create a simple menu/welcome screen that will allow the user to choose which animation to play before returning to the menu and choosing another.
When I move my code to frame 2 (as I am trying to create my menu on frame 1), my animation does not work correctly. As I am so new to this, I’m afraid there are very basic concepts I do not understand and this is preventing me from effectively researching and troubleshooting this problem on my own.
Using the Kirupa racing example tutorial files, if I simply move the actionscript to frame 2 I see a continuous loop which seems to include the initial placement of the scene’s components, but it doesn’t stay in the frame to allow for any camera movement or to continue with the animation. This makes sense to me, as it is continuously looping between frames 1 and 2.
When I attempt write this code on Frame 1: gotoAndPlay(2);, I simple see static images of the scene’s elements (the tire and the car) and no animation. I had expected it to play as normally as it does when the actionscript is located on Frame 1.
What basic concepts am I missing here and does anybody have any advice on how I should proceed? Thanks so much for any help you can provide.
And it appears that maybe I’ve posted this in the wrong forum…many apologies. I am using Actionscript 2.0 and Flash CS4.