4 Replies Latest reply on Aug 31, 2009 2:39 PM by ICEAR

    Getting error 1013 - don't understand why, have tried to fix it

    ICEAR

      I'm still new to using flex and, I'm interested in AR and have followed a tutorial online for the following code -

       

      package {
          import flash.display.Sprite;
          import flash.media.Camera;
          import flash.media.Video;
          import flash.utils.ByteArray;
         
          import org.libspark.flartoolkit.core.FLARCode;
          import org.libspark.flartoolkit.core.param.FLARParam;
         
          [SWF(width="648" . height="480" . frameRate="30" . backgroundColor="#FFFFFF"

       

          public class FLARdemo extends Sprite
          {
              [Embed(source="markerone.pat" . mimeType="application/octet-stream")]
              private var pattern:Class;
             
              [Embed(source="camera_para.dat" . mimeType="application/octed-stream")]
              private var params:Class;
             
              private var fparams:FLARParam;
              private var mpattern:FLARCode;
              private var vid:Video;
              private var cam:Camera;
             
              public function FLARdemo()
              {
                  setupFLAR();
                  setpuCamera();
              }
             
              private function setupFLAR():void
              {
                  fparams = new setupFLAR();
                  fparams.loadARParam(new params() as ByteArray);
                  mpattern = new FLARCode(16 , 16);
                  mpattern.loadARPatt(new pattern());   
              }
              private function setupCamera():void
              {
                  vid = new Video(640 , 483);
                  cam = Camera.getCamera();
                  cam.setMode(640 , 480 , 30);
                  vid.attachCamera(cam);
                  addChild(vid);
              }
          }
      }

       

      I get the following errors -

      Severity and Description    Path    Resource    Location    Creation Time    Id
      1013: The private attribute may be used only on class property definitions.    FLARdemo/src    FLARdemo.as    line 15    1251561648500    104
      1013: The private attribute may be used only on class property definitions.    FLARdemo/src    FLARdemo.as    line 18    1251561648500    105
      1013: The private attribute may be used only on class property definitions.    FLARdemo/src    FLARdemo.as    line 20    1251561648500    106
      1013: The private attribute may be used only on class property definitions.    FLARdemo/src    FLARdemo.as    line 21    1251561648500    107
      1013: The private attribute may be used only on class property definitions.    FLARdemo/src    FLARdemo.as    line 22    1251561648500    108
      1013: The private attribute may be used only on class property definitions.    FLARdemo/src    FLARdemo.as    line 23    1251561648500    109
      1013: The private attribute may be used only on class property definitions.    FLARdemo/src    FLARdemo.as    line 31    1251561648500    110
      1013: The private attribute may be used only on class property definitions.    FLARdemo/src    FLARdemo.as    line 38    1251561648500    111
      1084: Syntax error: expecting rightbracket before leftbrace.    FLARdemo/src    FLARdemo.as    line 13    1251561648500    103
      1084: Syntax error: expecting rightparen before public.    FLARdemo/src    FLARdemo.as    line 12    1251561648500    102

       

      I have tried to find a solution online but everything I look up just says to enclose my statements which I've looked over and think they are.

       

      Please give me any advise or a solution.

       

      Thank you