2 Replies Latest reply on Jun 19, 2009 9:46 AM by FlexHH

    Accessing a class with actionscript

    FlexHH

      Hi folks.

       

      Since I have not found an action script forum, I hope you guys can help me:

       

      I have a simple class defined in Token.as:

      package
      {
          [Bindable]
          [RemoteClass(alias="amazonas.token")]
          public class Token
          {
              public var id:int;
              public var headline:String;
              public var text:String;
              public var a1:String;
          }
      }

       

      And I want to access it in my mxml:

       

              [Bindable] public var token:Token;
              private function save():void
              {
                  log2.label ="CLICK1";
                  token.headline = "CLICK2";
                  log2.label ="CLICK2";
              }

       

      Unfortunately, the call is never finished! The label stays at CLICK1. So I think somehow, the write procedure gets stuck

       

      Any thoughts on that?

       

      OAD