PDA

View Full Version : wtf rollovers



lope
September 19th, 2009, 08:02 AM
can someone explain this:

I have a movieClip on stage, inside is a dynamic textfield, and I have set mc.scaleY = 0;

this is the only code:


mc.scaleY = 0;
mc.buttonMode = true;
mc.mouseChildren = false;and suddenly everything above and below (on the whole stage) where the movieClip actually is receives mouse, I can see by the button mode.

but it only happens with dynamic text, not static.

I have attached the example:

lope
September 19th, 2009, 10:06 AM
same thing happens if i say: mc.height = 0; instead of scaleY (or width / scaleX)

is this a bug or what???

thatsasif
September 19th, 2009, 01:38 PM
bad zip file... upload again

lope
September 19th, 2009, 02:34 PM
just make a dynamic textfield on stage an wrap it inside of a movieClip named mc.
apply this 3 lines of ocde and then try to hover with your mouse anywhere on the stage above or below where the button should be and you get a hand cursor.
or if you say this instead: mc.scaleX = 0;
then hover left or right off the button and the same thing happens...

thatsasif
September 19th, 2009, 02:50 PM
Disable that bloody mc and then no tension....:hugegrin:


mc.width = 0;
mc.buttonMode = true;
mc.mouseChildren = false;
mc.mouseEnabled = false;

thatsasif
September 19th, 2009, 02:57 PM
If set both the scale to 0 it works

mc.scaleY = mc.scaleX = 0;
mc.buttonMode = true;
mc.mouseChildren = false;

lope
September 19th, 2009, 09:43 PM
Disable that bloody mc and then no tension....:hugegrin:
ActionScript Code:

mc.width = 0;
mc.buttonMode = true;
mc.mouseChildren = false;
mc.mouseEnabled = false;




I cant disable it because I need to have mouse event listeners attached to that mc.



If set both the scale to 0 it works

mc.scaleY = mc.scaleX = 0;
mc.buttonMode = true;
mc.mouseChildren = false;


no good again, I need to perform certain actions with scaleX or scaleY alone.

actually it a little more complicated than that, this mc is inside of another parent and the parent receives mouse events with mouseChildren set to false, and then on rollover/out children get scaled, but still causing problems...

snickelfritz
September 19th, 2009, 11:52 PM
Try using scaleX = .001;
This is definitely a kludge.

lope
September 20th, 2009, 12:22 AM
Try using scaleX = .001;
This is definitely a kludge.

thanks, I thought of that already, setting scale to very low number but not zero.