PDA

View Full Version : Zoom via actionscript


Tyhand5
03-10-2006, 02:52 PM
Hello all,

I've created a movie (800x600) that has many layers. I've decided that it would be a nice effect to start my movie at full size buy then zoom in close to one particular aspect of the movie. I know that I could roll this into a SWF or just put everything into a movie symbol and do the work with the timeline ... but it seems to me that I should be able to control the zoom of the playing movie dynamically via actionscript.

I guess I want to imagine that the movie is stationary and I'm zooming the camera vs. the camera being stationary and making the movie larger so that it appears close.

It is analogous to the zoom that the players allows the end user to use by right clicking on a playing swf. (although I would control the x and y of the view)

Picture a standard movie with Nav buttons that handle panning and zoom but rather than acting on a single symbol, acting on everything on the stage (multi layers).

Anyone have any thoughts? Am I explaining this well enough?
Thanks in advance.

-Sam

billingsgate
03-10-2006, 03:31 PM
Check out the Flash camera. Answer to your prayers. And free:

http://www.oreillynet.com/pub/a/javascript/2004/08/17/flashhacks.html?page=2

Tyhand5
03-10-2006, 04:03 PM
Check out the Flash camera. Answer to your prayers. And free:


That looks like a perfect fit. Thanks for the link!!

-Sam

btw, I apologize to all for posting this in the wrong thread. Actionscript 2.0 would have been a much better home for this post.