kbnordvest
asked on
Change value of Variable in Module
I have a variable in my module that i need to change the value of from a component.
The variable in the madule looks like this:
[Bindable]
public var vaSec:Boolean = false;
How is this done?
The variable in the madule looks like this:
[Bindable]
public var vaSec:Boolean = false;
How is this done?
public function txtSecurity_changeHandler(event:TextOperationEvent):void
{
if (securityText.text == txtSecurity.text)
{
parentApplication.vaSec = true;
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I use the "myApp(parentApplication)" . This only gave me access to my main application. I could see variables inside the Module, however i could not change the value of them. I ended up adding the Component code into the Module.
Could you give a basic overview of the classes you are using, as well as the relationship of each class, including how the display objects are laid out (child of child etc)
Are you getting any errors from your current code, or is it just not working?