PDA

View Full Version : Zoom in / out ... please help!


austriaman
02-25-2006, 06:51 PM
Okay, so this will presumably be part of the last act of my diploma thesis,
which is due next Thursday. So if anyone has any ideas, PLEASE HELP! :(

This shouldn't be too hard to do for experienced Flash(wo)men...

All I want to do is create a mindmap that zooms in on a branch when you click on it... (using actionscript, not motion tween)
at the same time the red square of the overview menu (view example-files below) should also allign with
that branch... if you click on the overview menu, the whole thing should zoom out to its "up-state"...

been trying to figure it out myself, already found quite a remarkable tutorial here (http://www.kirupa.com/developer/actionscript/shape_camera.htm)...
...works as long as I don't change anything...


View Mind Map "up-state" here (http://austriaman.au.funpic.de/Mindmap.jpg).
View Mind Map "zoom-in" here (http://austriaman.au.funpic.de/Mindmap_closeup.jpg).
View Overview Menu here (http://austriaman.au.funpic.de/OVERVIEW_MENU.jpg).

...anyone who's already done that and could dispense any kind of script?
please help!

chill93101
02-25-2006, 07:05 PM
on the first frame add the actionscript:

stop()

this stops the animation from continuing

then on the first button add the script:

on(press){
gotoAndPlay(frame number)
}

and just increase the size of the image to suit your preference then add a motion tween.

repeat this for all of your arms.

attached is a very simple example.

austriaman
02-25-2006, 07:12 PM
on the first frame add the actionscript:

stop()

this stops the animation from continuing

then on the first button add the script:

on(press){
gotoAndPlay(frame number)
}

and just increase the size of the image to suit your preference then add a motion tween.

repeat this for all of your arms.

attached is a very simple example.
Hi, thanks for your help, but I'm trying to accomplish this effect by ONLY using actionscript
(motion tweens are just not reliable enough as they tend to turn out jerky on older computers...)

PLEASE HELP!

chill93101
02-25-2006, 07:38 PM
Hi, thanks for your help, but I'm trying to accomplish this effect by ONLY using actionscript
(motion tweens are just not reliable enough as they tend to turn out jerky on older computers...)

PLEASE HELP!

soz i really ont no how to do this, i have told you all i know, and that is not very much considering i am only 12!