title: ActionScript syntax error 1084: expecting rightbrace before leftbrace and var 'colour' will be scoped to default namespace
body: <p>I got an error which says </p>
  
  <blockquote>
    <p>1084 syntax error; expecting rightbrace before leftbrace as well as var 'colour'  will be scoped to default namespace.</p>
  </blockquote>
  
  <p>Im' not sure what is going on but it is interfering with my ability to debug. it is action script</p>
  
  <p>1084 error</p>
  
  <pre><code>package {
  import flash.display;
  import flash.display.Loader;
  import flash.display.Sprite;
  import flash.events.Event;
  import flash.net.*;:
  
  public class assgn extends Sprite
  { 
  
      public function assgn()
      {
        var request = new URLRequest("C:\Users\Fujitsu User\Desktop\projects folder09_10");
        var loader = new Loader();
        loader.load(request);
  
        addChild(loader);
  
        loader.x = 100;
        loader.scaleY = 0.5;
  
        var recA:Sprite = new Sprite();
  
        graphics.beginFill(0xFFF010);
        graphics.lineStyle(1);
        graphics.drawRect(0, 380, 50, 20);
        addChild(recA);
  
          recA.x = 300;
          recA.y = 300;
          recA.scaleX = 2;
          recA.scaleY = 2;
          recA.addEventListener(Event.ENTER_FRAME, moveRecA);
          graphics.beginFill(0xFF0000);
       }
     }
   }
  </code></pre>