Themes

Categories

Archives

Meta

Importing custom A.S classes

Posted January 8th, 2009 by
Categories: straightguysca.com
  • Hello peeps, I am getting confused about importing custom classes into Flash 8. What exactly are the steps to go about doing it?
    And once it's integrated, it's there forever?

    Don't mind me for asking this, I am trying hard to pick up flash. :-/


  • import MyClass;
    Once it's imported, you can reference it only on the timeline for which it is imported. You'll have to import it again for every other timeline you wish to use it on.


  • If you have a file: commyClassescustomClass.as in your class path, then your code would be:

    import com.myClasses.customClass;If its in the same directory as the fla then you can import just the classname as shown above. Importing is not always required explicitly in AS 2.0 but it is required in 3.0.


  • gotoandlearn (http://gotoandlearn.com/) has a great tutorial on "Using Custom Classes" :A+:







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Importing custom A.S classes , Please add it free.