Ah, that was weird, by default it was publishing a flash 8 movie. 
It's been a while since I've been inside Flash (been using flex until
cs3 cameout :)  Are there any examples of how to access methods in
Flash from Flex and best practices in creating new flash classes?

Thanks,
Patrick



--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Are the globes Flex 2.x Apps?  If they are Flash 8 swfs you may not get
> INIT.
> 
>  
> 
> -Alex
> 
>  
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of patricklemiuex
> Sent: Thursday, June 07, 2007 11:56 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Connecting to swf dynamically in AS3
> 
>  
> 
> I'm trying simply, to load a series of seven small swfs (globes), i
> don't want them to play automatically. So, I assume I have to
> externalize and internalize play/stop methods, because I notice
> SWFLoader doesn't have play or stop methods.
> 
> Sorry if I sound like a luddite in this area because this is the first
> time I've ever tried to access a swf using the system manager. 
> 
> I noticed that the init event doesn't trigger, so I am probably doing
> this wrong:
> 
> var swf:SWFLoader = new SWFLoader();
> swf.x = x-7;
> swf.id = "globe"+_swfIndex;
> swf.width=30;
> swf.height=30;
> swf.y = y-7;
> swf.scaleX=.5;
> swf.scaleY=.5;
> swf.filters = [new GlowFilter (0x4A88C6,1.0,8.0,8.0,2,3,false,false)];
> swf.source = _globe;
> swf.addEventListener(Event.INIT,onSWFCreation);
> _myUIComponent.addChild(swf);
> makeLabel(x,y,s,u);
> _swfIndex++;
> 
> ...
> 
> private function onSWFCreation(e:Event){
> trace ("target",e.currentTarget.id);
> loadedSM = SystemManager(e.currentTarget.id.content);
> }
> 
> Thanks,Patrick
>


Reply via email to