1 Reply Latest reply on Sep 8, 2006 10:36 AM by jonnybennett

    trouble with onRelease

      This one confuses me. I have a button nested within an accordion component. I basically want to call a function, but it's not working. Here's the actionscript:

      my_acc.somethingElse.uploadFile.onRelease = uploadImage;

      That does absolutely zilch. Oddly enough, the following code works perfectly:

      my_acc.somethingElse.uploadFile.onRelease = function() {
      trace("It works!");

      Also, if I assign the same function to another button, it works fine. (i.e. my_button.onRelease = uploadImage;)

      Any ideas as to what could be wrong?