Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Drag the stage with an image over

Contributor ,
Jan 22, 2016 Jan 22, 2016

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.

TOPICS
ActionScript
465
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2016 Jan 22, 2016

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).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 22, 2016 Jan 22, 2016

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%).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2016 Jan 22, 2016

you can use the contextmenu class to enable custom actions including zooming.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 22, 2016 Jan 22, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2016 Jan 22, 2016

you can't drag the stage.  again, drag the main timeline.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 22, 2016 Jan 22, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2016 Jan 22, 2016
LATEST

on your main timeline or your document class put this:

var tl:MovieClip=this;

you can then use tl to reference your main timeline.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines