What's the best practice for declaring reused variables within a function in AS3? For example, if you use "count" several times in your function, if you declare it at the start of your function, "var count:Number;" it makes it harder to cut and paste your code for use elsewhere but you get errors if redeclare it (like you could in AS2) throughout your script.

David Benman
Interactive Developer
[email protected]
http://www.dbenman.com
(508) 954-1202 (cell)
(315) 637-8487 (home office)



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to