Pages: [1]
  Print  
Author Topic: mouseEnabled=false to depth containers and movieclipassets loaders  (Read 288 times)
Ramiro
Moderator
Gaia Addict
*****
Posts: 861


interactive pragmatism


« on: April 13, 2011, 02:37:10 PM »

We've discussed this in the past: http://www.gaiaflashframework.com/index.php/topic,2556.0.html

Basically if you have lots of graphical assets in a higher depth swf (ex: the nav page) you'll probably have problems with mouse events being captured by the nav page, and not your current (middle depth) page. In order to avoid this, but still have a few items in the nav clickeable you need to set mouseEnabled = false to the TOP depth container, the NavPage loader, and the actual items you want not to capture mouse events. Usually you would expect to simply set mouseEnabled false to just those items (or the whole Nav).

The way to fix this is to have mouseEnabled set to false by default to all depth containers and swf loaders (page and assets).

Doing this does NOT prevent it's children to receive mouse events, unless you also set mouseChildren = false.

So, in a nutshell, doing this change does not break any current project, and saves the developer to start referencing depth containers and specially loaders to change it's mouseEnabled property if they can't get mouse events.

What do you think?
Logged
steven
Gaia Author
Administrator
Gaia Evangelist
*****
Posts: 3871


gaiaframework
WWW
« Reply #1 on: April 13, 2011, 02:46:08 PM »

They already are, heh.

SiteView.as line 54
DisplayObjectAsset line 58

Logged

Steven Sacks | Gaia Author
Please support Gaia by donating to the project!  Smiley
Ramiro
Moderator
Gaia Addict
*****
Posts: 861


interactive pragmatism


« Reply #2 on: April 13, 2011, 02:54:14 PM »

AHHhh, when was this changed?? I missed it and manually set the mouseEnabled a few times Smiley
Logged
steven
Gaia Author
Administrator
Gaia Evangelist
*****
Posts: 3871


gaiaframework
WWW
« Reply #3 on: April 13, 2011, 09:35:42 PM »

Awhile ago. Not sure how many versions ago.
Logged

Steven Sacks | Gaia Author
Please support Gaia by donating to the project!  Smiley
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v1.0 beta 4 © Bloc