Jump to content
  • Advertisement
Sign in to follow this  
d000hg

[web] 2 Flex/AS3 Questions

This topic is 3831 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

1)How can I stop an object receiving events? I have a background on top of which other objects are placed. I want mouse-clicks to go straight to the background, but they get intercepted if you click on top of one of the objects. 2)In Flex, you can set the "click" attribute of an MXML control, like a button e.g click="onClick()". But in AS, you have to add listeners which take parameters... so how is this done? MXML is just AS wrapped up nicely, so why can't I see a "click" property on the controls I add?

Share this post


Link to post
Share on other sites
Advertisement
Here is a pretty nice article on the Flex event model, and how to intercept events. It also covers how to use addEventListener from AS code. Hope that helps!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!