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.)

learn more… | top users | synonyms

4
votes
2answers
51 views

Please review my Actionsript 3 Code

I am creating a Frogger game in Flash AS3 and just wanted to see if anyone can help me improve it without breaking the game. The reason I ask for it because I don't have any errors, but I do get over ...
1
vote
0answers
67 views

Preload content in StageWebView

I would like to get some feedback on my AS3 code below. It's for an Adobe Air mobile app to preload a website in a StageWebView container. That container will be moved on screen later in the app ...
1
vote
1answer
58 views

Can these collision unit tests be improved?

I'm finding it a bit tedious to write unit tests for my collision class because there are so many variations of collisions that need testing. I see repetition in the set-up and assertion stages of ...
1
vote
1answer
47 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
62 views

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. Please give ...
0
votes
1answer
81 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
140 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 ...
3
votes
10answers
1k 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
2answers
128 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 ...
2
votes
2answers
139 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 ...
1
vote
0answers
237 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
466 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 ...
5
votes
1answer
207 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 ...
3
votes
1answer
218 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 ...
2
votes
0answers
91 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 ...
4
votes
1answer
283 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 ...