Posted By

Bonky on 07/20/07


Tagged

url actionscript link function href arguments call


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

eorwoll


Using asfunction to trigger actionscript from a URL link.


 / Published in: ActionScript
 

URL: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15639&sliceId=2

to call this function you would use "asfunction:myFunction,argument1,argument2,argument3" as the href in the tag in an HTML text box.

  1. function myFunction(param){
  2. argumentArray = new Array;
  3. argumentArray = param.split(",");
  4. for (i=0; i< argumentArray.length; ++i){
  5. trace("Function argument " + i + " = " + argumentArray[i]);
  6. }
  7. }

Report this snippet  

You need to login to post a comment.