0 Replies Latest reply on Dec 12, 2008 7:53 AM by triad9999999

    flv toggle button

    triad9999999
      I am trying to create a button for my custom flv player that gives the user the ability to toggle between a hi res or low res flv.
      The button (instance name = res)will at first be visible but when clicked it will load hi-res.flv and button will disappear
      A new button(instance name res2)will appear and when clicked play low res.flv and son like a toggle.

      I have the code to toggle between the two flvs but how do i make the buttons function as mentioned above.

      Cheers in advance.

      Here is my flv toggle code

      [code=text]
      var hiVer:Boolean = true;

      function playFlik(filmName:String){
      ns.play(filmName);
      }

      res.onRelease = function(){
      if(hiVer){
      //play hi version
      playFlik("hiResMovie.flv");
      //toggle
      hiVer = false;
      }
      res2.onRelease = function(){
      if(hiVer){
      //play hi version
      playFlik("hiResMovie.flv");
      //toggle
      hiVer = false;
      [/code]

      triad promotional merchandise business gifts supplier uk