<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    何以解憂?唯有Java

    其實程序員也懂得浪漫!
    posts - 90, comments - 637, trackbacks - 0, articles - 2
      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理
          這個是sun 官方論壇里的一個主題貼,這個帖子很有代表性,他回答了大部分Flash 開發人員的問題.
    下面是問題和解答的詳細內容:(英文內容太多,就不翻譯了,本博客使用了在線翻譯功能,看到不懂的單詞,選中它就會有翻譯了)
    提問:
    Hi all,

    I'm actually a Flash developer and have a few questions regarding JavaFX.
    Please answer these essential questions that helps to convert Flasher's to JavaFXer's,
     many Thank's in advance :)

    - It's possible to replace the default Java JRE preloader( That orange looking like this [S] thing) with
    my own and maybe interactive preloader(like small simple games)?
    - Is there a way to bypass that JDK run/trust dialog in Webstarts and Applets?
    (That dialog looks too dangerous for most people, looks like a antivirus application message and the users
    usually hit no/aboard.)
    - It's possible to make a JavaFX Applet with transparent background to let html elements shine through.
    - It's possible to put an JavaFx Applet behind the html elements using Z-Index?
    - It's possible to let an compiled JavaFX applet load another compiled JavaFx applet
     (like in Flash loadMovie into a empty Movieclip)?
    - It's possible to create custom controls like futuristic strange acting scrollbars, buttons, menus
    like people do in Flash?
    - Does JavaFx support stage scaling and auto position content by using something similar to Flash's
    (listener:Object)
    - How does many in html embed JavaFX Applets perform running all at same time(like Flash banners,
    now a days)?
    - Does it support RGB(A) in its color space for creating vectors objects i.e. in circle gradients?
    - It's possible to mix JavaFX Applets with Java Applets ( lets say load a normal in Java written Applet
     into an in JavaFX writen Applet and/or vise versa)?
    - Does it support easing in and out in animations?
    - Will JavaFX Mobile version miss something from it's big Brother JavaFX desktop version?
    - Will JavaFX support "embed" Font's(*.TTF), Graphic's:(*.SVG, *.PNG-rgba, *.JPG, *.TIFF, .BMP), Video's:( AVI, MPEG1+2), Music:(.MP3, *.WMA, *.FLAC, OGG-Theora)?
    - Will JavaFX support accessing hardware like ejecting a DVD or at least possible to extend it?
    - Will JavaFX support Webcam's and/or Microphones?
    - It's possible to interact with server side languages like PHP, Perl, JSP and Databases like MySQL
    - Will JavaFx support loading and writing XML-Data
    - Will it be possible to access files on Harddrive from within JavaFX Applets and/or Webstarts?
    - Whats about cookies will this be supported?

    Any other hints, sites for ex-Flashers and Java & JavaFx newbies like me?

    c'ya
    lleoneye

    回答:
    I've tried to answer as many questions here as possible.

    - It's possible to replace the default Java JRE preloader( That orange looking like this [S] thing)
     with my own and maybe interactive preloader(like small simple games)?

    You can do it manually by creating a small applet which does the game and then manually
    loads the rest using classloaders. It's tricky and requires signing (usually), so we are working
     on ways to make this much easier. You can just replace the preloader with an animated gif
    or png. See my blog here:

    http://weblogs.java.net/blog/joshy/archive/2008/08/a_better_applet.html

    - Is there a way to bypass that JDK run/trust dialog in Webstarts and Applets?(That dialog looks
    too dangerous for most people, looks like a antivirus application message and the users usually hit
     no/aboard.)

    If your application is not signed then you won't get this dialog. This dialog only comes up when
    you sign the application, which means you are requesting full access to the user's computer.

    - It's possible to make a JavaFX Applet with transparent background to let html elements
     shine through.

    Not yet. We are working on this.

    - It's possible to put an JavaFx Applet behind the html elements using Z-Index?

    I think this works, but I haven't tried it yet.

    - It's possible to let an compiled JavaFX applet load another compiled JavaFx applet
     (like in Flash loadMovie into a empty Movieclip)?

    see my first answer. possible but hard, getting easier.

    - It's possible to create custom controls like futuristic strange acting scrollbars, buttons,
    menus like people do in Flash?

    absolutely!

    - Does JavaFx support stage scaling and auto position content by using something similar to
     Flash's (listener:Object)

    I'm not sure what you mean here. You can create bindings so that a component is automatically
    centered in the stage if you want.


    - How does many in html embed JavaFX Applets perform running all at same time(like Flash banners,
     now a days)?

    multiple applets in a single page will share a single instance of the JVM.

    - Does it support RGB(A) in its color space for creating vectors objects i.e. in circle gradients?

    yes. we use RGBA for everything and radial gradients are supported

    - It's possible to mix JavaFX Applets with Java Applets ( lets say load a normal in Java written
     Applet into an in JavaFX writen Applet and/or vise versa)?

    yes, subject to the issues I mentioned earlier.

    - Does it support easing in and out in animations?

    it already does. just change the tween method from Interplolator.LINEAR to Interpolator.EASEIN
     or EASEOUT or EASEBOTH

    - Will JavaFX Mobile version miss something from it's big Brother JavaFX desktop version?

    some apis are marked 'desktop' which means they are desktop only. Some are marked 'common'.
    The common ones are guaranteed to work everywhere, even mobile.

    - Will JavaFX support "embed" Font's(*.TTF), Graphic's:(*.SVG, *.PNG-rgba, *.JPG, *.TIFF, .BMP), Video's:( AVI, MPEG1+2), Music:(.MP3, *.WMA, *.FLAC, OGG-Theora)?

    Some of these details are still being worked out. You can already use fonts and images supported
     by the core java platform (meaning TTF, PNG, JPG, BMP). I'm not sure about TIFF. For SVG we have
     an SVG converter which will convert SVG files into something easier to use from JavaFX.
    On the Video side we will support native codecs (whatever the user has installed)
    plus a cross platform codec.

    - Will JavaFX support accessing hardware like ejecting a DVD or at least possible to extend it?

    Not likely for version 1.0

    - Will JavaFX support Webcam's and/or Microphones?

    This is on our roadmap, but I don't know if it will make it for version 1.0.

    - It's possible to interact with server side languages like PHP, Perl, JSP and Databases like MySQL

    Absolutely. You can access any Java API you want, including things like JDBC or RMI.
    You can also talk to XML and JSON webservices.

    - Will JavaFx support loading and writing XML-Data

    Yes. JavaFX will have it's own XML api as well as letting you talk to the standard Java XML apis.

    - Will it be possible to access files on Harddrive from within JavaFX Applets and/or Webstarts?

    Only if your application is signed, for security reasons.

    - Whats about cookies will this be supported?

    Applets have access to the browser environment, so you should be able to query and set cookies
     the same as you would with javascript.

    原文連接:http://forums.sun.com/thread.jspa?threadID=5324114

    評論

    # re: 從Flash開發轉到JavaFX開發的一些問題和解答(英文)  回復  更多評論   

    2008-09-07 10:49 by 冷月
    JavaFx 還有一段路要走~~~

    # re: 從Flash開發轉到JavaFX開發的一些問題和解答(英文)  回復  更多評論   

    2008-12-03 21:25 by 匿名
    要作好準備面對WEB2.0的來臨!
    主站蜘蛛池模板: 91免费精品国自产拍在线不卡| 日韩插啊免费视频在线观看| 麻豆国产VA免费精品高清在线 | aa午夜免费剧场| 亚洲日本va午夜中文字幕久久| 国产成人亚洲精品电影| 免费一级成人毛片| 国产成人综合亚洲一区| 久久亚洲精品无码观看不卡| jizz在线免费播放| 亚洲精品无码成人片久久| 久久免费美女视频| 亚洲第一页在线播放| 91在线视频免费91| 美国毛片亚洲社区在线观看 | 日本黄色动图免费在线观看| 亚洲第一福利视频| 亚洲精品免费在线| 亚洲成AV人影片在线观看| vvvv99日韩精品亚洲| a级日本高清免费看| 亚洲黄色在线视频| 午夜dj在线观看免费视频| 精品成人一区二区三区免费视频| 精品亚洲视频在线观看 | a级毛片免费高清毛片视频| 亚洲黄色三级视频| 日本免费观看网站| 成全视成人免费观看在线看| 91在线精品亚洲一区二区| 免费鲁丝片一级观看| 中文字幕免费在线观看动作大片 | 亚洲精品不卡视频| 在线看片无码永久免费aⅴ| 国产又黄又爽又大的免费视频| 亚洲毛片免费观看| 亚洲成a人无码av波多野按摩| 性xxxxx大片免费视频| 亚洲暴爽av人人爽日日碰| 亚洲无线观看国产精品| 国产片AV片永久免费观看|