Actionscript 2 Reference

Actionscript 2 Reference

ActionScript 2.0 Language Reference Trademarks 1 Step RoboPDF, ActiveEdit, ActiveTest, Authorware, Blue Sky Software, Blue Sky, Breeze, Breezo, Captivate, Central, ColdFusion, Contribute, Database Explorer, Director, Dreamweaver, Fireworks, Flash, FlashCast, FlashHelp, Flash Lite, FlashPaper, Flash Video Encoder, Flex, Flex Builder, Fontographer, FreeHand, Generator, HomeSite, JRun, MacRecorder, Macromedia, MXML, RoboEngine, RoboHelp, RoboInfo, RoboPDF, Roundtrip, Roundtrip HTML, Shockwave, SoundEdit, Studio MX, UltraDev, and WebHelp are either registered trademarks or trademarks of Macromedia, Inc. and may be registered in the United States or in other jurisdictions including internationally. Other product names, logos, designs, titles, words, or phrases mentioned within this publication may be trademarks, service marks, or trade names of Macromedia, Inc. or other entities and may be registered in certain jurisdictions including internationally. Third-Party Information This guide contains links to third-party websites that are not under the control of Macromedia, and Macromedia is not responsible for the content on any linked site. If you access a third-party website mentioned in this guide, then you do so at your own risk. Macromedia provides these links only as a convenience, and the inclusion of the link does not imply that Macromedia endorses or accepts any responsibility for the content on those third-party sites. Speech compression and decompression technology licensed from Nellymoser, Inc. (www.nellymoser.com). Sorenson™ Spark™ video compression and decompression technology licensed from Sorenson Media, Inc. Opera ® browser Copyright © 1995-2002 Opera Software ASA and its suppliers. All rights reserved. Macromedia Flash 8 video is powered by On2 TrueMotion video technology. © 1992-2005 On2 Technologies, Inc. All Rights Reserved. http://www.on2.com. Mitsubishi Electric Research Laboratory: This product includes software that is Copyright © 2005, Mitsubishi Electric Research Laboratory Inc. All Rights Reserved. http://www.merl.com. Copyright © 2004-2005 Macromedia, Inc. All rights reserved. This manual may not be copied, photocopied, reproduced, translated, or converted to any electronic or machine-readable form in whole or in part without written approval from Macromedia, Inc. Notwithstanding the foregoing, the owner or authorized user of a valid copy of the software with which this manual was provided may print out one copy of this manual from an electronic version of this manual for the sole purpose of such owner or authorized user learning to use such software, provided that no part of this manual may be printed out, reproduced, distributed, resold, or transmitted for any other purposes, including, without limitation, commercial purposes, such as selling copies of this documentation or providing paid-for support services. Acknowledgments Project Management: JuLee Burdekin Lead Writers: Francis Cheng, Robert Dixon, Shimul Rahim Additional Writers: Jen deHaan, Thais Derich, Guy Haas, David Jacowitz, Jeff Swartz Samples Developers: Luke Bayes, Francis Cheng, Robert Dixon, Ali Mills, Jeff Swartz Editing: Linda Adler, Geta Carlson, Evelyn Eldridge, John Hammett, Noreen Maher, Mark Nigara, Lisa Stanziano, Anne Szabla, Jessie Wood Production Management: Patrice O’Neill Media Design and Production: Adam Barnett, John Francis, Brett Jarvis, Mario Reynoso Special thanks to: Peter deHaan, Gary Grossman, Lee Thomason, and The Flash Player Core Team First Edition: September 2005 Macromedia, Inc. 601 Townsend St. San Francisco, CA 94103 Contents Chapter 1: ActionScript language elements. 31 Compiler Directives . 31 #endinitclip directive . 31 #include directive. 32 #initclip directive . 33 Constants . 35 false constant . 35 Infinity constant . 36 -Infinity constant . 36 NaN constant . 36 newline constant . 36 null constant . .37 true constant . 38 undefined constant . 38 Global Functions. 40 Array function . 45 asfunction protocol . 46 Boolean function . .47 call function . 49 chr function . 50 clearInterval function. 50 duplicateMovieClip function . 51 escape function . 52 eval function . 53 fscommand function . 54 getProperty function . 58 getTimer function. 59 getURL function. 59 getVersion function . 61 gotoAndPlay function . 62 gotoAndStop function . 63 ifFrameLoaded function. 64 int function. 64 isFinite function . 65 isNaN function . 65 length function . 66 loadMovie function . .67 3 loadMovieNum function . 70 loadVariables function . 72 loadVariablesNum function. 74 mbchr function. 75 mblength function . 76 mbord function . 76 mbsubstring function . 77 MMExecute function . 77 nextFrame function. 79 nextScene function. 79 Number function . 80 Object function . 82 on handler . 82 onClipEvent handler . 84 ord function . 85 parseFloat function. 86 parseInt function . 87 play function. 88 prevFrame function . 88 prevScene function . 89 print function . 89 printAsBitmap function . 91 printAsBitmapNum function. 92 printNum function . 93 random function . 94 removeMovieClip function . 95 setInterval function . 96 setProperty function. 100 showRedrawRegions function. .101 startDrag function . 102 stop function . 103 stopAllSounds function . ..

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    1378 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us