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