Adobe ActionScript 3 is the open source object oriented programming (OOP) language of the Adobe Flash and Air Platforms. AS3 widely used for RIAs, mobile apps, and desktop applications. (ActionScript 3 is a dialect of ECMAScript.)
1
vote
1answer
27 views
Passing lots of options to a function
I am learning actionscript 3 coding by making a crappy platformer game :)
The problem I am facing is passing lots of options to a construct function that will setup the display object where all of ...
1
vote
0answers
42 views
General Code Review - Key Press Handler
I have made a class to import into my projects to more easily handle the state of the keyboard so I can use stuff like:
if(Keys.returnKey(37)){
As opposed to setting up key listeners.
Could you ...
0
votes
1answer
51 views
Actionscript 3.0, good OOP?
I have been coding for some time (3 years I think), and have recently been wondering if my coding pattern is any good. Any kind of feedback is welcome:
EDIT: The thing that concerns me most is that I ...
2
votes
2answers
121 views
Is there anything biased in this performance test?
Just wondering if this basic performance test between an untyped array of arrays and a vector (typed array) of arrays in Actionscript 3... is fair and balanced? It's simple, designed to test random ...
4
votes
1answer
139 views
Please, review my actionscript web service call class. And web method call class
I' trying to isolate a webservice in its own class, and I plan to add separate classes to each webmethod there is in the webservice. So far, this is what I've got. And it works, I have this feeling ...
1
vote
2answers
108 views
Add events dispatching for ActionScript framework Robotlegs
I have the following function in a Service class
protected function writeToFile():void{
var destinationFile:File = File.applicationStorageDirectory.resolvePath(_newPath);
var ...
2
votes
10answers
618 views
How to simplify my else if statement
Alright so this isn't an issue with my program not working, it's more of a fact that I wanna learn to code better.
This is one of 6 if else statements that I use inside of my program. What I'm ...
2
votes
0answers
78 views
AS3 AIR class robustness check
I have a ActionScript 3 AIR class that I'd like you to check for robustness. I know it's quite a lot of code and It's not required that you review the full code, but maybe you see general problems in ...
2
votes
2answers
119 views
Is this possibly confusing code?
A previous developer had an array of strings like so:
public static const PAGE_ONE:String = 'PageOne';
public static const PAGE_TWO:String = 'PageTwo';
public static const PAGE_THREE:String ...
1
vote
0answers
103 views
Getting and setting a static variable
[Bindable]
public class ProductsCache
{
private static var _products:ArrayCollection;
public function get products():ArrayCollection{
return _products;
}
public function set ...
3
votes
4answers
461 views
how bad is such a comment [closed]
if I have a variable which name is explicit enough, for example:
errorLocation
How bad it is to put a comment like
//variable to indicate error location
My opinion is that it's really a stupid ...
1
vote
1answer
198 views
More efficient way to write this Actionscript 3 class?
I wrote one of my first classes in Actionscript 3 and I want someone versed in AS3 to help me fine tune my class. I am sure there are things that could really help with efficiency and I love learning ...
4
votes
1answer
260 views
How can I improve this method?
I've been using FlexLib for its dockable toolbar feature. When you shrink the window, it will try to wrap rows if the stage width is less than the row width. Unfortunately, it won't reverse the ...