【问题标题】:Bada 1.2 and Flash. How shall I understand such thing?Bada 1.2 和 Flash。我该如何理解这样的事情?
【发布时间】:2011-05-17 23:29:17
【问题描述】:

所以我得到了 Bada Wave II.. 它shall have FP9 和 Adob​​e 网站认为它有! 但我们在顶部看到奇怪的横幅。所以我想 - 篦子 - 我们有它......我 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 游戏规则的重大改变者之一……但没有运气……所以我whent to Googlefound 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...这里是截图:@ 987654333@。请注意,Flash 内容不可滚动、不可缩放,并且浏览器显示 ...

所以至少它起作用了!所以我决定尝试进入 html...and modified my flex builder generated html into something as close as possible to that sample that worked,它显示了同样谨慎的 FP9 徽标...:...所以看来我无法在我的 bada 上运行基于 Flex、mxml 的项目...或者我可以吗?有什么建议吗?

那么这个红色/白色 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();

(顺便说一句,诺基亚 N5800 玩过那个=)

【问题讨论】:

  • 为什么要在 bada 上运行 Flex?它会很慢而且毫无用处,因为当时它甚至还不是为移动设备制造的。我不知道,似乎有点无关紧要。
  • @J_A_X:我的主要目标是播放 FLV 视频 flex,flash 没关系。
  • 是的,绝对使用 flash,而不是 flex。它应该很容易工作,但我没有使用 Bada 的经验,所以你只能靠自己了。

标签: html flash apache-flex browser bada


【解决方案1】:

您是否将 Project Properties &gt; Flex Compiler &gt; Adobe Flash Player Options &gt; Use a specific version 设置为 9.0.0?

【讨论】:

  • 我使用了 9.0.124 和 9.0.28...我们在 bouth 上得到了相同的结果...而且 adobes 网站对我们的估计约为 9.1.122
猜你喜欢
  • 2023-03-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-07-09
  • 1970-01-01
  • 2019-01-06
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多