On Thu, 03 Mar 2005 20:19:52 +1100, Bill Lane <[EMAIL PROTECTED]> wrote: > Have you considered extending UIObject so you could use dispatchEvent to > get your child to broadcast an event when loaded. I know the added file > size can be an issue for some projects.
Yes, I am considering using dispatchEvent. > What are the child methods doing that the it needs to be called from the > parent so quickly. Could they be handled using the initObject? The child's default state is set in the onLoad event, but the parent's onLoad is setting a different state, but the parents onLoad is called before the child's onLoad is called. So the parent is setting the child to the required state, but then the child's onLoad is called, which resets the state of the child. It seems this issue is a side-effect of the way Flash progressively loads the file. One of the things I thought of is to have an empty stage and instantiate all objects from the library at runtime. This shoudn't be too difficult because there is a symbol for everything already. That way at runtime the constuctor of the parent won't finish until all child and grandchild objects are created and initialised. --- You are currently subscribed to fugli as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
