1 Reply Latest reply on Aug 25, 2010 6:17 AM by jfb00

    global variables in cf remote object

    jfb00 Level 3

      Hi All,

      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)">

      Any ideas?