所以我得到了Bada Wave II ..它shall have FP9和Adobe网站认为它有! 但我们在顶部看到奇怪的横幅。所以我想 - 格栅 - 我们拥有它......而我built this fith flex builder 3 for FP 9.0.124但是当我去它时,我只看到
或 ...
背后的代码很简单:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:VideoDisplay id="va" source="http://imgproc.apmath.spbu.ru:4773/robot669394444.flv?action=read" autoPlay="true" metadataReceived="doHust()" left="10" right="10" top="10" bottom="38"/>
<mx:TextArea bottom="10" text="" height="20" right="10" left="10" id="ta"/>
<mx:Script>
<![CDATA[
public function doHust():void
{
ta.text = va.totalTime.toString() + " " + va.source.toString() + " " + va.playheadTime.toString() + " Build By Cloud Forever team in 2011 for testing Bada 1.2 (Samsung Wave II) flash capabileties in browser. Build for FP 9.0.124";
}
]]>
</mx:Script>
</mx:Application>
我还尝试为FP 9.0.28编译它,FP 9.0.28是一个大型FP游戏改变者......但没有运气..所以我whent to Google和found something that worked on Bada and at the same time was FP9!) It was not working 100% correctly as you can see but any way - I can operate with out navigation ...这是截图: 。请注意,Flash内容无法解析,不可解析且浏览器显示 ...
所以在leasted它工作!所以我决定尝试进入html ... and modified my flex builder generated html into something as close as possible to that sample that worked并且它显示了同样谨慎的FP9徽标......: ...所以看来我无法运行Flex,基于mxml我的bada项目......或者我可以吗?任何提示?
那么红色/白色FP9方形图标是什么意思呢?
更新
所以..好吧 - 没有FB ..但是我们仍然有普通的FP9和Flash CS5 ......所以我们可以在Flash Pro中构建这样的视频播放代码并尝试查看它......
所以我的代码:
import flash.display.Sprite;
import flash.events.NetStatusEvent;
import flash.events.SecurityErrorEvent;
import flash.media.Video;
import flash.net.NetConnection;
import flash.net.NetStream;
import flash.events.Event;
var videoURL:String = "http://imgproc.apmath.spbu.ru:4773/robot669394444.flv?action=read";
var connection:NetConnection;
var stream:NetStream;
var video:Video = new Video();
function main() {
connection = new NetConnection();
connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
connection.connect(null);
}
function netStatusHandler(event:NetStatusEvent):void {
switch (event.info.code) {
case "NetConnection.Connect.Success":
connectStream();
break;
case "NetStream.Play.StreamNotFound":
trace("Stream not found: " + videoURL);
break;
}
}
function securityErrorHandler(event:SecurityErrorEvent):void {
trace("securityErrorHandler: " + event);
}
function connectStream():void {
var stream:NetStream = new NetStream(connection);
stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
stream.client = {};
stream.client.onMetaData = l_onMetaData;
stream.client.onCuePoint = l_onCuePoint;
video.attachNetStream(stream);
stream.play(videoURL);
addChild(video);
}
function l_onMetaData(info:Object):void {
trace("metadata: duration=" + info.duration + " width=" + info.width + " height=" + info.height + " framerate=" + info.framerate);
video.width = info.width;
video.height = info.height;
}
function l_onCuePoint(info:Object):void {
trace("cuepoint: time=" + info.time + " name=" + info.name + " type=" + info.type);
}
main();
我的应用程序在线FP9.0.0,我们得到同样糟糕的结果= - (
所以..好吧 - 我没有FP9 ..所以让我们try Flash lite 2 (flash 7 analog) fla file here和2个代码行:
WideoWid.contentPath = "http://imgproc.apmath.spbu.ru:4773/robot669394444.flv?action=read";
WideoWid.play();
(BTW nokia N5800播放了=)
答案 0 :(得分:1)
您是否已将Project Properties > Flex Compiler > Adobe Flash Player Options > Use a specific version
设为9.0.0?