Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
AS 2.0 optimising..

AS 2.0 optimising..

2004-03-15       - By Metanet Software

 Back
hey,
okay, i've read the updated flasm docs, and i just have a couple of
questions; not about coding, but about IDE/etc..

since (for reasons i'll never understand) identifier length STILL makes a
speed difference, what process/method is everyone using to "automatically"
generate shorted names? ASOpro seems to do this, but it's not working with
any of my code (i use dynamic references a lot so..).

my problem is that i've got about 20k lines of code spread out over 30-50
files, and search+replace is REALLY not an option: i already use short names
such as i, n, etc. for local vars, so i can't just blindly use single chars.

anyway.. if anyone has any ideas about this, please let me know.

also, as a second question: in AS1, looking up a value from an array seemed
to be linear-time (i.e O(n)), probably because internally they were
implemented as linked-lists since each array element could be of various
types. in AS2, now that flash finally has a concept of type, do we finally
get "real" (i.e constant-time access) arrays?

i've just been using "hash-list" objects, but it's annoying to always have
to track the list length seperately, etc.. sometimes you really need an
array.

raigan

__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
Add photos to your e-mail with MSN Premium. Get 2 months FREE*  
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http:/
/hotmail.com/enca&HL=Market_MSNIS_Taglines


=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107019
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)