Link to home
Start Free TrialLog in
Avatar of kbnordvest
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?
public function txtSecurity_changeHandler(event:TextOperationEvent):void
			{
				if (securityText.text == txtSecurity.text)
				{
					parentApplication.vaSec = true;
				}
				
			}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of andreMariano
andreMariano
Flag of Brazil image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry, I don't fully understand what you are trying to do. Do you think you could elaborate a bit more?

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?
Avatar of kbnordvest
kbnordvest

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.