<?xml version="1.0" encoding="utf-8"?>
<!-- List populating a Box where forms are selected -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
[Bindable]
public var selectedItem:Object;
public var new_selectedItem:Object;
import flash.net.*;
function executeSearch(event:MouseEvent):void {
var u:URLRequest = new URLRequest("/cgi-bin/forms/" +
ta1.text);
navigateToURL(u,"_Parent");
}
]]>
</mx:Script>
<mx:Model id="mytype">
<form>
<tpe label="Judge parker" data=""> <tpe label="Judge Rhodes" data=""> <tpe label="Notices" data=""> <tpe label="Miscellaneous" data=""> <tpe label="Judgements" data=""> <tpe label="Deputy In Charge" data=""> <tpe label="Courtroom Deputy" data=""> <tpe label="Bankruptcy Appeal" data=""> <tpe label="Bankruptcy PDF" data=""> <tpe label="Facisimilie Cover Page" data=""> </form>
</mx:Model>
<mx:Model id="mygrps">
<jbp>
<group label="Order Setting 8-Day Dismissal Deadline (Matrix)"
form="ordset8daydisin.cfm"/>
<group label="Order Setting 8-Day Dismissal Deadline (Matrix)"
form="ordset8daydisin.cfm"/>
</jbp>
<jbr>
<group label="Order Setting 8-Day Dismissal Deadline (Matrix)"
form="ordset8daydisin.cfm"/>
<group label="Order Setting 8-Day Dismissal Deadline (Matrix)"
form="ordset8daydisin.cfm"/>
</jbr>
</mx:Model>
<mx:Panel title="Form Search" height="75%" width="75%"
paddingTop="10" paddingLeft="10" paddingRight="10">
<mx:VBox width="100%">
<mx:Label text="Select Form Type."/>
<mx:List id="type" width="100%" color="blue"
dataProvider="{mytype.form.tpe}"
change="this.selectedItem=List(event.target).selectedItem"/>
</mx:VBox>
<mx:VBox width="100%">
<mx:Label text="Select Form Order."/>
<mx:List id="source" width="100%" color="blue"
dataProvider="{type.selectedItem.data}"
change="this.new_selectedItem=List(event.target).selectedItem"/>
<mx:VBox width="100%">
<mx:Label text="Selection: {selectedItem.label}"/>
<mx:Label id="ta1" text="{selectedItem.form}"/>
<mx:Label text="data: {selectedItem.data}"/>
</mx:VBox>
<mx:Button label="Go To {selectedItem.form}"
click="executeSearch(event)"/>
</mx:VBox>
</mx:Panel>
</mx:Application>
It still wont POPULATE the second Box but it will post the variable
string in the second box. How do I get this to us that data in the
dataProvider="{type.selectedItem.data}" piece??
any thoughts?
--
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

