RE: [Flashcoders] Critical bug in IE
Had this problem as well recently, I used XRay to see what was going on and I noticed that 2 or 3 times the Stage onResize event would be triggered with height and width values of 0 before getting the correct values. So I only added a conditional statement to delay my positioning actions : var firstResize:Boolean = true; var stageListener:Object = new Object(); stageListener.onResize = Delegate.create(this, onResizeHandler); Stage.addListener(stageListener); function onResizeHandler(){ // if (firstResize) { if (Stage.height != 0) { //Do your stuff here firstResize = false; } else { if (Stage.height != 0) { //Do your other stuff here } } } HTH Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Herrman Sent: 9 janvier 2007 15:28 To: Flashcoders mailing list Subject: Re: [Flashcoders] Critical bug in IE When are you doing that? I've noticed some weird issues in IE where the Stage stuff doesn't always behave correctly at the beginning of the movie (my case the Stage was telling me the width/height was 0 when code in external .as files was running, but if it was code in the FLA itself, which ran earlier, it was correct). If you're doing that as part of initialization then maybe delaying it will help. -Andy On 1/8/07, William Smith <[EMAIL PROTECTED]> wrote: > I have this problem to when I use Stage.scaleMode on this one movie it > will always end up messing up the position and covering half of > certain movieclip (though not all) when I view the movie in IE, both 6 > and 7. I have tried everything I can thing of and nothing works. Any ideas? > ___ > 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.410 / Virus Database: 268.16.8/621 - Release Date: 2007-01-09 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.410 / Virus Database: 268.16.8/621 - Release Date: 2007-01-09 ___ 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] Critical bug in IE
I tried compiling the movie in flash 9 with the stage.align = "tl" and now it some how works, don't ask me. On 1/9/07, Andy Herrman <[EMAIL PROTECTED]> wrote: When are you doing that? I've noticed some weird issues in IE where the Stage stuff doesn't always behave correctly at the beginning of the movie (my case the Stage was telling me the width/height was 0 when code in external .as files was running, but if it was code in the FLA itself, which ran earlier, it was correct). If you're doing that as part of initialization then maybe delaying it will help. -Andy On 1/8/07, William Smith <[EMAIL PROTECTED]> wrote: > I have this problem to when I use Stage.scaleMode on this one movie it will > always end up messing up the position and covering half of certain movieclip > (though not all) when I view the movie in IE, both 6 and 7. I have tried > everything I can thing of and nothing works. Any ideas? > ___ > 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 ___ 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] Critical bug in IE
When are you doing that? I've noticed some weird issues in IE where the Stage stuff doesn't always behave correctly at the beginning of the movie (my case the Stage was telling me the width/height was 0 when code in external .as files was running, but if it was code in the FLA itself, which ran earlier, it was correct). If you're doing that as part of initialization then maybe delaying it will help. -Andy On 1/8/07, William Smith <[EMAIL PROTECTED]> wrote: I have this problem to when I use Stage.scaleMode on this one movie it will always end up messing up the position and covering half of certain movieclip (though not all) when I view the movie in IE, both 6 and 7. I have tried everything I can thing of and nothing works. Any ideas? ___ 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