In this little login program, I am able to determine the user’s department ok but am having trouble binding this dept data to a url launch string.
Portions of the program follow. Help would be appreciated. --Bill <fx:Script> <![CDATA[ [Bindable] public var myDept:ArrayCollection; [Bindable] public var thisDept:String; [Bindable] public var launchStringA:String [Bindable] public var launchStringB:String [Bindable] public var launchStringZ:String //_______________________________________________________________________________________________________ private function newWin(url:String):void { var urlRequest:URLRequest = new URLRequest(url); navigateToURL(urlRequest, ""); } //__________________________________________________________________________________________________ protected function soWhatsMyDept_resultHandler(event:ResultEvent):void { myDept = event.result as ArrayCollection; thisDept = myDept.getItemAt(0).Depts; } //__________________________________________________________________________________________________ protected function passWordInput_enterHandler(event:FlexEvent):void { UserService.passWordTest.send(); UserService.soWhatsMyDept.send(); } ]]> </fx:Script> <fx:Binding source="thisDept" destination="launchStringB" /> <fx:Declarations> <s:method name="soWhatsMyDept" result="soWhatsMyDept_resultHandler(event)"> <s:arguments> <username> {userNameInput.text} </username> </s:arguments> </s:method> </s:RemoteObject> </fx:Declarations> <!--______________________________________________________________________________________________________--> <s:Label includeIn="MainMenu" x="61" y="388" width="103" height="37" text="{thisDept}"/> <s:Label includeIn="MainMenu" x="57" y="516" text="{launchStringA}"/> <s:Label includeIn="MainMenu" x="57" y="532" text="{launchStringB}"/> <s:Label includeIn="MainMenu" x="57" y="552" text="{launchStringZ}"/> </s:Application>