Sup All
I’m in the process of planning out my web portfolio website. I’m still an intermediate Flash/Actionscript designer and once again am seeking your guys help.
The situation at hand right now is learning how to do a zoom tween via actionscript. I want to learn more actionscript tweens and get away from tweening using keyframes/frames —as this creates HUGE file sizes. So i’m trying to be more efficent and keep file sizes down.
Basic idea is I have a background image with 3keypoints (movieClips) that the user can click on. Once you click on these the camera will zoom and pin-point whatever movieClip has been selected.
Here’s what I’ve been able to see so far. By applying this script to each separate movieClip it zooms in on the image or particular part of that image correct?
How would I modify this so that it zooms when the user clicks the appropriate movieClip.
I got this from from Here and i have also seen and read the Kirupa Tutorial about the starfield/racecar game etc. but it dosn’t sink in without examples right in front of my face.
Thanks All!
Edit And to reverse the zoom when the user wants to (un)zoom back out would I switch the
_xscale = _yscale += speed;
to
_xscale = _yscale -= speed; ??
[FONT=Courier New][LEFT][COLOR=#0000ff]onClipEvent[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
speed = [COLOR=#000080]2[/COLOR]; [COLOR=#808080]//speed of the zoom[/COLOR]
[COLOR=#000000]
}[/COLOR]
[COLOR=#0000ff]onClipEvent[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]_xscale[/COLOR] = [COLOR=#0000ff]_yscale[/COLOR] += speed;
[COLOR=#808080]//does the zoom[/COLOR]
[COLOR=#0000ff]_x[/COLOR] -= [COLOR=#000080]1[/COLOR];
[COLOR=#0000ff]_y[/COLOR] += [COLOR=#000080]2[/COLOR].[COLOR=#000080]5[/COLOR];
[COLOR=#808080]//this moves the movieClip down and to the left so it leaves[/COLOR]
[COLOR=#808080]//the screen entirely[/COLOR]
[COLOR=#000000]}[/COLOR]
[/LEFT]
[/FONT]