2 Replies Latest reply on Apr 12, 2009 3:51 PM by kglad

    as3-cs4 package.as subclasses MovieClip, fla generates error 5000 anyway

      Hi, I am working with a trial version of Flash CS4 on a leopard intel mac.

      Starting with a clean os install, and a clean cs4 install I do the following

       

      start Adobe Flash CS4: Trial Version

      Select "I would like to continue to use this product on a trial basis" and continue...

       

      select create new Flash File (action script 3.0)

      open actions window

      type the following..

      trace("hello world");

      save file test_report.fla

      test file

      output ok.

      close swf window

      file > new > action script file

      type in the following code

       

      package {
          public class test_report{
              public function test_report(){
                  trace("Hello world");
              }
          }
      }

       

      select the test_report.fla tab

      fill in the "Class:" textbox of the property window with the string "test_report"

      click the pencil icon to test that pathing is ok, the UI opens test_report.as so it must be ok.

       

      test the movie

      2 errors

      1180: Call to a possibley undefined method addFrameScript

      5000: the class "test_report" must subclass 'flash.display.MovieClip' yada yada

       

      so add the offending line to the as file so that it looks like this..

      package {
          public class test_report{
             
              import flash.display.MovieClip;
             
              public function test_report(){
                  trace("Hello world");
              }
          }
      }

       

      save and test movie, same two errors

      AS IF I HAD NOT MADE THE ENTRY!

      NOTHING I CAN DO WILL MAKE THE ERROR GO AWAY

       

      obviously I am doing something wrong, please help!

       

      I only have 15 days left on the trial and I would really like to know I can get this to work on leopard!

       

      thanks

      rob

       

       

      Hardware Overview:

       

        Model Name:    iMac
        Model Identifier:    iMac7,1
        Processor Name:    Intel Core 2 Duo
        Processor Speed:    2.4 GHz
        Number Of Processors:    1
        Total Number Of Cores:    2
        L2 Cache:    4 MB
        Memory:    1 GB
        Bus Speed:    800 MHz
        Boot ROM Version:    IM71.007A.B03
        SMC Version:    1.20f4
        Serial Number:    W880759YX86

       

        System Version:    Mac OS X Server 10.5.6 (9G71)
        Kernel Version:    Darwin 9.6.0
        Boot Volume:    workSystem
        Boot Mode:    Normal
        Computer Name:    kbox
        User Name:    rob foree (robforee)
        Time since boot:    1:02