-
[RESOLVED] AS3 rookie drag Question
I have a number of Sprites on stage . These Sprites have text fields added to them ie Sprite.addChild(textField)
I would like to have these Sprites along with their text fields dragable.
The problem I am having is I am only able to grasp onto the portion of the Sprite that is not beneath the Text Field.
How do I manage to make the entire Sprite dragable
Thanks Mango
-
Senior Member
Try setting the "mouseChildren" property on the sprite to "false." That will ignore any child elements in the sprite and detect a mouse event on the object as a whole.
-
thats the answer
Thank you Genesis F5
You saved me hours of searching ! Mango
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|