Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 如何在flash中获取文件中的偏移量_Actionscript 3_Flash - Fatal编程技术网

Actionscript 3 如何在flash中获取文件中的偏移量

Actionscript 3 如何在flash中获取文件中的偏移量,actionscript-3,flash,Actionscript 3,Flash,我对flash/actionscript相当陌生,我遇到了一个问题。我需要获取文本文件中的当前偏移量,以字节为单位 Java有一个很好的小函数,名为getFilePointer,它正好可以做到这一点,但我需要在actionscript中使用它。任何帮助都将不胜感激 偏移量是指文件指针的位置吗 使用ByteArray类的position属性读取或设置文件指针的位置:您能给我们一个到目前为止的代码示例吗?这会让你更容易知道该做什么。

我对flash/actionscript相当陌生,我遇到了一个问题。我需要获取文本文件中的当前偏移量,以字节为单位


Java有一个很好的小函数,名为getFilePointer,它正好可以做到这一点,但我需要在actionscript中使用它。任何帮助都将不胜感激

偏移量是指文件指针的位置吗


使用ByteArray类的position属性读取或设置文件指针的位置:

您能给我们一个到目前为止的代码示例吗?这会让你更容易知道该做什么。