flash - Conflicting startDrags -


Flash CS4, AS2

I'm making a tour with a map, I started this drag Using the code around the map:

  menu.onpress = function () {this.startDrag (); }; Menu.onRelease = function () {stopDrag (); };  

It works perfectly though, inside a "menu" movieclip I am using a start tag called start.drag code:

  EllisIsland. _visible = false; {} EllisIland_mc.onRollOver = function () {EllisIsland.startDrag (); EllisIsland._visible = true; }; EllisIland_mc.onRollOut = function () {EllisIsland.stopDrag (); EllisIsland._visible false =; };  

Before it was adding drag to map, before it was working completely, but now it will not work.

Is there any way to make these elements work together?

This is one of those things that they have decided in AS3, but in AS2 , You can not detect mouse events on elements which are inside the elements that are the listener for the same event. The mouse is more than AliceIsland_MC, if its work is done inside the menu, on the press function - if it is, then execute the AlliesIsland start drag, if not, then drag the normal menu.

I will try to use HitTest () to find out which element to eliminate.

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -