A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [RESOLVED] AS3 rookie drag Question

  1. #1
    Member
    Join Date
    May 2007
    Posts
    39

    resolved [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

  2. #2
    Senior Member Genesis F5's Avatar
    Join Date
    Jan 2002
    Location
    Unallocated memory
    Posts
    1,845
    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.

  3. #3
    Member
    Join Date
    May 2007
    Posts
    39

    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center