# Help with swf communicating with parent swf

**URL:** <https://forum.kirupa.com/t/help-with-swf-communicating-with-parent-swf/287072>\
**Category:** Uncategorized\
**Created:** [April 25, 2009, 5:13pm UTC](https://forum.kirupa.com/t/help-with-swf-communicating-with-parent-swf/287072 "2009-04-25T17:13:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaedo](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Shaedo](https://forum.kirupa.com/u/Shaedo)\
**Post date:** [April 25, 2009, 5:13pm UTC](https://forum.kirupa.com/t/help-with-swf-communicating-with-parent-swf/287072/1 "2009-04-25T17:13:22Z")

</div>

I have a swf that is loaded in another swf.

if I \***trace(this.parent.parent)** \*in the child swf I get _**[object Scenario1]**_ which is the parent swf.

Scenario1 is my Document Class for the parent swf and it extends MovieClip.  
_Scenario1_ has a _public var testing:Boolean = false;_

If I want to change the _testing var_ to true what do I do ?

If I put in the \ ***this.parent.parent.testing = true;** \*  
(or _this.parent.MovieClip(parent).testing = true;_)

obviously I get a compile error (as its not a loaded swf when its compiled, \*this.parent.parent \*is _null_)

If I go ahead and load this into the parent swf then it does not throw any compile errors (because there is nothing wrong with the parent swf per se) but all of the script on the child swf fails to work.

So how do I do this?

Thanks heaps for your help!
