0 Replies Latest reply on May 6, 2008 8:45 AM by Cain_Andrews

    FLEX video & Popup Question

      Hey everyone,

      I'm working here with the New Flex Builder and AS3.0

      I would like to play a movie clip and display different popups based on different points in the movie (in my example here I want to display one popup if the user clicks in the first 5 seconds and a different one after that)

      Perhaps better would be to just pass in a number or string so the dialog box could delegate internally what to display, suggestions on better ways of handling this are more than welcome! (keep in mind im relatively new at this)

      anyway this is what I've tried and it doesnt seem to work, hoping someone out there could tell me where I am goofing up

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" verticalAlign="middle"
      width="418" height="385">



      <!-- Handles creating the pop up manager for the what was that window -->
      import mx.managers.PopUpManager;

      private function launchMoreInfo():void {

      if (videoPlayer.playheadTime>5){
      var winialog = PopUpManager.createPopUp(this, Dialog, true) as Dialog;
      var win2ialog2 = PopUpManager.createPopUp(this, Dialog2, true) as Dialog2;



      <mx:VBox backgroundColor="white" width="416" height="383">
      <mx:VideoDisplay width="415" height="349" id="videoPlayer"
      source="./test.flv" />
      <mx:HBox width="412" horizontalAlign="center">
      <mx:Button label="Play" click="videoPlayer.play()" id="playButton"/>
      <mx:Button label="What was that?" click="launchMoreInfo();videoPlayer.pause();"/>