3 Replies Latest reply on Feb 5, 2008 12:10 PM by ooba

    Please I need a quick answer.

    ooba Level 1
      all,
      I have lots to do and little time to do it in. I am creating class files (.as) to create objects to use in my flash file. However I can not seem to get them to import.

      I am not sure how to specify the path to the .as file as it is in a folder nested below the level that the flash file is in.
      /root
      myFlash.fla
      myFlash.swf

      /root/myClasses
      myClassA.as
      myClassB.as

      Would i NOT just specify
      import myClasses.MyClassA;
      import myClasses.MyClassB;

      var myAObj:MyClassA = new MyClassA();
      var myBObj:MyClassB = new MyClassB();
      ? ? ? ? ? ?

      -0---------------------
      It appears to me that I need to be able to identify each class a package path or something.
      Can someone tell me how to import classes from a nested structure.
      I dont want all the .as files on the same level as the flash file.
      -0---------------------

      Thank you all for your assistance.