silvera21
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/ind ex.html" >
<mx:Script>
<![CDATA[
private function formatTime(item:Date):Stri ng {
return dateFormatter.format(item) ;
}
private function videoDisplay_playheadUpdat e():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="videoDispl ay_playhea dUpdate()"
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.tot alTime}"
minimum="0"
thumbPress="slider_thumbPr ess()"
thumbRelease="slider_thumb Release()"
tickInterval="1"
value="{videoDisplay.playh eadTime}" />
<mx:Label id="timeLabel" textAlign="right" />
<mx:Button id="play" name="play" label="Play" click="videoDisplay.play() "></mx:But ton>
<mx:Button id="pause" name="pause" label="Pause" click="videoDisplay.pause( )"></mx:Bu tton>
</mx:ControlBar>
</mx:Panel>
</mx:Application>
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/ind
<mx:Script>
<![CDATA[
private function formatTime(item:Date):Stri
return dateFormatter.format(item)
}
private function videoDisplay_playheadUpdat
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="videoDispl
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.tot
minimum="0"
thumbPress="slider_thumbPr
thumbRelease="slider_thumb
tickInterval="1"
value="{videoDisplay.playh
<mx:Label id="timeLabel" textAlign="right" />
<mx:Button id="play" name="play" label="Play" click="videoDisplay.play()
<mx:Button id="pause" name="pause" label="Pause" click="videoDisplay.pause(
</mx:ControlBar>
</mx:Panel>
</mx:Application>
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 ;-)
Those are the problems I hate most ... at least if you're not allowed to punch the guys that gave you wrong information ;-)