Hi I was hoping someone can do a quick example of an eventbubbling with pixlib. I tried the other day but couldn';t get my head around it. I have never actually done this so I am having a hard time understanding it. Here is a simple scenario; I have a square clip with a circle clip in it and that circle clip has a triangle clip in it. When I click on triangle, I get "I am triangle", click on square, " I am a square" and if click on part of circle that's not overlap by either square or circle, I get "I am circle." How would I accomplish this with EventBubbling?? Thanks for any ideas!
Zameer
EventBubbling
2006-12-19 18:41:43
Im also curious about it, so thanks for the coming help
Zameer Rehmani a écrit :
mail.gmail.com"
type="cite">Hi I was hoping someone can do a quick example of an
eventbubbling with pixlib. I tried the other day but couldn't get my
head around it. I have never actually done this so I am having a hard
time understanding it. Here is a simple scenario; I have a square clip
with a circle clip in it and that circle clip has a triangle clip in
it. When I click on triangle, I get "I am triangle", click on square,
" I am a square" and if click on part of circle that's not overlap by
either square or circle, I get "I am circle." How would I accomplish
this with EventBubbling?? Thanks for any ideas!
Zameer