00:00
00:00
Newgrounds Background Image Theme

xrusteater0 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

functions and xml

296 Views | 2 Replies
New Topic Respond to this Topic

functions and xml 2014-11-15 08:00:15


is it possible to store a function in xml, and the attach/pass it into runtime?

Response to functions and xml 2014-11-15 13:11:48


At 11/15/14 08:00 AM, NecroBlight wrote: is it possible to store a function in xml, and the attach/pass it into runtime?

Depends what you mean, if you mean just writing a call to a function then yes that's somewhat possible. If you're talking about writing a magical classless importless function to load in at runtime then no.

When you compile an swf the AS is converted into bytecode, the swf will no longer understand any AS.


If ya have something to say, PM me. I have a lot of time to spare.

Also never PM egg82.

BBS Signature

Response to functions and xml 2014-11-15 16:32:48


XML is a markup language so, no, you cannot write any logic in XML. It's basically the same thing as JSON: XML is only used for storing data/information, not unlike an SQL database. You can store information in XML that can be passed to a function but you cannot write a function itself in XML.