Link to home
Start Free TrialLog in
Avatar of silvera21
silvera21Flag for United States of America

asked on

Flash version required error with flex 3.5

I created a basic FLV player for use on my intranet. It works great everywhere I have tried it. However one of our employees (potentially more) gets an error saying that the flash player required is version 10.1.

I originally compiled it with the Flex 4.0 sdk. Supposedly the verision required for that is 10.0.0, so I am not sure why she got the 10.1 required message, since that is not what is listed as being required in the code., But I thought maybe she had the 9.0 flash player. So I switched it to the 3.5 sdk and recomplied it. Sot it is supposedly looking for version 9.0.124. Same message!!

It wasn't using any new tags or anything, just basic stuff - at least I think so, I grabbed it off an old tutorial. I don't even have the 10.1 player myself, just the 10.0.45. and it works fine for me.

Is there something I am not switching? or is it something with the actual .flv file?

My code:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="top" backgroundColor="white" viewSourceURL="srcview/index.html" >
      
      <mx:Script>
            <![CDATA[
                  
                  private function formatTime(item:Date):String {
                        return dateFormatter.format(item);
                  }
                  
                  private function videoDisplay_playheadUpdate():void {
                        
                        var pT:Number = videoDisplay.playheadTime || 0.1;
                        var tT:Number = videoDisplay.totalTime;
                        
                        var pTimeMS:Date = new Date(pT * 1000);
                        var tTimeMS:Date = new Date(tT * 1000);
                        
                        timeLabel.text = formatTime(pTimeMS) + " / " + formatTime(tTimeMS);
                  }
                  
                  private function slider_thumbPress():void {
                        videoDisplay.pause();
                  }
                  
                  private function slider_thumbRelease():void {
                        videoDisplay.playheadTime = slider.value;
                        videoDisplay.play();
                  }
                  
                  private function videoDisplay_ready():void {
                        videoDisplay.visible = true;
                        controlBar.visible = true;
                  }
                  
            ]]>
      </mx:Script>
      
      <mx:DateFormatter id="dateFormatter" formatString="NN:SS" />
      
      <mx:Panel title="Chasing Zero Part 1 ({videoDisplay.state})">
            <mx:VideoDisplay id="videoDisplay" visible="false" width="100%" height="100%"
                                     playheadUpdate="videoDisplay_playheadUpdate()"
                                     ready="videoDisplay_ready()"
                                     rewind="videoDisplay.play()"
                                     source="videofile.flv" />
            
            <mx:ControlBar id="controlBar" visible="false">
                  
                  <mx:HSlider id="slider" width="100%"
                                    allowTrackClick="false"
                                    invertThumbDirection="true"
                                    liveDragging="false"
                                    maximum="{videoDisplay.totalTime}"
                                    minimum="0"
                                    thumbPress="slider_thumbPress()"
                                    thumbRelease="slider_thumbRelease()"
                                    tickInterval="1"
                                    value="{videoDisplay.playheadTime}" />
                  <mx:Label id="timeLabel" textAlign="right" />
                  <mx:Button id="play" name="play" label="Play" click="videoDisplay.play()"></mx:Button>
                  <mx:Button id="pause" name="pause" label="Pause" click="videoDisplay.pause()"></mx:Button>
            </mx:ControlBar>
            
      </mx:Panel>
      
</mx:Application>
Avatar of ChristoferDutz
ChristoferDutz
Flag of Germany image

Well there is a difference between compiling an application fro flex 10 and setting up the wrapper to check for the correct version. Both the HTML-Wrapper and the binary have to be setup correctly.
ASKER CERTIFIED SOLUTION
Avatar of silvera21
silvera21
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It's a good thing to do as the current version has a lot of security stuff fixed :-)

Those are the problems I hate most ... at least if you're not allowed to punch the guys that gave you wrong information ;-)