does this work for you?
stop();
var myListener:Object = new Object();
myListener.onMouseMove = function() {
trace(_xmouse);
Mouse.removeListener(myListener);
};
myButton.onRollOver = function() {
this._parent.onEnterFrame = function() {
Mouse.addListener(myListener);
};
};
myButton.onPress = function() {
this._parent.onEnterFrame = function() {
};
};
myButton.onRollOut = function() {
this._parent.onEnterFrame = function() {
};
Mouse.removeListener(myListener);
};
myButton.onDragOut = function() {
this._parent.onEnterFrame = function() {
};
Mouse.removeListener(myListener);
};
eugen pflüger <[EMAIL PROTECTED]> wrote:
//---------------------------------------------------
// this is what is possible:
//---------------------------------------------------
var listener = new Object();
listener.click = function ()
{
trace("click");
}
this.test_btn.addEventListener("click", listener);
//---------------------------------------------------
// but there seems to be nothing like this:
//---------------------------------------------------
listener.rollOver = function ()
{
trace("rollOver");
}
listener.rollOut = function ()
{
trace("rollOut");
}
this.test_btn.addEventListener("rollOver", listener);
this.test_btn.addEventListener("rollOut", listener);
and also no "onRollOver" events or something like this. mouseMove is
not working either.
i thought maybe someone knows a hack?
eugen
Am 19.10.2005 um 15:42 schrieb Spike:
> does mouseMove do what you want?
>
> Spike
>
> On 10/19/05, eugen pflüger
wrote:
>
>>
>> hello,
>>
>> this should be an easy one but i dont get it.
>>
>> how can i catch a rollover event from a button component?
>> i just wanted to build a little tooltip.
>>
>> tia
>> eugen
>> _______________________________________________
>> Flashcoders mailing list
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>
>
>
> --
> --------------------------------------------
> Stephen Milligan
> Do you do the Badger?
> http://www.yellowbadger.com
>
> Do you cfeclipse? http://www.cfeclipse.org
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
plugisto
...........................
eugen pflüger
alexanderstr. 109
70180 stuttgart
fon +49.711.6739797
mobil +49.177.6428272
e-mail [EMAIL PROTECTED]
...........................
http://www.plugisto.net
http://www.lifeperformance.net
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders