AS Coders

Out of context: Reply #3

  • Started
  • Last post
  • 16 Responses
  • AMFA0

    In that case:

    I would recommend taking your code out of the frames & fla file.

    I like to use a Control class.
    An AS2 class in a .as file

    In the first frame (and movie typically) I only have one or two lines of code:

    _global.Control = new ControlClass()

    in the constructor for the class, i intialize the stage, the objects and layout

    also for XML i would create a separate class for that. currently i have written one that takes an xml file and imports it to an associative array.

    that way i never have to rewrite any xml transfer. reusable over all my sites....

    (continued)

View thread