I think this is probably the same problem that Andrew mailed about yesterday with cursor depth.  That doesn’t mean I know what’s going on J

 

Matt

 


From: lm7e [mailto:[EMAIL PROTECTED]
Sent: Friday, February 25, 2005 8:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Interesting Loader/DividedBox behavior

 


Hello All,

I think I will try posting my question again. See below... Maybe
someone from Macromedia can tell me if this is the behavior I have
to live with or if I am doing something wrong... Please help.

Lawrence

--- In flexcoders@yahoogroups.com, "lm7e" <[EMAIL PROTECTED]>
wrote:
>
> In attempting to utilize the RSL feature, I am designing an
> application that is composed of a wrapper app that in turn loads
> different subsystem apps. This works fine. The interesting
behavior
> I have seen is that a subsystem app I have written contains a
> DividedBox and when it is loaded, the cursor does not show the
> proper "move" indicator (->| |<-) that it should when hovering
over
> the divider; the cursor disappears. If I open the subsystem app
> separately, the behavior is correct. Any ideas??? Workarounds???
You
> can find code that demonstrates this strangeness below.
>
> Thank you in advance,
> Lawrence
>
> ---- loaderApp.mxml ----
> <?xml version="1.0" encoding="iso-8859-1"?>
> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
> width="100%" height="100%" xmlns="*">
>
>       <mx:XML id="theMenuDataProvider">
>             <menu label="Test">
>                   <menuitem label="Test App"
> data="" />
>             </menu>
>       </mx:XML>
>      
>       <mx:Script>
>             var app : String;
>            
>             function loadSubsystem(event : Object) {
>                   app = event.menuItem.attributes.data;
>             }
>       </mx:Script>
>
>       <mx:MenuBar width="100%" id="theMenuBar"
> change="loadSubsystem(event)">
>             <mx:dataProvider>{theMenuDataProvider}
> </mx:dataProvider>
>       </mx:MenuBar>
>      
>       <mx:HBox width="100%" height="100%">
>             <mx:Loader id="applet" source="{app}"
> scaleContent="false" width="100%" height="100%" />
>       </mx:HBox>
>      
> </mx:Application>
>
> ---- testApp.mxml ----
> <?xml version="1.0" encoding="iso-8859-1"?>
> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
> width="100%" height="100%">
>       <mx:Script>
>             function getPreferredHeight() {
>                   if (_parent != undefined) {
>                         return _parent.layoutHeight;
>                   } else {
>                         return super.getPreferredHeight();
>                   }
>             }
>             function getPreferredWidth() {
>                   if (_parent != undefined) {
>                         return _parent.layoutWidth;
>                   } else {
>                         return super.getPreferredWidth();
>                   }
>             }
>       </mx:Script>
>       <mx:Panel width="100%" height="100%">
>             <mx:DividedBox direction="horizontal" height="100%"
> width="100%">
>                   <mx:Tree id="theTree" width="30%"
> height="100%">
>                         <mx:dataProvider>
>                               <mx:XML>
>                                     <node
> label="Something">
>                                           <node
> label="Here" isBranch="true">
>                                           </node>
>                                           <node
> label="There" isBranch="true">
>                                           </node>
>                                           <node
> label="Anywhere">
>                                          
>       <node label="Huh?" />
>                                          
>       <node label="What?" />
>                                          
>       <node label="Where?" />
>                                           </node>
>                                     </node>
>                               </mx:XML>
>                         </mx:dataProvider>
>                   </mx:Tree>
>                   <mx:VBox height="100%" width="70%">
>                         <mx:TabNavigator height="100%"
> width="100%">
>                               <mx:Canvas label="Isn't"
> height="100%" width="100%" />
>                               <mx:Canvas label="This"
> height="100%" width="100%" />
>                               <mx:Canvas
> label="Interesting?" height="100%" width="100%" />
>                         </mx:TabNavigator>
>                   </mx:VBox>
>             </mx:DividedBox>
>       </mx:Panel>
> </mx:Application>





Reply via email to