I'm trying to pass the dimensions of the main window to a component
for positioning of a popup. I keep getting the following error:
"Error /Main.mxml:18
The property being referenced does not have the static
attribute."
Here are some code snippets:
-- Main.mxml --
<mx:Panel title="Team Management" width="1280" height="1024"
id="mainBox">
...
<local:teamList id="teamList" width="400" height="100%"
ParentX="{mainBox.x}" ParentY="{mainBox.y}"/>
....
-- teamList.mxml --
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
var parentX:Number;
var parentY:Number;
var xPos:Number = parentX + 2;
var yPos:Number = parentY + this.height + 5;
var initObj:Object = {deferred:true, x:xPos, y:yPos};
function showWindow():Void {
var popup:Object = PopUpManager.createPopUp(this,
teamListModify, true, initObj);
}
]]>
</mx:Script>
...
<mx:Button label="Modify" click="showWindow()"></mx:Button>
....
I've looked around and I can't find a solution that helps me. I'm
new to Flex, so I would appreciate a detailed explaination since I'm
obviously not getting it.
Thanks,
GTB
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/