0 Replies Latest reply on Jan 10, 2013 9:09 PM by Double_EDGE_Sword

    Global Parameters

    Double_EDGE_Sword

      I'm trying to learn to use parameters to pass on info to check if my introduction video has played already.  I'm using adaptive layouts and each time I resize it plays the same intro video again. 

       

      On my stage, under completionReady I have:

       

      sym.setParameter ("channel", 0);

       

      In one of my adaptive layouts, under creatiion complete I have:

       

      var c = sym.getParameter ("channel");

       

      //Check if video has played   

      if(c == 0) {

                //MONITOR

                sym.$("mon900").append(mon);

                mon.attr('autoplay','autoplay');

                mon.attr('preload','auto');

      }

       

      //End point of Video

      $(mon).bind("ended", function () {

                sym.setParameter ("channel", 1);

                //remove items (video) loaded into div (if you want to load another in its place)

                sym.$("mon900").children().remove();

                sym.$("mon900").append(stat);

                stat.attr('autoplay','autoplay');

                stat.attr('preload','auto');

                stat.attr('loop','loop');

      });

       

      What am I missing?  Thanks!