Action script /asp form problem

Out of context: Reply #6

  • Started
  • Last post
  • 6 Responses
  • skel0

    in AS1/AS2, scope within an function remains on the object itself rather than the timeline where your scripts are. it's a classic AS problem.

    the most proper way to get around this is to remove that script that's on the button (the one that says on(release)) ...then add an instance name to it if it doens't have one (for the example of the code i'm giving you, call it submitButton)... then deselect the button so that in the actions panel you're adding script to the timeline again and add this:

    import mx.utils.Delegate;
    submitButton.onRelease = Delegate.create(this,SubmitForm...

View thread