i have a class that extends sprite.
in that class i make an instance of a movieclip simbol from the library.
i also set some other properties like:
_popup = new PopupMC();
addChild(_popup);
_popup.alpha = 0;
_popup.mouseChildren = false;
_popup.mouseEnabled = false;
_popup.popup_txt.autoSize = TextFieldAutoSize.LEFT
on my timeline i do this:
import com.zerro.utils.Popup;
var popup:Popup = new Popup( myXML );
addChild(popup);
now, before that was a class (with some other code as well) this mouseChildren & mouseEnabled worked normally.
basically i needed to disable that movieclip so that it doesnt interfere with the mouse.
now that i have made a class out of it this mouseChildren & mouseEnabled doesnt work.
i go it to work accidentally by doing this:
import com.zerro.utils.Popup;
var popup:Popup = new Popup( myXML );
addChild(popup);
**popup.mouseEnabled = false;
popup.mouseChildren = false;**
and this is the first time i have experienced something like that
adding properties like that on that instance, it this normal?
… because i havent sleeped well last night
i dont get it why doesnt it work when i set this in a class, because setting
_popup.alpha = 0;
does work.