5 Replies Latest reply on Oct 2, 2009 12:29 PM by Ned Murphy

    Error 5000

    ArcadiaCreative

      Hi,

       

      I have this code set up to create hyperlinks for two buttons on my timeline:

       

      function handleLink( pEvent :MouseEvent ):void
      {
          if(pEvent.target == COM )
          {
              var request:URLRequest = new URLRequest( "http://www.dailyfreepress.com/com-senior-recognized-by-ace-editors-for-film-1.1481675" );
              navigateToURL( request, "_blank" );
          }
          else if(pEvent.target == ACE )
          {
              request = new URLRequest( "http://www.ace-filmeditors.org/newace/eddieNominees.html" );
              navigateToURL( request, "_blank" );
          }
      }
      COM.addEventListener(MouseEvent .CLICK, handleLink );
      ACE.addEventListener(MouseEvent .CLICK, handleLink );

       

      This code works fine for these two buttons, but I want to add a hyperlink to another button that appears in a different place in the timeline. When I write the same code for that button, I get the error: "5000: The class 'fl.controls.ScrollBar' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.