troubleshooting Question

Flash version required error with flex 3.5

Avatar of silvera21
silvera21Flag for United States of America asked on
Apache Flex
3 Comments1 Solution565 ViewsLast Modified:
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>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros