<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的來臨!
    主站蜘蛛池模板: 国产亚洲福利在线视频| 最近国语视频在线观看免费播放| 国产乱子伦精品免费无码专区 | 最新亚洲成av人免费看| 91老湿机福利免费体验| 亚洲a∨无码精品色午夜| 亚洲精品白浆高清久久久久久| 国产福利视精品永久免费| 免费手机在线看片| 亚洲国产精品综合久久久 | 亚洲最新中文字幕| 亚洲毛片av日韩av无码| 国产成人免费午夜在线观看| 特a级免费高清黄色片 | 美女视频黄频a免费观看| 亚洲天天做日日做天天看| 国产精品免费视频播放器| 午夜精品射精入后重之免费观看 | 好男人视频在线观看免费看片 | 国产精品二区三区免费播放心| 国产真人无码作爱视频免费| 亚洲a∨无码精品色午夜| 中文字幕亚洲第一在线| 国产亚洲精品成人a v小说| 成人超污免费网站在线看| 一个人免费日韩不卡视频| 又粗又长又爽又长黄免费视频 | 亚洲伊人成无码综合网 | 亚洲欧洲日本在线| 成人在线视频免费| 18禁美女裸体免费网站 | 老汉精品免费AV在线播放| 一级特黄录像免费播放中文版| 免费国产黄网站在线看| 亚洲电影在线免费观看| 国产亚洲综合久久系列| 亚洲精品国产精品乱码不卞| 免费看少妇作爱视频| 成人免费视频69| 91av视频免费在线观看| 免费看搞黄视频网站|