mastro, 

You must remove any button behaviors that are assigned to your draggable mc.
Such button behaviors will intercept mouse actions and effectively disable
your three buttons. 

The code below should give you an idea of how to accomplish your goal. 
 
This list does not support e-mail attachments, so I have not seen your
test.fla. 
 
// code 
stop(); 
 
this.onUnload = function(){ 
        cleanUp(); 
} 
 
function cleanUp():Void{ 
        Mouse.removeListener(mLstnr); 
} 

var mLstnr:Object = {}; 
mLstnr.onMouseDown = doHitTest; 
mLstnr.onMouseUp = endDrag; 
Mouse.addListener(mLstnr); 
 
function doHitTest():Void{ 
        if(buttonPallet.hitTest(_xmouse, _ymouse, true)){ 
                buttonPallet.startDrag(); 
        } 
} 
 
function endDrag():Void{ 
        buttonPallet.stopDrag(); 
} 
 
buttonPallet.button.onRelease = function(){ 
        // onRelease actions here 
} 
 
 
HTH 

-Keith 
http://home.mn.rr.com/keithreinfeld 
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of mastro
Sent: Wednesday, October 18, 2006 3:43 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] draggable mc with buttons in it?

hello !

i made a draggable mc and include 3 buttons in it.
how can i make the buttons working?

i include a test.fla in this e-mail.

thanx for helping !!

m.


_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

Reply via email to