Adobe® Action Script ® 2.0 Addendum

laborermaizeΛογισμικό & κατασκευή λογ/κού

4 Ιουλ 2012 (πριν από 5 χρόνια και 1 μήνα)

291 εμφανίσεις

ADOBE
®
ACTIONSCRIPT
®
2.0
Language Reference Addendum
Last updated 5/10/2010
Legal notices
Copyright
© 2010 Adobe Systems Incorporated. All rights reserved.
ActionScript
®
2.0 Language Reference Addendum
This user guide is protected under copyright law, furnished for informational use only, is subject to change without notice, and should not be construed as a
commitment by Adobe Systems Incorporated. Adobe Systems Incorporated assumes no responsibility or liability for any errors or inaccuracies that may appear
in the informational content contained in this guide.
This user guide is licensed for use under the terms of the Creative Commons Attribution Non-Commercial 3.0 License. This License allows users to copy,
distribute, and transmit the user guide for noncommercial purposes only so long as (1) proper attribution to Adobe is given as the owner of the user guide; and
(2) any reuse or distribution of the user guide contains a notice that use of the user guide is governed by these terms. The best way to provide notice is to include
the following link. To view a copy of this license, visit
h
t
t
p://cr
e
a
t
i
v
e
co
mm
o
n
s.o
r
g/licen
s
es/b
y-n
c-s
a/3.0/
Adobe, the Adobe logo, ActionScript, After Effects, Dreamweaver, Flash, Flash Player, and Soundbooth are either registered trademarks or trademarks of Adobe
Systems Incorporated in the United States and/or other countries.
Apple is a trademark of Apple Inc., registered in the United States and other countries. Windows is either a registered trademark or trademark of Microsoft
Corporation in the United States and/or other countries. All other trademarks are the property of their respective owners.
Updated Information/Additional Third Party Code Information available at
w
w
w
.ado
b
e
.co
m/g
o/t
hir
d
p
a
r
t
y
.
Portions include software under the following terms:
This product includes software developed by the Apache Software Foundation (
w
w
w
.a
p
ac
h
e
.o
r
g/
).
This product includes software developed by Fourthought, Inc. (
h
t
t
p://w
w
w
.f
o
ur
t
h
o
ug
h
t.co
m
).
MPEG Layer-3 audio compression technology licensed by Fraunhofer IIS and Thomson Multimedia (
h
t
t
p://w
w
w
.ii
s.f
h
g
.de/a
mm/
).
This software is based in part on the work of the Independent JPEG Group.
Portions of this product contain code licensed from Nellymoser (
w
w
w
.n
e
l
l
y
m
os
er
.co
m
).
Video in Flash Player is powered by On2 TrueMotion video technology. © 1992-2005 On2 Technologies, Inc. All Rights Reserved.
h
t
t
p://w
w
w
.o
n2.co
m
.
This product contains either BISAFE and/or TIPEM software by RSA Data Security, Inc.
Sorenson Spark

video compression and decompression technology licensed from Sorenson Media, Inc.
Adobe Systems Incorporated, 345 Park Avenue, San Jose, California 95110, USA.
Notice to U.S. Government End Users. The Software and Documentation are “Commercial Items,” as that term is defined at 48 C.F.R. §2.101, consisting of
“Commercial Computer Software” and “Commercial Computer Software Documentation,” as such terms are used in 48 C.F.R. §12.212 or 48 C.F.R. §227.7202,
as applicable. Consistent with 48 C.F.R. §12.212 or 48 C.F.R. §§227.7202-1 through 227.7202-4, as applicable, the Commercial Computer Software and
Commercial Computer Software Documentation are being licensed to U.S. Government end users (a) only as Commercial Items and (b) with only those rights
as are granted to all other end users pursuant to the terms and conditions herein. Unpublished-rights reserved under the copyright laws of the United States.
Adobe Systems Incorporated, 345 Park Avenue, San Jose, CA 95110-2704, USA. For U.S. Government End Users, Adobe agrees to comply with all applicable
equal opportunity laws including, if appropriate, the provisions of Executive Order 11246, as amended, Section 402 of the Vietnam Era Veterans Readjustment
Assistance Act of 1974 (38 USC 4212), and Section 503 of the Rehabilitation Act of 1973, as amended, and the regulations at 41 CFR Parts 60-1 through 60-60,
60-250, and 60-741. The affirmative action clause and regulations contained in the preceding sentence shall be incorporated by reference.
iii
Last updated 5/10/2010
Contents
ActionScript 2.0 Language Reference Addendum
Additions to the ActionScript 2.0 Language Reference

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
Updated Methods and Properties

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2
1
Last updated 5/10/2010
ActionScript 2.0 Language Reference
Addendum
An update to the
ActionScript 2.0 Language Reference
released with Flash CS5 Professional is available for download
and offline browsing. The ActionScript 2.0 Language Reference update contains documentation for new properties
and methods added to ActionScript 2.0 since the last publication of the Language Reference. The update also contains
additions and corrections to existing ActionScript 2.0 properties and methods to clarify their descriptions.
To view the ActionScript 2.0 Language Reference update:
1
Download the ZIP file here:
help.adobe.com/support/documentation/en/flash/10/Flash10_AS2LR_en.zip
.
2
Unzip the archive.
3
Open the index.html page in the main folder.
This update is available only in English.
Additions to the ActionScript 2.0 Language Reference
New descriptions of the following methods and properties were added to the language reference update.
Camera Class

Camera.keyFrameInterval

Camera.loopback

Camera.setKeyFrameInterval()

Camera.setLoopback()
LocalConnection Class

LocalConnection.isPerUser
Microphone Class

Microphone.codec

Microphone.encodeQuality

Microphone.framesPerPacket

Microphone.setCodec()

Microphone.setEncodeQuality()

Microphone.setFramesPerPacket()
NetConnection Class

NetConnection.call()

NetConnection.close()

NetConnection.isConnected

NetConnection.onResult()
2
ACTIONSCRIPT 2.0 ADDENDUM
ActionScript 2.0 Language Reference Addendum
Last updated 5/10/2010

NetConnection.onStatus()

NetConnection.protocol

NetConnection.uri
NetStream Class

NetStream.attachAudio()

NetStream.attachVideo()

NetStream.getInfo()

NetStream.liveDelay

NetStream.maxPauseBufferTime

NetStream.onPlayStatus()

NetStream.onTextData()

NetStream.onXMPData()

NetStream.play2()

NetStream.publish()

NetStream.receiveAudio()

NetStream.receiveVideo()

NetStream.send()
SharedObject Class

SharedObject.close()

SharedObject.connect()

SharedObject.getRemote()

SharedObject.send()

SharedObject.setFPS()
Stage Class

Stage.fullScreenHeight

Stage.fullScreenWidth

Stage.wmodeGPU
XMLSocket Class

XMLSocket.timeout
Updated Methods and Properties
Existing descriptions for the following entries were edited to provide additional information or to fix errors in the
documentation.
Global Functions

fscommand()
- Updated information on the use of the allowScriptAccess attribute.
3
ACTIONSCRIPT 2.0 ADDENDUM
ActionScript 2.0 Language Reference Addendum
Last updated 5/10/2010

getURL()
- Added important security information on avoiding malicious cross-site scripting.
FileReference Class

FileReference.browse()
- Added information stating that Flash Player 10 supports these methods only in
response to a user event (for example, in an event handler for a mouse click or keypress event).

FileReference.download()
- Added information stating that Flash Player 10 supports these methods only in
response to a user event (for example, in an event handler for a mouse click or keypress event). Added information
on reserved ports, to which connections can’t be made.

FileReference.upload()
- Added information on reserved ports, to which connections can’t be made.
LoadVars Class

LoadVars.addRequestHeader()
- Added that method is effective only for
send()
and
sendAndLoad()
, and not
for
load()
; added "Authorization", "Charge-To", "Connect", "Proxy-Connection", Cookie", "Head", and "Request-
Range" to the restricted headers list.

LoadVars.contentType
- Added information on multipart Content-Type POST security.

LoadVars.load()
- Added that IPv6 is now supported, and that method only supports GET requests. Added
information on reserved ports, to which connections can’t be made.

LoadVars.send()
- Added that IPv6 is now supported. Added information on multipart Content-Type POST
security. Added information on reserved ports, to which connections can’t be made.

LoadVars.sendAndLoad()
- Added that IPv6 is now supported. Added information on multipart Content-Type
POST security. Added information on reserved ports, to which connections can’t be made.
MovieClip Class

MovieClip.getURL()
- Updated information on the use of the allowScriptAccess attribute. Added important
security information on avoiding malicious cross-site scripting. Added information on reserved ports, to which
connections can’t be made.

MovieClip.loadMovie()
- Added information on reserved ports, to which connections can’t be made.

MovieClip.loadVariables()
- Added information on reserved ports, to which connections can’t be made.
MovieClipLoader Class

MovieClipLoader.loadClip()
- Added information on reserved ports, to which connections can’t be made.
NetConnection Class

NetConnection.call()
- Added information on reserved ports, to which connections can’t be made.

NetConnection.connect()
- Added that with Flash Media Server, can connect using a version of Real-Time
Messaging Protocol (RTMP). Added information on reserved ports, to which connections can’t be made.
NetStream Class

NetStream.onStatus()
- Added Failed code and a pointer to additional codes described in the Flash Media Server
documentation.

NetStream.play()
- Added information on reserved ports, to which connections can’t be made.
security Class (System.security)

security.loadPolicyFile()
- Added information on reserved ports, to which connections can’t be made.
Added information on implicit time-outs when checking for a master policy file.
4
ACTIONSCRIPT 2.0 ADDENDUM
ActionScript 2.0 Language Reference Addendum
Last updated 5/10/2010
Sound Class

Sound.loadSound()
- Added information on reserved ports, to which connections can’t be made.
XML Class

General - updated security information with regard to socket policy files.

XML.addRequestHeader()
- Added that method is effective only for
send()
and
sendAndLoad()
, and not for
load()
; added "Authorization", "Charge-To", "Connect", "Proxy-Connection", Cookie", "Head", and "Request-
Range" to the restricted headers list.

XML.contentType
- Added information on multipart Content-Type POST security.

XML.load()
- Added that IPv6 is now supported; that method only supports GET requests. Added information on
reserved ports, to which connections can’t be made.

XML.send()
- Added that IPv6 is now supported. Added information on multipart Content-Type POST security.
Added information on reserved ports, to which connections can’t be made.

XML.sendAndLoad()
- Added that IPv6 is now supported and that the method has an optional method parameter.
Added information on multipart Content-Type POST security. Added information on reserved ports, to which
connections can’t be made.
XMLNode Class

XMLNode.hasChildNodes()
- Fixed incorrect code example.
XMLSocket Class

General - updated security information with regard to socket policy files.

XMLSocket.connect()
- Added information on socket policy files. Added that IPv6 is now supported.