I'm passing a global variable in my obejct component but the value it's not updating.
1. create a class file setting.as with my global variable:
public class settings
static public var myID:Number = 2; //default value
2. Now from a form i change the value like:
settings.myID = home_dg.selectedItem.MY_ID;
3. In my other screen component I try to see the value with trace and I can see the new value but when I pass the value to my cf remote object the value still the default value.
4. Here is my remote object:
<mx:RemoteObject id="SM_RO" destination="ColdFusion" source="myCFC">
<mx:method name="getQuery" result="getQuery_Handler(event)">
This help me to track the issue.
After create my private variable, i have to assign the value just before I call the object and it works.