
#strict Pragma
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
804
|
ActionScript Language Reference
onRelease() or onReleaseOutside() is detected, ensuring that the clip is dropped, regardless
of whether the mouse is actually over the clip when it is released:
window_mc.onPress = function () {
this.startDrag();
}
window_mc.onRelease = window_mc.onReleaseOutside = function () {
stopDrag();
}
See Also
MovieClip._dropTarget, MovieClip.stopDrag(), startDrag()
#strict Pragma
activates enhanced conformance to ECMA-26 standard
Flash 5 (undocumented)
#strict
Description
An undocumented and volatile feature, the #strict pragma forces the Flash Player to
conform more closely to the ECMA-262 specification, upon which ActionScript is based. It
affects datatype conversion for the undefined and string datatypes, and it enforces complete
case sensitivity.
The #strict pragma is known to crash Internet Explorer on Windows
under Flash Player 6 and should therefore not be used. At the time of
this writing, Macromedia officially rescinded support for
#strict in
Flash Player 6.0.65.0 after the public beta test of Flash Player 6.0.60.48
revealed outstanding problems. For more details and the latest infor-
mation on the status of
#strict, see: http://www.moock.org/asdg/
technotes/strict.
See Also
Appendix D
String() Global Function
convert a value to the string datatype ...