SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast wulf2001's Avatar
    Join Date
    Feb 2008
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    a good tutorial on writing .as files and packages in 2.0

    Was wondering if anyone could point me in the direction of a good tutorial on how to write and import from packages strictly from .as files written in actionscript 2.0

    I googled but couldn't find anything of any serious use.

  2. #2
    SitePoint Wizard jim_morrison3's Avatar
    Join Date
    Apr 2004
    Location
    UK
    Posts
    2,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You dont need to refer to a tutorial for that, package are folders containing your class files. You can classify the class files as a part of the package based on their functionality. For eg; you have a class for Loading XML files called XMLLoader, you can have a folder called "model" and keep your XMLLoader class file in the "model" folder. All these packages can be placed inside a root folder usually called "com".

    Now if you want to call the XMLLoader class in your application then you can simply refer to it in the following manner:

    import com.model.XMLLoader;
    Good Luck!
    There are things known and Things unknown
    And in between are the Doors.
    I love hand Coding.

  3. #3
    SitePoint Guru Dijup's Avatar
    Join Date
    Jun 2006
    Location
    Kathmandu, Nepal
    Posts
    790
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this sounds grate.

    but do we have to compile every time we make the changes as include as file.

  4. #4
    SitePoint Wizard jim_morrison3's Avatar
    Join Date
    Apr 2004
    Location
    UK
    Posts
    2,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes if you make a change in the class file then you need to re-compile your application.
    Good Luck!
    There are things known and Things unknown
    And in between are the Doors.
    I love hand Coding.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •