Click here to Skip to main content
15,891,713 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Very confused today!! Sprite in Flex is frequently used. Label or Text(mx.contorls) also is the class ofen used. Try as I say,you will see a very strange thing ocurring. you instantialize this two classes and then use Sprite instance to draw a rectangle which covers Label instance,and then add an eventlistener to Sprite,mouse Click event,for instance.finally,you will find out that it doesn't response to your click. How strange it is!!!!!
Posted
Comments
Ganesan Senthilvel 1-Aug-12 15:04pm    
If you need help, you should explain the problem in details.
FlyBird2012 19-Aug-12 23:53pm    
Thank you for your comments;I new a Sprite and add it to label,then I use sprite.graphics to draw a rectangle whose width=label.width,height=label.height. I register listener for click event to both label and sprite,and write two different functions as handlers of the two event listeners. the problem is When I click the sprite,computer executes the event handler of label's listener I registered

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900