XML / CDATA question
- Started
- Last post
- 4 Responses
- ifeltdave
Is there are way to associate an actionscript function with linked text in a CDATA node? I know i've done it before, something like 'ASFunction' in the <a> tag..but I can't remember the exact syntax.
I also don't recall being able to pass arguments to said function via the xml...is there anyway to do this?
I'm using AS2 (sadly) by the way. Any insight is appreciated.
- acescence0
here's a workaround, but it's AS3:
- PonyBoy0
*** xml node example
< node >
< ! [ CDATA [ HI there, this link sends you to the < a href= " asfunction:galleryLaunch " > Gallery < / a > . < br > Enjoy! ] ] >
< / node >*** end xml node example
--
simply put... asfunction was correct... it goes inside the html anchor (href =""...)...
... 'galleryLaunch' is your global function somewhere in the swf just waiting to be called and do as told!
- ifeltdave0
damn, so they removed the feature. thats fine, will just have to find some other way. I hate as2 now that I've tasted the sweet nectar of as3.