The only problem is, it's a "Single Frame" application.

I avoid multi-frame apps like the plague - because I have so many coding
issues, and can't have controls residing on multiple frames (they must
exist at all times, because they intercommunicate with each other,
throughout the lifetime of the application).

This app is considered to be an "RIA", and resides ALL on a single
frame.  All my MovieClips have Class Files attached to them, and I truly
run this Movie like an Application.  Multiple Windows, toggling
visibility, remoting calls, etc. all tied together by listening to
Events.

It's a wonderfully reliable application - which I plan on migrating to
Flex as soon as I can.  But in the meantime, Flash is my only solution.

With that said, is there anything else I can do - to force the
"onResize" event to kick off, just milliseconds after the application
gets fully initialized?  I have a feeling this may fix the problem.

Maybe some kind of Timer that only runs once?  Once things are
positioned properly upon the initial load, it's all well and good - the
StageListener coupled with the manual browser resizes, takes care of
everything after that.

Thanks for anything else you can throw my way :)

Mike

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan
Matsikas
Sent: Wednesday, April 12, 2006 12:41 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Manually triggering the Screens "onResize"
event

I'm guessing yer having these issues in IE? Try waiting an extra frame
or 2..

On 4/12/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Thanks for the suggestion, but I tried in that in the meantime.
>
> 2 very undesired things happen:
>
>         1) The movie components are still in the exact same spots.
>
>         2) The bottom StatusBar actually is 1-inch shorter -
>            this not even reaching to the other side of the
>            stage
>
> It's almost as if (especially in case #2) that the StatusBar is basing

> it's _width property on mis-information.  If I didn't know better, 
> it's as if there are timing problems going on.
>
> I thought that the "onLoad" event fixes problems like that - since it 
> waits until all components are instantiated and initialized, before 
> Dispatching the "I am all finished" signal.
>
> What I have is this (in root):
>
> =====================================================
>
> var stageSizeListener:Object = new Object();
>
> stageSizeListener.onResize = function():Void {
>         var stageHeight:Number = Stage.height;
>         var stageWidth:Number = Stage.width;
>
>         // Main Menu
>         mainMenu._width = stageWidth;
>         mainMenu.updateDisplay(true);
>
>         // Map Status Bar
>         mapStatusBar._width = stageWidth;
>
>         etc....
> }
>
> this.onLoad = function():Void
> {
>         stageSizeListener.onResize();
> }
>
> Stage.addListener( stageSizeListener );
>
> =====================================================
>
> All this resize code works beautifully, but only AFTER the movie is 
> completely loaded, and the user MANUALLY resizes the browser.
>
> Am I missing something here?  I was hoping the onLoad function would 
> alleviate any timing issues, but not only does it NOT work, it's 
> actually causing my StatusBar (which resides at the bottom) to have a 
> lesser width size.
>
> If I remove the onLoad code, then eveything paints fine - but things 
> are not positioned correctly.
>
> Any more ideas?
>
> Thanks,
>
> Mike
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Ryan 
> Matsikas
> Sent: Wednesday, April 12, 2006 12:02 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Manually triggering the Screens "onResize"
> event
>
> manually call your onResize method in your main Mc's onLoad.
>
> On 4/12/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
> >
> > Hello All,
> >
> > I have a Flash App, that uses a "Non-Scaling" type setup - in which 
> > upon browser resize, the controls simply reposition themselves 
> > around,
>
> > creating more usable area for content.  It's works beautifully, but 
> > with a catch.
> >
> > The problem is, my application insists on starting out at it's 
> > Published Size - so if the browser is larger than the application, 
> > there is a bunch of white-space along the Right and Bottom.  Of 
> > course, I designed the app to take up the entire browser window.
> >
> > The moment the user resizes the browser, the application immediately

> > snaps into place taking up 100% of the browser area - and everything

> > is well.
> >
> > How can I trigger this event, the moment the application is loaded 
> > in the browser???
> >
> > Thanks in advance for your help,
> >
> > Mike
> >
> > _______________________________________________
> > 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
>
_______________________________________________
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

Reply via email to