14 Replies Latest reply on Feb 2, 2010 11:08 AM by rafa@mediatech

    Flash lingo commands

    rafa@mediatech Level 1

      Hi everyone,

      I have a flash project that I need to import into Director. It is a scroll bar (custom made) movieclip that contains a bunch of buttons (18 buttons). I am trying to have these buttons open PDF documents from director, but it is not working!

      My flash action script (AS2) looks like this:

      contentMain.overPDF.onRelease = function(){
          getURL("lingo:openOverPDF");
      }

      contentMain.overWord.onRelease = function(){
          getURL("lingo:openOverWord");
      }

       

      My movie clip button called "overPDF" is inside a movieclip called "contentMain"

       

      In Director I have the following in a movie script:

       

       

      property openOverPDF

      property openOverWord

       

      on openOverPDF
        baOpenFile( the moviepath&"docs\PDF.pdf", "normal" )
      end

       

      on openOverWord

           baOpenFile(the moviepath&"docs\Word.doc", "normal")

      end

       

      Now, this code works fine if the movieclip "overPDF" is outside "contentMain"... but I needed inside "contentMain" so that it works isinde my scrollable content...

       

      Any idea what am I doing wrong?

       

      thank you in advance!

       

      Rafa.