Topic: Flash, XML, class constructors |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Milwaukee |
posted 10-12-2003 02:57
I'm just now learning Flash, and I'm having a problem that might have an obvious solution. I'm creating a class which gets an XML file from my PHP backend, keeps it as a Flash XML object, and doles out relevant information when requested. It looks like this: code: class GameData
code: [i]// this is in the constructor[/i]
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 10-12-2003 03:34
Just a guess, but maybe it should be |
Maniac (V) Inmate From: Brisbane, Australia |
posted 10-12-2003 21:02
This would be Actionscript 2 (Flash MX 2004) yes? |
Paranoid (IV) Inmate From: Milwaukee |
posted 10-12-2003 22:52
Well, here's the weird thing: as written in the first example, the gameOnLoad() function was working, even specified as "game_xml.onLoad = gameOnLoad" in the constructor! |
Maniac (V) Inmate From: Brisbane, Australia |
posted 10-13-2003 04:10
I'm glad things are working now |
Obsessive-Compulsive (I) Inmate From: |
posted 01-04-2005 10:39
look at this very interesting macromedia link |
Maniac (V) Inmate From: Boston, MA, USA |
posted 01-04-2005 19:30
If you have the 7.2 (elipsis) update, there is a very useful new class built in called "Delegate" which really helps a lot with scoping things like callback functions. code: import mx.utils.Delegate;
|