[Flashcoders] when can you read properties of a loaded swf?

2006-05-26 Thread David Skoglund
Hi, again... one more problem that has puzzled me for a while now.

I am loading in a several swf:s and want them to dynamically scale to fit in on 
a set of buttons. I thought that the clip would be ready for manipulation when 
the loadComplete event occurs but I still can't read the width of the loaded 
clip...

mclListener.onLoadComplete = function(target_mc:MovieClip, status:Number):Void {
trace('target_mc._width: ' + target_mc._width)  // traces 0

target_mc.onEnterFrame= function(){
   trace('this width: ' + _width)// traces 70 (correct width)
}
};
   
As you see when I delay the trace to the next enterFrame it works. Is there a 
way to force the clip to update? Preferably without updating the entire stage. 

Thanks for your help!

/David
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] when can you read properties of a loaded swf?

2006-05-26 Thread Dave Mennenoh

You want onLoadInit instead of onLoadComplete.


Dave -
Adobe Community Expert
www.blurredistinction.com
www.macromedia.com/support/forums/team_macromedia/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] when can you read properties of a loaded swf?

2006-05-26 Thread David Skoglund
Ah, thanks! I completely missed that one, I read init as initialising of the 
loader...


/David

- Original Message - 
From: Dave Mennenoh [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, May 26, 2006 12:16 PM
Subject: Re: [Flashcoders] when can you read properties of a loaded swf?



You want onLoadInit instead of onLoadComplete.


Dave -
Adobe Community Expert
www.blurredistinction.com
www.macromedia.com/support/forums/team_macromedia/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com