# Need Help with targeting clips

**URL:** <https://forum.kirupa.com/t/need-help-with-targeting-clips/269272>\
**Category:** Uncategorized\
**Created:** [August 25, 2008, 2:56pm UTC](https://forum.kirupa.com/t/need-help-with-targeting-clips/269272 "2008-08-25T14:56:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jnjcre8](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@jnjcre8](https://forum.kirupa.com/u/jnjcre8)\
**Post date:** [August 25, 2008, 2:56pm UTC](https://forum.kirupa.com/t/need-help-with-targeting-clips/269272/1 "2008-08-25T14:56:32Z")

</div>

Here is what I am trying to do. I have a main.as(This is my Document class) that pulls in a video class(a bunch of functions). In the video class I have a loader that loads player.swf. I tell main.as(class) when it is done. Now at that point I am trying to target the header\_mc inside the player.swf from my main.as class. It seems if I call the header\_mc from within the video class it works but if I try to target it from main.as it is a no go. Is there a way to target clips inside a swf that was loaded from an imported class.

So just to help understand this.  
Main.as is the document class  
– imports video.as and adds new instance (public var my\_video:VideoClass = new VideoClass(“player.swf”))  
---- Inside video.as I load “player.swf” (player.swf contains a header\_mc.txt.text)  
Main.as is told that video.as and player.swf is done.  
in Main.as I am trying to target header\_mc.txt to add info in it. but so far I have had no luck.

Has anyone tried this and is this possible?

## main.as ------------------------- \_gallery = new Video\_Player(“player\_nocom.swf”); addChild(\_gallery);

Video\_Player.as -------------------------  
public function load\_player():void {  
\_loader = new Loader();  
\_loader.name = “VIDEO\_PLAYER”;  
\_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, \_swf\_complete);  
\_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO\_ERROR, doIOError);  
\_loader.load(new URLRequest(\_load\_swf));  
}

## public function \_swf\_complete(evt:Event):void { var loaderInfo:LoaderInfo = evt.target as LoaderInfo; addChild(evt.target.content); \_use\_player = loaderInfo.content; }

## player\_nocom.swf ------------------------- this stores a bunch of movieClips what I want access to from my main.as class

Thanks in advance for your help.  
–Jose
