Copy link to clipboard
Copied
I need to zoom the stage.
It is possible to drag the stage but, in my case, I have a lot of large images over the stage and when I zoom the stage there is not more portion of thage that I can grab and drag because it is out from the portion that is possible to see.
Is there a method that make it possible to drag the stage with the images (movie clip) that I have on the stage?
Notice that I browse a lot of images on stage with the method:
setChildIndex(MyMovieClip, this.numChildren - 1);
(The images are browsed automaticaly with cue point).
Thank you.
Copy link to clipboard
Copied
are you asking how to zoom the stage (if so, use scaleX and scaleY) or are you asking how to drag objects on stage (if so, adjust the x and y properties of the main timelne).
Copy link to clipboard
Copied
Thank you for the reply kglad!
No, I'm asking at the level of the swf file.
It is possible to zoom the stage with the right click of the mouse (larger image; reduce; 100%).
Copy link to clipboard
Copied
you can use the contextmenu class to enable custom actions including zooming.
Copy link to clipboard
Copied
Sure, but there is a problem if you have e large image.
If you enlarge the stage over an image you can't drag if you see only the image.
You can drag if you can see a portion of the stage, if you have a big image you cant drag the stage....
There is a method that can allow to drag the stage dragging an image?
Thank you.
Copy link to clipboard
Copied
you can't drag the stage. again, drag the main timeline.
Copy link to clipboard
Copied
Thank you kglad but I'm not sure to understand what does mean "drag the main timeline".
Pheraps it is possible to solve my problem in another way.
I have about 40 movie clips, exactly one above the other, is there a way to drag all the movie cplips togheter?
Thank you again.
Copy link to clipboard
Copied
on your main timeline or your document class put this:
var tl:MovieClip=this;
you can then use tl to reference your main timeline.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now