Search the web
Sign In
New User? Sign Up
flashmn · Twin Cities Flash User Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
object to parent communication   Message List  
Reply | Forward Message #4125 of 4864 |
Hi group,

Is there a best practice for communicating property changes from an object to
its parent?
Specifically, is it better to have the object broadcast it's change via
dispatchEvent, or is it
better to have the parent ask the object for the value when it's needed, via a
getter function?

Or, is it just a personal style kind of thing.

I've got a video object that gets paused and restarted and seeked (suck?) to
different frames,
and I need to communicate any changes to the parent app.

Thanks,
Chuck




Tue Jul 22, 2008 4:58 am

itsmechuckjr
Offline Offline
Send Email Send Email

Forward
Message #4125 of 4864 |
Expand Messages Author Sort by Date

Hi group, Is there a best practice for communicating property changes from an object to its parent? Specifically, is it better to have the object broadcast...
Chuck Preston Jr.
itsmechuckjr
Offline Send Email
Jul 22, 2008
4:58 am

I tend to go with event dispatchers, as you can move the child wherever you like. However, you need to document the available events, somehow. If you were to...
Scott Langeberg
scoobeedogg
Offline Send Email
Jul 22, 2008
4:09 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help