is it possible to store a function in xml, and the attach/pass it into runtime?
is it possible to store a function in xml, and the attach/pass it into runtime?
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.
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.