• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1783
  • Last Modified:

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
0
rbakereu
Asked:
rbakereu
  • 4
  • 4
1 Solution
 
CyanBlueCommented:
Which one is the button that you're trying to zoom/drag???

CyanBlue
0
 
rbakereuAuthor Commented:
The button doesn't exist yet — that's the easy part for me.
0
 
CyanBlueCommented:
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
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
rbakereuAuthor Commented:
Okay. I'll place one if that helps. Thanks for taking a look — I appreciate it. I'll upload a new file soon.
0
 
rbakereuAuthor Commented:
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.
0
 
CyanBlueCommented:
Something like this???

CyanBlue
WorldMap-sample.fla
0
 
rbakereuAuthor Commented:
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!
0
 
CyanBlueCommented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now