本文介绍了Actionscript 项目的 ByteArray 问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 FDT 5 IDE 中为此库创建一个项目我创建了一个新项目:

I'm trying to create a project for this library in FDT 5 IDEI create a new project:

File->New FDT Project->Web->AS3 然后点击完成

在此处复制文件形式:https://github.com/jwagener/recorder.js/tree/master/flash

但是 IDE 在项目中显示了问题:

However the IDE is showing problems in the project:

Description Resource    Path    Location    Type Could not resolve type reference to 'flash.utils.ByteArray' at line 576 column
25. MultipartURLLoader.as   /recorder/src/ru/inspirit/net   Unknown Flash Problem Could not resolve type reference to 'flash.utils.ByteArray' at line 581 column
39. MultipartURLLoader.as   /recorder/src/ru/inspirit/net   Unknown Flash Problem Incompatible types ByteArray and ByteArray. Found at line 184 column
37. MultipartURLLoader.as   /recorder/src/ru/inspirit/net   Unknown Flash Problem Incompatible types ByteArray and ByteArray. Found at line 447 column
24. MultipartURLLoader.as   /recorder/src/ru/inspirit/net   Unknown Flash Problem Unexpected Token playingProgressTimerHandler at line 103 column 69.   Recorder.as /recorder/src   Unknown Flash Problem Unexpected Token playingProgressTimerHandler at line 103 column
69. Recorder.as /recorder/src   Unknown Flash Problem Unexpected Token statusHandler at line 186 column
61. Recorder.as /recorder/src   Unknown Flash Problem Unexpected Token statusHandler at line 186 column
61. Recorder.as /recorder/src   Unknown Flash Problem Wrong number of arguments. Expect at least 2 but have found 1. Found at line 103 column 25.   Recorder.as /recorder/src   Unknown Flash Problem Wrong number of arguments. Expect at least 2 but have found 1. Found at line 186 column 15.   Recorder.as /recorder/src   Unknown Flash Problem You cannot assign 'ByteArray' to 'ByteArray'. Found 'fileContent;' at line 189 column
21. MultipartURLLoader.as   /recorder/src/ru/inspirit/net   Unknown Flash Problem You cannot assign 'ByteArray' to 'ByteArray'. Found 'fileContent;' at line 583 column
22. MultipartURLLoader.as   /recorder/src/ru/inspirit/net   Unknown Flash Problem

我对 AS 开发非常陌生,我只想重新编译 sa 所说的库.

I'm really new to AS development and I just want to recompile sa said library.

希望有人能帮忙.

推荐答案

您需要先阅读 FDT 设置教程.如果我没记错的话,您需要 Flash Player 9+ 才能使用 ByteArray 类.但是,Flash Player 11 是您最安全的选择.下载 Flex SDK 并使用以下两个教程之一进行设置:

What you need is to go through a FDT setup tutorial first. You'll require Flash Player 9+ for ByteArray class to be available, if I remember correctly. However, Flash Player 11 is your safest bet. Download Flex SDK and set it up using either of the following two tutorials:

http://fdt.powerflasher.com/2008/10/creating-flash-player-10-projects-with-fdt-beta/http://www.applicationdomain.net/post/2008/05/26/Setting-up-FDT-for-Flash-Player-10

http://fdt.powerflasher.com/2008/10/creating-flash-player-10-projects-with-fdt-beta/http://www.applicationdomain.net/post/2008/05/26/Setting-up-FDT-for-Flash-Player-10

希望有所帮助.

这篇关于Actionscript 项目的 ByteArray 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 17:13