Re: [Flashcoders] Trying to know size of loading swf

2007-06-20 Thread natalia Vikhtinskaya
Thank you very much. Yes this is the reason. 2007/6/20, elibol <[EMAIL PROTECTED]>: I believe it's a timing issue. It may take an extra frame to actually initialize... Try running an onEnterFrame from onLoadInit to check the size continually until it's greater than 0. function onLoadInit(_mc:M

Re: [Flashcoders] Trying to know size of loading swf

2007-06-20 Thread elibol
I believe it's a timing issue. It may take an extra frame to actually initialize... Try running an onEnterFrame from onLoadInit to check the size continually until it's greater than 0. function onLoadInit(_mc:MovieClip) { _mc.onEnterFrame = function(){ trace(this._width); trace(this._height); //

[Flashcoders] Trying to know size of loading swf

2007-06-20 Thread natalia Vikhtinskaya
Hi to all I should load swfs with different sizes in host mc ( I have empty mc on the stage with this name) . A window for showing them has smaller size. So I should scale these swfs. I thought that I can catch size of loading swf in onLoad Init function and than scale host mc. function on