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

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

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

    編程生活

       :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      113 隨筆 :: 0 文章 :: 18 評論 :: 0 Trackbacks

    To embed an arbitrary file, you declare a variable of type Class, and put [Embed] metadata on it, using the MIME type application/octet-stream. For example, you embed a text file like this:

    [Bindable]
    [Embed(source="Story.txt", mimeType="application/octet-stream")]
    private var storyClass:Class;

    The compiler autogenerates a subclass of the ByteArrayAsset class and sets your variable to be a reference to this autogenerated class. You can then use this class reference to create instances of the ByteArrayAsset using the new operator, and you can extract information from the byte array using methods of the ByteArray class:

    var storyByteArray:ByteArrayAsset = ByteArrayAsset(new storyClass());
    var story:String = storyByteArray.readUTFBytes(storyByteArray.length);

    posted on 2012-06-27 14:32 wilesun 閱讀(251) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 在线观看91精品国产不卡免费| 37pao成人国产永久免费视频| 麻豆国产VA免费精品高清在线| 亚洲色欲或者高潮影院| 免费在线看黄网站| 亚洲AV无码精品无码麻豆| a级特黄毛片免费观看| 国产亚洲综合久久系列| 男人的天堂网免费网站| 亚洲一区中文字幕久久| 亚洲一级毛片免费观看| 亚洲不卡在线观看| 看全色黄大色大片免费久久| 久久综合亚洲色hezyo| 亚洲阿v天堂在线2017免费| 福利免费在线观看| 亚洲色图国产精品| 成人免费视频77777| 日本亚洲中午字幕乱码 | 日韩精品免费一级视频| 亚洲导航深夜福利| 好先生在线观看免费播放| 亚洲AV综合永久无码精品天堂 | 亚洲国产V高清在线观看| 曰批全过程免费视频免费看| 亚洲午夜精品久久久久久浪潮 | 野花视频在线官网免费1| 亚洲日韩av无码| 无码A级毛片免费视频内谢| 亚洲乱码卡三乱码新区| 亚洲成a人一区二区三区| a视频免费在线观看| 中文字幕亚洲精品| 日韩免费毛片视频| 成人一区二区免费视频| 亚洲人成网站在线观看播放动漫| 麻豆国产精品入口免费观看| 久草免费福利视频| 亚洲乱亚洲乱妇24p| 亚洲国产成人片在线观看| 在线观看免费人成视频色|