header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
kumar
Points:160
Posts:0

8/10/2011 10:25:49 PM

Title: how to get the image item click in canvas in flex


hi all,

i have images in canvas i cant able to get the each image click without x and y position but the images are overlapped inside the canvas it built the tshirt my code is below


mx:Canvas width="100%" height="100%" >
<mx:Image source="assets/images/tshirtImages/color_bit.png" click="{Alert.show('img1')}"/>
<mx:Image source="assets/images/tshirtImages/color_bit1.png" click="{Alert.show('img2')}"/>
<mx:Image source="assets/images/tshirtImages/color.png" click="{Alert.show('img3')}"/>
</mx:Canvas>



1
Shridhar Kulkarni
Points: 0
Posts:0
8/11/2011 3:50:00 AM



Hi Kumar,
I am not getting your problem. can you please write breifly???

I think you need item renderer for rendering image

See this link
http://livedocs.adobe.com/flex/3/html/help.html?content=cellrenderer_8.html


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 2+2 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions