Hi,
I am wondering if anyone on the list has tried calling up a
pop up manager, and have two other variables imported for secondary
usage. I have tried using [Bindable], but this does not seem to be
working, and I am still getting errors that tells me that the
variables are "not defined" when it gets passed to another
HTTPService. I tried embedding the Pop Up Manager in the same
application as the one that is supposed to "pass the variables,"
but it no longer acts as a pop up window.
Could anyone please tell me where I can find the answers for
this?
Thanks in advance.
Here is the code of what I have for my pop up manager:
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="
http://www.adobe.com/2006/mxml" layout="vertical"
title="New Scenario"
showCloseButton="true"
width="325"
height="145" horizontalScrollPolicy="off"
close="titleWindow_close(event);">
<mx:Script>
<![CDATA[
import mx.events.CloseEvent;
import mx.managers.PopUpManager;
import mx.controls.Alert;
[Bindable]public var message:String;
[Bindable]public var message2:String;
private function titleWindow_close(evt:CloseEvent):void {
PopUpManager.removePopUp(this);
}
private function submit_click():void {
Alert.show(scenario_name.text, "Alert");
new_scenario.send();
PopUpManager.removePopUp(this);
var win:Hello = PopUpManager.createPopUp(this,Hello, true)
as Hello;
PopUpManager.centerPopUp(win);
}
private function reset_click():void {
scenario_name.text = "";
}
]]>
</mx:Script>
<mx:HTTPService id="new_scenario" method="POST" url="
http://localhost/simulator/scenario.php"useProxy="false">
<mx:request xmlns="">
<scenario_name>{scenario_name.text}</scenario_name>
<message>{message}</message>
<message2>{message2}</message2>
</mx:request>
</mx:HTTPService>
<mx:Form>
<mx:FormItem label="Scenario Name:">
<mx:TextInput id="scenario_name"
text=""
maxChars="45" />
</mx:FormItem>
</mx:Form>
<mx:ControlBar horizontalAlign="right">
<mx:Button id="submit"
label="Submit"
click="submit_click();" />
<mx:Button id="reset"
label="Reset"
click="reset_click();" />
</mx:ControlBar>
</mx:TitleWindow>