# Window Component .content

**URL:** <https://forum.kirupa.com/t/window-component-content/56567>\
**Category:** flash\
**Created:** [July 5, 2004, 8:32pm UTC](https://forum.kirupa.com/t/window-component-content/56567 "2004-07-05T20:32:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![simpleSoft](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@simpleSoft](https://forum.kirupa.com/u/simpleSoft)\
**Post date:** [July 5, 2004, 8:32pm UTC](https://forum.kirupa.com/t/window-component-content/56567/1 "2004-07-05T20:32:36Z")

</div>

[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]

```auto
[/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]

```auto
[/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]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 26, 2004, 10:53am UTC](https://forum.kirupa.com/t/window-component-content/56567/2 "2004-07-26T10:53:57Z")

</div>

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

[font=Tahoma]

```auto

 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]

> [@simpleSoft](#):
>
> [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]
> 
> ```auto
> [/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]// or[/font]
> [font=Tahoma]myClip = myWindow.content;[/font]
> [font=Tahoma]myClip.someFunctionOfTheClass();[/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]
> 
> ```auto
> [/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]-Ryan[/font]
