title: Action Script : Syntax error: expecting identifier before leftbrace
body: <p>From the Google search, I found so many faced this error but still I couldn't fix this issue in my code, SO had to create this new thread :|</p>
  
  <p>I used sothink SWF quicker to edit a existing swf file ( <a href="http://fc05.deviantart.net/fs70/f/2012/265/8/d/birthday_swf_by_zedrin-d5fjn8h.swf" rel="nofollow">SWF file I used</a> )</p>
  
  <p>I imported this swf file and when I tried to preview the swf file it produced these errors</p>
  
  <p>ERROR: fromtext_15.as, Line 7: Syntax error: expecting identifier before leftbrace.
  ERROR: BirthdayTitle_14.as, Line 7: Syntax error: expecting identifier before leftbrace.</p>
  
  <pre><code>package egobirthdaySWF_fla
  {
      import flash.display.*;
  
      dynamic public class BirthdayTitle_14 extends MovieClip
      {
  
          public function BirthdayTitle_14()
          {
              addFrameScript(277, frame278);
              return;
          }// end function
  
          function frame278()
          {
              stop();
              return;
          }// end function
      }
  }
  
  
  package egobirthdaySWF_fla
  {
      import flash.display.*;
  
      dynamic public class fromtext_15 extends MovieClip
      {
  
          public function fromtext_15()
          {
              addFrameScript(302, frame303);
              return;
          }// end function
  
          function frame303()
          {
              stop();
              return;
          }// end function
  
      }
  }
  </code></pre>
  
  <p>can somebody help me to fix this (:</p>