Well got to run..
GL
Karl
On Nov 8, 2010, at 9:04 AM, Karl DeSaulniers wrote:
check that the box that has the rollover moves with the color box?
it looks like it stays there.
otherwise you could try going back to my first suggestion,
and insert a invisible button inside each box.
var BTN=box.attachMovie("box_btn",this.getNextHighestDepth());
BTN._x = 0; //left
BTN._y = 0; //top
BTN._width = WIDTH_OF_MC_BUTTONS_IN; //or 100%
BTN._hieght = HEIGHT_OF_MC_BUTTONS_IN; //or 100%
box.BTN.onRollOver = function(){
}
Then
Create an invisible button named "box_btn" in your library and make
sure it has a rectangle with 0 opacity in it and set it to export
for actionscript with "box_btn" as the identifier. or a name of
your choosing.
This should let the onPress work while re-firing the button inside
the MC below.
I think what is happening is that onRollOver only grabs the MC with
the highest depth when two are overlapping
but if the MC has an invisible button, the onRollOver will fire as
soon as the mouse hits the new MC because of a the button?
Then the call is made on something inside the MC you want, not the
MC you just clicked?
HTH
Karl
On Nov 8, 2010, at 8:17 AM, natalia Vikhtinskaya wrote:
Nothing of that helps.
2010/11/8 Karl DeSaulniers <[email protected]>:
Try
box.onRelease = box.onReleaseOutside = function(){
//move out
};
maybe?
Your box moves before its released, so this may work.
Hopefully it wont fire it to move twice.
or maybe try moving it after the onPress instead, so that the
release
doesn't do that action and lets the mouse reset.
box.onPress = function(){
//move out
};
and if that does not work. lol
box.onPress = function(){
//move out
};
box.onRelease = box.onReleaseOutside = function(){
this.onRollOver = null;
};
I am reaching at this point. :)
HTH,
Karl
On Nov 8, 2010, at 7:10 AM, natalia Vikhtinskaya wrote:
box.onRelease=function(){
///move it out
}
Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders