9 Replies Latest reply on Jul 7, 2014 9:51 AM by kglad

    .onRelease button not playing video

    jdblundell-dcccd Level 1

      I created an video Flash ad with ActionScript 3.0 and was then told by the publisher I could only use ActionScript 2.0. #smh


      I've gone back and tried to figure out the ActionScript 2.0 alternatives and syntax and the ad appears now without any errors but I seem to be missing something as the play_btn will not start the video.


      Here's my script:


      var myVideo:Video = new Video(300, 170); // note size for video



      // Play button

      play_btn.onRelease = function() {

        var nc:NetConnection = new NetConnection();


        var ns:NetStream = new NetStream(nc);

        ns.client = new Object();







      // Stop button

      stop_btn.onRelease = function() {




      // Lean More button

      learn_btn.onRelease = function() {

        getURL(_root.clickTAG, "_blank");



      // stop();


      I'm not sure if I need the stop command or not as right now it's not making a difference one way or the other. Any help on what I'm missing would be greatly appreciated.