OZONE Asylum
Forums
Multimedia/Animation
Flash, XML, class constructors
This page's ID:
11461
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Well, here's the weird thing: as written in the first example, the gameOnLoad() function [i]was[/i] working, even specified as "game_xml.onLoad = gameOnLoad" in the constructor! Dracusis, good comment -- you're entirely correct. I removed the redundant assignment operation, and the XML file still gets loaded into game_xml (which is good, because that's how it should work anyway). What's more, asking for this.toString() within the gameOnLoad function works, but game_xml.toString() doesn't. I guess I didn't understand the scoping... Within a method of game_xml, I can't refer to the parent class object by its parent class identifier. Well, now I get it. Thanks for the help, gentlemen! I'll probably have more questions, but on the other hand I'm working on implementing a web-based game that I think you'll really like when I'm done! [url=http://faq.ozoneasylum.com/1250]Cell 1250[/url] :: [url=http://www.alanmacdougall.com]alanmacdougall.com[/url] :: [url=http://www.gurusnetwork.com/tutorials/illustrator/index.html]Illustrator tips[/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »