Copy link to clipboard
Copied
Hi, there
I have a problem and this situation is really boring me.
When i zoom on movie clip in flash player, pan is not working. Pan is working out of movie clip symbol in normal but it doesnt working on movie clip symbol when i zoom
I use animate cc in action script 3.
Please help me. Realy appreacite
It seems that Flash Player has code to allow you to pan by clicking and dragging on the stage, but a movieclip in the way will stop the mouse drag from getting to the stage. Even if you set the movieclip's mouseEnabled and mouseChildren to false, the mouse event doesn't get through.
You could do your own pan code, where everything in your scene is inside one movieclip, which you move around when the user drags on it.
Other than that, right-click and zoom out far enough to pan by dragging the stage
...Copy link to clipboard
Copied
Hi.
What kind of zoom are you referring to? When a SWF is running inside of a Flash Player window and we right-click to zoom?
Copy link to clipboard
Copied
Yes definetely. I want pan on my movieclip when i zoom in flash player
Copy link to clipboard
Copied
Can you provide a SWF or FLA, GIF or video showing the problem so we can inspect?
Copy link to clipboard
Copied
Hi. Unfortunately i dont sent any document in my position.
But i can write step by step, very simple actually.
1 open animate cc 2017.2 (16.2.0.24)
2 create file new as3 document (550x400px), default
3 draw any shape for example: draw rectangle (200x200px) in the middle of scene
4 convert to symbol this shape
5 select type movieclip, okay thats it.
6 control/test or ctrl + enter
7 right click and zoom in in the test window
8 while i can pan out of moviclip, i can not pan on the movieclip
How can i solve this situation?
Copy link to clipboard
Copied
It seems that Flash Player has code to allow you to pan by clicking and dragging on the stage, but a movieclip in the way will stop the mouse drag from getting to the stage. Even if you set the movieclip's mouseEnabled and mouseChildren to false, the mouse event doesn't get through.
You could do your own pan code, where everything in your scene is inside one movieclip, which you move around when the user drags on it.
Other than that, right-click and zoom out far enough to pan by dragging the stage to the sides of the movieclip.
Copy link to clipboard
Copied
Adding to Colin's answer, one simple thing you can try and that I tested here and worked is to set the mouseChildren property of the main timeline to false. Just write this in the first frame of the main timeline:
mouseChildren = false;
But this of course depends on what you want enabled/disabled in your development/tests.
Regards,
JC
Copy link to clipboard
Copied
These codes have solved my problem.
I have tried mouseEnabled and mouseChildren codes. I realy realy appreacite. Thank you very much.