Seems basic, but I can't find a way to easily catch events from a mc
subclip which is in a movie clip subclass (called A)
I tried the following approach but wherever I click on A clip, only
A.onRelease reacts..even when it's over clip mc...:-(
Thank's for your help.
Eric
import mx.utils.Delegate;
class A extends MovieClip{
var clip_mc:MovieClip; //...required to give access to "embedded" clip
...
function init(){
...
clip_mc.onRelease=Delegate.create(this,clickOnMc);
}
function clickOnMc(){ //should catch click on sub clip
trace("clickOnMc this="+targetPath(this) +" clicked...");
}
function onRelease(){ //manage clicks on main clip
trace("onRelease this="+targetPath(this) +" clicked...");
}
}
on frame 1:
var myA:A=new A();
myA.init();
on Stage:
A_mc(A symbol linked to A class) containing clip_mc (clip instance)
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com