3 Replies Latest reply on May 30, 2008 5:29 PM by Gregory Lafrance

    All I need from this sweet .flv to play.

    Shelady Level 1
      I have placed a .flv in the application on its first frame <means when the application loads, the first frame of .flv is showing>. I made its autoPlay to false. I want when I click on this .flv it starts playing in the same view. I dont want any other window to open just simple playing the movie on a click.

      Any idea???

      This is my code.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#ffffff" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#000000, #000000]">

      import flash.net.URLLoader;
      import flash.net.URLRequest;
      import flash.events.MouseEvent;
      import flash.events.Event;
      public function launch1(event:MouseEvent):void

      myVid.addEventListener(MouseEvent.CLICK, playMovie);

      public function playMovie():void


      <mx:VideoDisplay id="myVid" height="270" width="290" source="MachineDefrag.flv"
      autoPlay="false" buttonMode="true" useHandCursor="true" click="launch1(event)"/>