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...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

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 #4126 of 4864 |
Re: [flashmn] object to parent communication

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 pass in an object to refer to (other than calling 'parent') I would recommend something based on an Interface implementation, for portability, as well.


On Mon, Jul 21, 2008 at 11:58 PM, Chuck Preston Jr. <itsmechuckjr@...> wrote:

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




--
: : ) Scott

Helping your grandma on the interweb
at: http://blog.criticalpile.com


Tue Jul 22, 2008 4:09 pm

scoobeedogg
Offline Offline
Send Email Send Email

Forward
Message #4126 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