Ok, i have this character, lets take a robot for example. And I have this magnifying glass. Which is a circle. How do I make it so that when you press and drag the glass the magnifying glass automatically locks onto the center of ur mouse while the mouse is hidden (mouse.hide) - And also, the magnifier zooms (makes bigger) in whatever part you move it to.
How would I do this? And please dont give me tutorial from flashkit.com, i’ve went there, and the one perfect tutorial I found messed up.
I deleted this thread from the Flash MX forums, and thought it would be better to post it on the Flash Actionscript forums.
Come on Guys! PLEASE HELP ME. I’m really trying to learn this thing.
I know it has to do with MC’s, masks consisting of the character 50% scaled in one layer and 100% in the other. Well, I took a big wild shot at something like it, it works and all, but the magnifying glass doesnt show, I know it doesnt cause its masked. Any idea to show it?
your mask doesnt actually show… just its shape shows through… so draw your magnifying glass… cut out the circle part… put it in the mask layer and put the rest in another layer…the circle wont show up but the frame of it will…
only trick you will have to mess with is making sure the things are lined up right
Sharif, there isn’t any. startDrag() only lets you drag one element at a time, so you’re gonna have to “drag” the movieclip yourself, by setting it’s position to the one of the mouse. For example:
Yea Fluid One!!! Thats the exact effect I want. But I dont want it to just lock on the mouse as soon as the movie loads, I want the person to be able to drag it, and when released, stop the drag.