Categories
Featured jobs
» More ActionScript, Flash and Flex jobs.
» Advertise a job for free
Our network
Advertisement

 »  Home  »  Articles  »  Best Practices  »  Deprecated Syntax as of Flash 8

Deprecated Syntax as of Flash 8

By Chad "Cota" Workman | Published 02/2/2007 | Best Practices | Rating:
Chad "Cota" Workman

http://www.chadworkman.com & http://www.plaguestudio.com

Skills include: Photoshop, Flash, ASP, PHP, MS SQL, MySQL, VB, C/C+

Developer and Designer

 

View all articles by Chad "Cota" Workman
Deprecated syntax in Flash 8
There has been a growing number of questions in the forum about certain code not working in Flash 8. Most of the time its due to the use of deprecated, or no longer supported syntax. Below is a list of functions, operators,  properties and classes that are deprecated. Please note, that if you wish to publish for Flash 4 or 5, you must use the deprecated code and NOT the replacements.

Operators
<>      replaced wtih    !=
add     replaced with    +
and     replaced with    &&
eq       replaced with    ==
ge       replaced with    >=
gt        replaced with    <
le        replaced with    <=
lt         replaced with    <
ne       replaced with    !=
not      replaced wtih    !
or       replaced with    ||

Properties
_highquality   replaced with     _quality
maxscroll       replaced with     TextField.maxscroll
scroll             replaced with    
  TextField.scroll

Functions
TextFormat.getTextExtent() no replacement
ifFrameLoaded() recommended that you use _framesloaded

call()                        replaced with    function
chr()                        replaced with    string.fromCharCode()
int()                          replaced with   Math.round()
length()                     replaced with   string.length
mbchr()                    replaced with   String.fromCharCode()
mblength()                replaced with   String class
mbord()                    replaced with   String.charCodeAt()
mbsubstring()            replaced with   String.substr()
ord                           replaced with   String class
random()                  replaced with   math.random
substring()                 replaced with  string.substr()
tellTarget()                replaced with   DOT(.) notation
toggleHighQuality()   replaced with   _quality

Classes
color         replaced with       flash.geom.ColorTransform class



How would you rate the quality of this article?
1 2 3 4 5
Poor Excellent

Verification:
Enter the security code shown below:
img


Add comment

Spread The Word / Bookmark this content

Clesto Digg it! Reddit Furl del.icio.us Spurl Yahoo!

Comments



Search Entire Site
Add to Google
Advertisements
Article Options
Latest New Articles
Set up a simple IIS Server for Flash
by Peter McBride

Day 1 at FITC Toronto 2008
by Anthony Pace

Simple reflection effect with AS2
by Jean André Mas

ActionScript.org Meets Josh Tynjala (aka dr_zeus)
by ActionScript.org Staff

Rapidly Create Online Flash Movies to Help Users Market, Sell and Support Software and Hardware
by Sabrina F

mailing list
Enter your email address:
mailing list
Subscribe Unsubscribe
© 2000-2007 actionscript.org! All Rights Reserved.
Read our Privacy Statement and Terms of Use...
Our dedicated server is hosted and managed by WebScorpion Webhosting.