0 Replies Latest reply on Jan 31, 2011 12:36 AM by kiran7881

    How to use Actionscript class variable as Flag ??

    kiran7881 Level 1

      Hi ,

      I have  a Actionscript class

       

      package util
      {
         
      public  class Flag
          {  
           public var viewNamesample:String;
          public function getFlagvalue():String {   
              return viewNamesample;
              }
         
          
          }
      }

       

      In one of my MXML File , i am making use of this above Actionscript class and setting its  value as

       

      <mx:script>
      public var flag:Flag = new Flag() ;

      if()
          flag.viewNamesample = "One";

       

      else
      flag.viewNamesample = "Two";

      </mx:script>

       

      How can i access this flag.viewNamesample value in my another MXML File ??

       

      Please tell me .