1 Reply Latest reply on Jul 28, 2008 7:19 AM by kglad

    Passing variable to a function

      Hi all,

      I have this script that reads pictures and links of the pictures from the an xml file, display the picture and then put the link for the image, but I can't seem to pass the link to the onRelease function anyone can help me on this, below is the code:

        • 1. Re: Passing variable to a function
          kglad Adobe Community Professional & MVP
          _link is changing with each loop of your for-loop and your movieclip button has no way to retrieve the value of _link when your movieclip is created.

          so, create a property of your movieclip that points to _link and use that property in your onRelease handler: