3 Replies Latest reply on Feb 29, 2008 12:06 PM by Old Flash User

    get a .as class to use an external variable

    Old Flash User

      i have an AS 2.0 class file which is associated to my FLA project. all working fine. there is, however, a *hard-coded* IP address INSIDE the class definition (.as file). i need to make this a dynamic value (so that i can change the IP address at runtime). i am already loading and using the value dynamically (from a config.txt file) within the larger FLA file. but i do not know enough about class definitions to be able to refer to that variable from within the .as file (everything i tried was silly and gave errors).

      so basically, how do i reference the value of a dynamicly loaded variable from within a class definition?
      there is something called dynamic classes in AS 2.0, does the solution involve that?

      any help appreciated, thank you!