Solved

How to zoom?

Posted on 2004-04-08
5
306 Views
Last Modified: 2010-04-03
Hi expert!
example, i have an circle and i want to auto Zoom out and Zoom in it! How to make it! certainly zoom slowly as a slide show!! thanks
0
Comment
Question by:manyspeed
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 19

Expert Comment

by:Montoya
ID: 10789083
do you want it to zoom when you do something? On click? On rollover? When do you want it to zoom out? When do you want it to zoom in?
Do you just want a loop of a growing and shrinking circle?

Please let us know and we can provide a better answer for you. Have a great day!


:)

0
 
LVL 9

Accepted Solution

by:
krishnaprathab earned 150 total points
ID: 10790242
Hi,

 Assuming you have a circle in your stage and two buttons , one named zoomin and another zoomout as the instance names. The script which would achieve what you are trying to so would be like:

zoomin:

on (press)
{
 _parent.myCircle._height =  _parent.myCircle._height+10;
 _parent.myCircle._width =  _parent.myCircle._width+10;
}

zoomout:

on (press)
{
 _parent.myCircle._height =  _parent.myCircle._height-10;
 _parent.myCircle._width =  _parent.myCircle._width-10;
}


I have posted you the example fla at the below loaction take a look at it :

http://s6.invisionfree.com/flashmx/index.php?showtopic=2

Thanks,
KP
0
 
LVL 1

Author Comment

by:manyspeed
ID: 10790770
thanks!
To Iammontoya,
Can you show me 3 situation? auto(like cartoon), click, rollover.
To krishnaprathab,
Thanks, i will check.



0
 
LVL 9

Expert Comment

by:krishnaprathab
ID: 10824905
Hi,

Did my reply answer your question. If so please close this question or if you need some more help on this feel free to ask.

Thanks,
KP
0
 
LVL 1

Author Comment

by:manyspeed
ID: 10849974
thanks, great.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question