ScriptData


ScriptData 由一個 name 及一個 value 組合而成。

FieldTypeComment
NameScriptDataValuemethod or object name
ValueScriptDataValueAMF arguments or object properties.


ScriptDataValue


ScriptDataValue 是 Action Message Format (AMF0) 格式。datasheet 可參考 macromedia 網站

FieldTypeComment
TypeUI8value type
Value???根據 type 不同有不同的值


ScriptDataValue Type


TypeNameValue
0NumberDouble
1BooleanUI8
2StringScriptDataString
3ObjectScriptDataObject
4MovieClip不支援
5NULL???
6Undefined???
7Reference???
8ECMA arrayScriptDataECMAArray
9Object end markerUI8[3]={0,0,9}
10Strict arrayScriptDataStrictArray
11DateScriptDataDate
12Long stringScriptDataLongString


ScriptDataString


FieldTypeComment
StringLengthUI16字串長度,最大值 65535。
StringDataString字串內容,不包含 NULL 字元。


ScriptDataLongString


FieldTypeComment
StringLengthUI32字串長度,最大值 4294967295。
StringDataString字串內容,不包含 NULL 字元。


ScriptDataDate


FieldTypeComment
DateTimeDOUBLENumber of milliseconds since Jan 1, 1970 UTC
LocalDateTimeOffsetSI16Local time offset in minutes from UTC. For time zones located west of Greenwich, UK, this value is a negative number. Time zones east of Greenwich, UK, are positive.


ScriptDataObject


FieldTypeComment
ObjectPropertiesScriptDataObjectProperty[]List of object properties
ObjectEndMarkerUI8[3]內容為 0, 0, 9。


ScriptDataObjectProperty


FieldTypeComment
PropertyNameScriptDataStringName of the object property or variable
PropertyDataScriptDataValueValue and type of the object property or variable


ScriptDataECMAArray


FieldTypeComment
ECMAArrayLengthUI32Approximate number of items in ECMA array
VariablesScriptDataObjectProperty[]List of variable names and values
List TerminatorUI8[3]內容為 0, 0, 9。


ScriptDataStrictArray


FieldTypeComment
StrictArrayLengthUI32Number of items in the array
StrictArrayValueScriptDataValue[StrictArrayLength]List of typed values


台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()