Link to home
Start Free TrialLog in
Avatar of rbakereu
rbakereu

asked on

Using a button to zoom-in/zoom-out a draggable movieclip

My goal is to be able to increase or restore (200% then back to100%) the size of the movieclip with a button click, yet still have it draggable in it's zoomed state.

What would the code for the button look like?

I've attached the sample FLA
WorldMap-sample.fla
Avatar of CyanBlue
CyanBlue
Flag of United States of America image

Which one is the button that you're trying to zoom/drag???

CyanBlue
Avatar of rbakereu
rbakereu

ASKER

The button doesn't exist yet — that's the easy part for me.
Well...  My problem is that I don't really understand what you are trying to do just by reading your question nor looking at the graphics in the file...

CyanBlue
Okay. I'll place one if that helps. Thanks for taking a look — I appreciate it. I'll upload a new file soon.
Better yet,

Here's a URL to a site that has a similar functionality that I'm trying to attain:

http://www.syfy.com/destinationtruth/map.php/

The button in the lower right hand corner is similar to what I have in mind.
ASKER CERTIFIED SOLUTION
Avatar of CyanBlue
CyanBlue
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
EXACTLY!

zoomIn.onPress = function ()
{
      All2_mc._xscale = All2_mc._yscale = 200;
}

zoomOut.onPress = function ()
{
      All2_mc._xscale = All2_mc._yscale = 100;
}


Thank you once again for your help!
Well...  Let me object to that and I am sure a moderator will come in and solve the problem...  You can also click on the Request Attention button...

CyanBlue