Hi all!
I've stumbled upon something quite weird, and have searched for an
explanation without any success.
Consider the following Movieclip hiearchy:
Contentclip (with a few images and text fields dynamically attached) -
buttonclip
I have created a class which when instanced will:
-
if the mouse is over one of the instances, and
for that instance only.
regards,
Muzak
- Original Message -
From: Daniel Forslund|Lists [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, October 20, 2006 2:39 PM
Subject: [Flashcoders] onMouseup bug?
Hi
You don't need to use hitTest - you can just assign a function to the
onRelease event within the constructor:
class com.blurredistinction.Mtest extends MovieClip {
function Mtest(){
this.onRelease = function(){
trace(this);
}
}
}
Dave -
Head Developer
www.blurredistinction.com
Adobe
Thanks for the replies!
My apologies for not checking how the mouseup event is handled.
Coming from many, many years of Director/Lingo work, I simply assumed
mouseup to work in a similar manner :)
Cheers,
Dan
On 20 okt 2006, at 17.02, Dave Mennenoh wrote:
You don't need to use
Also, you don't need to say this.onRelease inside another function.
Just put the following in your class:
class MyClass extends MovieClip {
function MyClass() {}
function onRelease():Void {
// do something
}
}
5 matches
Mail list logo