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;**
}