Window Component .content

[font=Tahoma]Is there a problem of in the Window component? Maybe I am not accessing the property correctly but when you load a MC into the window component via AS using the contentPath property and you make that a clip from the library; lets call that movieclip “preloader” [/font]
[font=Tahoma]Couldn’t I then access the clip like this[/font]
[font=Tahoma][/font]
[font=Tahoma]

[/font]
[font=Tahoma]myWindow.content.someFunctionOfTheClass();[/font]
[font=Tahoma]//	 Where someFunctionOfTheClass() is a function associated with that MC that is defined[/font]
[font=Tahoma]//	 within an AS2 class that is written for the clip??[/font]
[font=Tahoma][/font] 
[font=Tahoma]// or[/font]
[font=Tahoma]myClip = myWindow.content;[/font]
[font=Tahoma]myClip.someFunctionOfTheClass();[/font]
[font=Tahoma]

[/font]
[font=Tahoma][/font]
[font=Tahoma]Because when I do this nothing happens…I was hoping that someone with more understanding could help. When I trace[/font]
[font=Tahoma]

[/font]
[font=Tahoma]trace(myWindow.content);[/font]
[font=Tahoma]

[/font]
[font=Tahoma]it traces “undefined,” even though I have loaded, and can see my clip inside the window. Where I think it should trace [object Object]. I cannot access any of the MC properties and seeing how it is a preloader that is pretty important! Any help would rock![/font]
[font=Tahoma][/font]
[font=Tahoma]-Ryan[/font]

you have to check if the windows “complete” event fired.

[font=Tahoma]


 windowListener = new Object()
 windowListener.complete = function(evt) {
 [/font][font=Tahoma]   trace(evt.target.content);[/font]
 [font=Tahoma]}
 [/font] myWindow.addEventListener("complete", windowListener)
 [font=Tahoma]

[/font]