Amn
07-19-2005, 11:39 AM
Hi All!
I am creating a window, which specifies a contentPath property upon creation and thus loads a content movie clip.
The content movie clip has some controls, however I dont seem to find out when exactly these controls and thus movieclip itself are ready - i.e. the methods and properties of the controls available.
I tried the 'complete' event handler which gets invoked, and even though 'content' property of the window is available, and its properties (controls) as well, no control has any methods.
One workaround I found is to call setInterval, and thus create a timeout for a function which deals with accessing the properties of controls. But this is a dirty trick, and I dont rely on those for production ;)
What do i do ? I need to be notified when the window contents and controls are loaded fully with their respective properties and methods, otherwise I have no chance to initialise them when the window loads....
I am creating a window, which specifies a contentPath property upon creation and thus loads a content movie clip.
The content movie clip has some controls, however I dont seem to find out when exactly these controls and thus movieclip itself are ready - i.e. the methods and properties of the controls available.
I tried the 'complete' event handler which gets invoked, and even though 'content' property of the window is available, and its properties (controls) as well, no control has any methods.
One workaround I found is to call setInterval, and thus create a timeout for a function which deals with accessing the properties of controls. But this is a dirty trick, and I dont rely on those for production ;)
What do i do ? I need to be notified when the window contents and controls are loaded fully with their respective properties and methods, otherwise I have no chance to initialise them when the window loads....