1 Reply Latest reply on Jan 3, 2007 12:21 PM by Newsgroup_User

    Flash movie using a .asp variable

    Level 7
      Hi there.

      I want to put a flash movie onto 20+ pages of my website. The flash movie
      has a link to a particular pdf file (different for all 20+ pages). So, is it
      possible for me to use a variable on the .asp page and for that variable to
      be useable in the flash movie to save me making a different movie for each
      page.

      Any pointers on how I could do this would be great.

      Regards

      James Brown
      ------------
      Pseudo code:

      on the asp page
      <%
      varLink = "/docs/page1.pdf"
      %>

      then in the flash movie

      getURL(varLink);


        • 1. Re: Flash movie using a .asp variable
          Level 7
          pass the asp variable to the flashvars in the param and embed code.

          <PARAM NAME=FlashVars VALUE="foo=<%=myVar%>">
          <embed src="mySWF.swf" FlashVars="foo=<%=myVar%>">

          the variable will now be available within your swf

          --

          Dan Mode
          --> Adobe Community Expert
          *Flash Helps* http://www.smithmediafusion.com/blog/?cat=11
          *THE online Radio* http://www.tornadostream.com
          *Must Read* http://www.smithmediafusion.com/blog



          "James Brown" <jb@macromediaforum.com> wrote in message
          news:enh1e3$a77$1@forums.macromedia.com...
          > Hi there.
          >
          > I want to put a flash movie onto 20+ pages of my website. The flash movie
          > has a link to a particular pdf file (different for all 20+ pages). So, is
          > it possible for me to use a variable on the .asp page and for that
          > variable to be useable in the flash movie to save me making a different
          > movie for each page.
          >
          > Any pointers on how I could do this would be great.
          >
          > Regards
          >
          > James Brown
          > ------------
          > Pseudo code:
          >
          > on the asp page
          > <%
          > varLink = "/docs/page1.pdf"
          > %>
          >
          > then in the flash movie
          >
          > getURL(varLink);
          >