frankfenghua / monarch-flex

Automatically exported from code.google.com/p/monarch-flex
1 stars 0 forks source link

Global constant for server URL #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The URL is currently being redefined in every MXML file.  It will save us
the trouble if we make it global or a static variable in some file.

Original issue reported on code.google.com by tokyotech on 12 Apr 2009 at 7:13

GoogleCodeExporter commented 8 years ago
I created an ActionScript class Constants and defined a static constant 
SERVER_URL.
I'm not sure this if this is the convention in AS but it works.

Original comment by andrewps...@gmail.com on 21 Apr 2009 at 10:05

GoogleCodeExporter commented 8 years ago

Original comment by andrewps...@gmail.com on 26 Apr 2009 at 4:36