# Help needed with accessing properties for an mc in an externally loaded swf

**URL:** <https://forum.kirupa.com/t/help-needed-with-accessing-properties-for-an-mc-in-an-externally-loaded-swf/309750>\
**Category:** flash\
**Created:** [May 24, 2010, 5:31am UTC](https://forum.kirupa.com/t/help-needed-with-accessing-properties-for-an-mc-in-an-externally-loaded-swf/309750 "2010-05-24T05:31:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matrixm5](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@matrixm5](https://forum.kirupa.com/u/matrixm5)\
**Post date:** [May 24, 2010, 5:31am UTC](https://forum.kirupa.com/t/help-needed-with-accessing-properties-for-an-mc-in-an-externally-loaded-swf/309750/1 "2010-05-24T05:31:39Z")

</div>

Hi All,

I am trying to set a couple of properties (specifically width and height) for an mc within an externally loaded swf but am having bigtime troubles. Keep getting the ‘Error #1010: A term is undefined and has no properties’. The code is attached below. I have tried to figure this out and searched for solutions but could not resolve this myself.

import flash.display.MovieClip;  
import flash.display.StageAlign;  
import flash.display.StageScaleMode;  
import flash.events.Event;

stop();

var Xpos:Number = 0;  
var Ypos:Number = 0;  
var defaultSWF:URLRequest = new URLRequest(“demo.swf”);  
var loader:Loader = new Loader ();  
loader.x = Xpos;  
loader.y = Ypos;  
loader.load(defaultSWF);  
addChildAt(loader,0);

menu\_mc.about\_btn.addEventListener(MouseEvent.CLICK, checkComplete);

function checkComplete(evt:MouseEvent) {

var about:URLRequest = new URLRequest(“demo2.swf”);  
loader.load(about);  
}

loader.contentLoaderInfo.addEventListener(Event.COMPLETE, aboutClick);

function aboutClick(e:Event):void {

```
removeChild(loader);
addChildAt(loader,0);
loader.x = Xpos;
loader.y = Ypos;
trace ("click");
resizeHandler(null);
**var swfTimeline:MovieClip = MovieClip(loader.content);
swfTimeline.action_mc.width = 308;
swfTimeline.action_mc.height = 108;**

```

}
