|
-
zoom and pan
Hello all. I'm am making a small cartoon and I would like to be able to zoom in on the actor and pan around the room. My project is the same size as my can vas. Is this possible in Flash 8? I know nothing about AS yet but will learn soom I suppose. TIA
-
I don't know how to zoom, but here's an idea for panning:
function onEnterFrame() { // Everything between these two curley braces is part of a function called the "onEnterFrame" function. A function is a list of commands grouped together so that you can make many things happen in response to a single event. All events in the onEnterFrame function happen as often as the frame rate dictates. For example, if the frame rate was 12 frames per second, the events in the onEnterFrame function would be carried out 12 times per second.
_x += 10; // Moves everything 10 pixels to the right.
_y += 10; // Moves everything 10 pixels downwards.
} // Because the movements you've given everything are in the onEnterFrame function, the objects will move 10 pixels down and 10 pixels to the right 12 times every second, creating automatic animation.
-
great. I'll give it a try. Thank you.
Tags for this Thread
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
|