2 Replies Latest reply on Aug 11, 2006 12:01 PM by lfn

    button symbol onRelease not recognized in AS

    lfn
      Greetings, all. I apologize in advance if this is the lamest question ever posted here, but I'm having a terrible time with it. Here's the deal: I have a Flash presentation document (slides). The first set of slides are an index to a video that is displayed later.

      In the index slides, I have a series of gotoSlide and gotoAndStop operations launched from button symbols. I'd like to put the code on the timeline (instead of on the button symbol objects). So, the first frame of a slide has the following code, where L1-1_button is one instance of a button symbol:

      L1-1_btn.onRelease = function() {
      gotoAndStop(2);
      }

      When I launch the movie, the output window displays the following error:

      **Error** Screen=lecture1, layer=actions, frame=1:Line 3: Syntax error.
      L1-1_btn.onRelease = function() {

      Why? What's the syntax error? Any help is greatily appreciated. This is making me crazy!