Questions tagged [actionscript]
ActionScript is a scripting language used for RIAs, Mobiles Applications, Web Applications etc. which was initially developed by Macromedia and then acquired by Adobe. It targets to compile for Flash player runtime which can be deployed in various platforms including mobiles
19 questions
1
vote
2
answers
265
views
How come language designers don't upgrade their global functions?
For example, when working with arrays there are methods like indexOf() that works like this:
if (array.indexOf("something")!=-1) { // do something or nothing }
Why hasn't someone made a contains ...
6
votes
2
answers
627
views
Best event based architecture for Linux to GUI
I've looked around a bit and probably haven't found the right medium for this question so let me know if there's a different forum I should bother.
First, there is an application managed by another ...
0
votes
1
answer
142
views
Manipulating data for a single file
I'm looking for a best practice solution for creating an object whose responsibility it is to handle file storage for a single file. I want to be able to read data from the file, write to the file, ...
2
votes
3
answers
391
views
How to use Option Type Pattern in a language that doesn't support generics?
I've been interested to start using the Null Object / Option Type approach for replacing my old habits of null-checking multiple parts of my code. But, from the many examples I saw out there, it seems ...
4
votes
6
answers
2k
views
Is it bad practice to resolve null arguments to default static variables?
First, let me show you an example (written in ActionScript 3.0):
class GameObject {
public static function MakeFromName( pName:String,
pAtlas:TextureAtlas ...
0
votes
1
answer
122
views
Layering buttons when a number needs to be pressed more than once during an equation?
I am very new to HTML5 (and web coding in general), and I am trying to create an interactive calculator. I will try to explain this as clearly as I can.
The basic idea is that the user will use pre-...
0
votes
1
answer
365
views
When do you say "near ID" / "far ID" when using RTMFP in ActionScript 3?
I've been using RTMFP streaming for around a year in ActionScript 3, and I pretty much know the difference between a near ID and far ID. The near ID is your peer ID, and the far ID is the other guy's ...
1
vote
3
answers
337
views
Coding convention question about AS3 duplicate variable definition
AS3's got some awkward rules about variable scope, due to its use of hoisting. I don't like pointlessly leaving a bunch of compiler warnings lying around, but it's more important to me for my code to ...
3
votes
1
answer
430
views
How to get rid of my "Factory" class' countless else if statements
This is a web application based on actionscript 3.
I have all of my modules enumerated in a class, but I never know which modules actually come from database.
Let's say I have 20 modules in my ...
1
vote
3
answers
362
views
Why categorization into "Property" and "Methods"
I am looking at the String class in Actionscript 3.0.
It has a property called String.length .
Internally it's a getter function (or method ?) that returns the length of string.
Why can't it be ...
0
votes
2
answers
766
views
Commenting Code AS3 - Not being an API
How should I comment a method?
What are the best practices on commenting code?
Example:
/* Checks if a color is allowed in a given point
* of the bitmapdata of the current floor
* @param value - ...
3
votes
1
answer
224
views
How often is appropriate to destroy objects?
I know this is hard to answer without examples, so I'm looking for general principles or guidelines here. I'm thinking within the realm of small- to medium-sized mobile games and apps.
I've read a ...
0
votes
1
answer
80
views
Accurate/recommended approachs to tracking play length of a video
I'm working on a flash player that needs to track how long a user plays a video for. In addition, I need to know the user. I can easily do that with a request to the server. What I've thought of so ...
1
vote
1
answer
271
views
Help me understand this "mindmap / constellation" visual pattern
Please help me identify and understand this visual pattern, what's the common name used for such mindmap / constellation visualisations?
http://asterisq.com/products/constellation/roamer/demo
http://...
1
vote
1
answer
2k
views
Flash development under Ubuntu
It's unfortunate, but I'm taking this course that would require me to work in Flash CS3 (specifically programming), which would make me use windows. I'm very used to development under Ubuntu, and ...
0
votes
2
answers
1k
views
ActionScript and Python [closed]
I am currently using VB.net 2010 and WPF 4 to create an application, but the further I learn it, the more I realize that the two programming languages may not meet my needs, especially where I have to ...
2
votes
4
answers
1k
views
Do sites like goanimate, xtranormal, and animoto use Flash + ActionScript, OpenGL, or other technology?
What technology is used by sites like goanimate, xtranormal, and animoto? Especially the video compilation engine in the backend of animoto? Could HTML5 be used to do everything that's there?
8
votes
5
answers
841
views
Is it better to have C developers learn Flash, than hire Flash guys?
Last year, my department developed web based gaming, and needed Flash. It was difficult to manage. The Flash guys didn't fit in regardless of skill or popularity in the office. Maybe it's prejudice ...
2
votes
5
answers
3k
views
Best way to learn Java if you already have an OOP background, like ActionScript 3? [closed]
I'm looking to learn Java, but I don't want to get a book that is going to tell me what an object is, how OOP works, etc. I know this from my existing ActionScript 3 work.
One idea is to look at all ...