hi all !
thanx for the answers.
i will try to manage it.
all the best,
mastro
Don't know if you know how to impliment what Ujjwal was talking
about...so if you don't, here is how I do it:
// create listener for mouseDown
mouseListener = new Object();
// when mouseDown occurs run the mouse_down func
mouseListener.onMouseDown = Delegate.create(this,mouse_down);
// add listener
Mouse.addListener(mouseListener);
//
private function mouse_down():Void{
trace("MOUSE DOWN")
}
//
remember to import the Delegate Class
import mx.utils.Delegate;
//
if you need the code for hitTest:
if(movieClip1.hitTest(movieClip2)){
trace("movieClip1 hit movieClip2")
}
If there is a better way to do it then I am sure someone will chime
in. But what I put above does work.
Victor
----- Original Message ----- From: "Ujjwal Kabra"
<[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Wednesday, October 18, 2006 8:12 AM
Subject: Re: [Flashcoders] draggable mc with buttons in it?
If you've made your parent movie clip draggable by catching the
onMouseDown,
onMouseUp events etc., then you can't use the same events on your
child
movie clip (the buttons).
You need to have logic in your parent movieclip to figure out which
of the
children gets affected by the mousedown (or mouseup, if you prefer).
You can
use the hittest() function for this. and then you need to chain the
event to
the respective movieclip.
By the way, I don't think your test.fla came through in the email.
Did you
forget to attach it, or does the list drop attachements?
Ujjwal
On 10/18/06, mastro <[EMAIL PROTECTED]> wrote:
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.
_______________________________________________
[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
_______________________________________________
[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
_______________________________________________
[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
_______________________________________________
[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