actionscript 3 - Flash - How do I dynamically pass XML node name to an external function? -
i want know how pass xml node name as3 function on different file. illustration have flash film contains button, upon beingness clicked passes required name of xml node external as3 file uses access contents within xml node name's element.
"... passes required name of xml node external as3 file" can mean number of things, you'll have clarify right answer.
is as3 file...
another class you're instantiating in document code? another swf loaded within running swf? another external swf running within instance of flash player? an included .as file?i'll seek reply best way can.
let's assume function ran in location a, has access xml file z. function b (whose location remain nameless) has access xml file z. query how pass reference x location in z b.
i'm going assume way in take pass info b not pertinent (since that's wholly dependent on above listed scenarios impact this).
see how traverse xml structures.
at point, pass string representation of path (such "order.book[0].title[0]") b. b, pull node using string xpath. as3 beingness ecmascript doesn't have natively, can import via xpath-as3.
sorry vague, without more info, it's best can offer.
dd daym: removed question reply (as3 reset position of droptarget). sadly stackoverlow offers no pm, rather dump 30 minutes of effort, here's solution.
xml actionscript-3 flash nodes
No comments:
Post a Comment