<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 閱讀(250) 評論(0)  編輯  收藏

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


    網站導航:
     
    主站蜘蛛池模板: 成年人在线免费观看| aa级一级天堂片免费观看| 亚洲综合色成在线播放| 免费国产高清毛不卡片基地 | 亚洲av日韩av天堂影片精品| 国产精品免费αv视频| 亚洲人午夜射精精品日韩| 久久国产美女免费观看精品| 亚洲人成色777777在线观看| 国产成人久久AV免费| 亚洲婷婷天堂在线综合| 无限动漫网在线观看免费| 国产区图片区小说区亚洲区| 亚洲日韩在线观看| 久久这里只精品热免费99| 亚洲精品不卡视频| 免费特级黄毛片在线成人观看| 处破女第一次亚洲18分钟| 中文国产成人精品久久亚洲精品AⅤ无码精品 | 一级午夜免费视频| 国产亚洲真人做受在线观看| 久久w5ww成w人免费| 亚洲中文字幕久久久一区| 亚洲国产天堂久久综合| a级毛片100部免费观看| 亚洲人成电影院在线观看| 在线视频免费国产成人| 中国极品美軳免费观看| 亚洲欧洲国产精品久久| 国产免费变态视频网址网站| 国产免费爽爽视频在线观看 | 亚洲国产美女福利直播秀一区二区 | 羞羞视频免费网站含羞草| 国产亚洲精品一品区99热| 最近最新MV在线观看免费高清| 无码AV动漫精品一区二区免费| 久久亚洲精品中文字幕无码| 免费人成在线视频| 99re6在线精品免费观看| 亚洲卡一卡二卡乱码新区| 国产国拍精品亚洲AV片|