try using describeType() to find out whats in the class and if the method
has been compiled

pEvent.target is a ContentLoaderInfo object right? You are using a Loader
object to load the swf right?

if so,

import flash.utils.describeType;

var swfContent:Object = LoaderInfo(pEvent.target).content;
trace(describeType(swfContent));


not tested, hope it helps
Ktu


On Wed, Nov 10, 2010 at 1:22 PM, Kerry Thompson <al...@cyberiantiger.biz>wrote:

> Keith Reinfeld wrote:
>
>
> > Have you tried calling the static function indirectly?
> >
> > // In the swf you are loading
> > public function callInitAssets():void{
> >        trace("\nLoadee:: callInitAssets() called");
> >        initAssets();
> > }
> >
> > // In the swf you are loading into
> > private function handleLoadComplete(e:Event):void{
> >        _assetLib = e.target.loader.contentLoaderInfo.content as
> MovieClip;
> >        trace("_assetLib =",_assetLib);
> >        _assetLib.callInitAssets();
> > }
>
>
> Thanks, Keith. I'll try that.
>
> And thanks, Juan and John. I'll try some things, but at the moment I'm
> leaning towards John's suggestion that the method isn't being compiled into
> the class. I've looked at the class in the debugger, and I can see all the
> public vars, but not the function. Juan, I'm assuming this is equivalent to
> using describe as you suggested.
>
> I'll try adding a call to the method in the class's constructor and see
> what
> happens. I'll let you know what I find out.
>
> Cordially,
>
> Kerry Thompson
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to