Simple Actionscript Camera
While surfing around I noticed a few people had been asking about ways to move the camera around in their flash movies without using tweens.
I’m fully aware that there are some great solutions to this problem, but they may be a bit more than what people need, so I decided to whip off a very simple solution that can be used by entry-level programmers, or people with no programming background at all.
In order for this to work you will need to contain your actual animations in a movieclip. This is typically preferable to scenes anyway, so most animators probably do this anyway.
In this movie clip, create a new layer for the camera control. Now all you need to do is download simple_camera.fla and grab the MovieclipCameraControl object from the library and paste it into the new layer of your movie.
Now, whenever you make a new keyframe and re-position the camera reticle, your movie will automatically pan itself until the camera is centered, or the edge of your scene reaches the edge of the stage.
If you are interested in how it works, read on.


Comments(2)