Re: Interesting Loader/DividedBox behavior

2005-03-02 Thread lm7e

Perfect! Thank you so much! Works like a charm!

Cheers,
Lawrence

--- In flexcoders@yahoogroups.com, Manish Jethani 
[EMAIL PROTECTED] wrote:
 lm7e wrote:
 
  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 
 
 I think it's because it looks for the cursor asset in the main 
SWF. You 
 could force the cursor to be included by having a HDividedBox in 
your 
 main app.
 
 ?xml version=1.0?
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
 mx:HDividedBox width=0 height=0 /
 !-- subapp contains HDividedBox whose
 resize handle is now showing --
 mx:Loader source=subapp.swf /
 /mx:Application
 
 You could also embed the asset directly using the [Embed] 
directive.
 
 Manish







RE: [flexcoders] Re: Interesting Loader/DividedBox behavior

2005-02-26 Thread Matt Chotin








I think this is probably the same problem
that Andrew mailed about yesterday with cursor depth. That doesnt mean
I know whats 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













Re: [flexcoders] Interesting Loader/DividedBox behavior

2005-02-26 Thread Manish Jethani
lm7e wrote:
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 
I think it's because it looks for the cursor asset in the main SWF. You 
could force the cursor to be included by having a HDividedBox in your 
main app.

?xml version=1.0?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:HDividedBox width=0 height=0 /
!-- subapp contains HDividedBox whose
resize handle is now showing --
mx:Loader source=subapp.swf /
/mx:Application
You could also embed the asset directly using the [Embed] directive.
Manish



Interesting Loader/DividedBox behavior

2005-02-23 Thread lm7e

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=testApp.mxml.swf /
/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