Questions tagged [actionscript]

ActionScript is a scripting language used to create Rich Internet Applications (RIA), mobiles applications, web applications, etc. It is the main language for Flash and Flex.

ActionScript is an object-oriented programming language originally developed by Macromedia (now dissolved into Adobe Systems). Its latest version is ActionScript 3.

It is used to create web applications (including RIAs), desktop applications and mobile applications. The web target is served using the Adobe Flash Player runtime, while the desktop and mobile targets are served using the Adobe AIR (previously Adobe Integrated Runtime).

Popular IDEs are Adobe Animate (rebranded from Adobe Flash), Adobe Flash Builder, FlashDevelop, IntelliJ and others.

Some of the popular compilers are Adobe Animate, Apache Flex, Haxe, OpenFL and others.

Adobe Scout and FlashFirebug can be used to debug the Adobe AIR and the Adobe Flash Player runtimes.

9141 questions
11
votes
2 answers

Custom metadata in AS3/Flex?

How to create and to work with custom metadata in ActionScript3/Flex?
Timofei Davydik
  • 7,244
  • 7
  • 33
  • 59
11
votes
2 answers

Event-driven CMS - advantages and disadvantages

I'm trying to identify some of the pros and cons of having a CMS that is event driven. Event driven is not uncommon. You see it in many scripting languages like Actionscript, javascript, jquery that involve a client. How about in a CMS where the…
dave
  • 1,043
  • 1
  • 10
  • 18
11
votes
6 answers

Flex's FileReference.save() can only be called in a user event handler -- how can I get around this?

I need to call FileReference.save() after a web service call has completed, but this method has a restriction: "In Flash Player, you can only call this method successfully in response to a user event (for example, in an event handler for a mouse…
James Adams
  • 8,448
  • 21
  • 89
  • 148
11
votes
2 answers

Create a message with attachment in Outlook using applescript

I'm trying to open a new message window in Microsoft Outloook version 15.6 and populate the fields including an attachment. Here's my actionscript code: tell application "Microsoft Outlook" set newMessage to make new outgoing message with…
Mark
  • 4,749
  • 7
  • 44
  • 53
11
votes
6 answers

actionscript development on mac

I know of FlashDevelop for windows but how about developing actionscript or haxe on a mac? besides flex plugin for eclipse, flex builder and FDT is there anny good IDE out there for actionscript development on mac? I would really like to se a good…
eldamar
  • 659
  • 1
  • 7
  • 19
11
votes
4 answers

Understanding Array::splice in ActionScript 3

I am trying to remove an object from an array, but for some reason it's not working. I am under the impression that a splice accepts 2 parameters: first, the position in the array to begin at. And for parameter 2, how many to delete from then on…
numerical25
  • 10,524
  • 36
  • 130
  • 209
11
votes
3 answers

Can I use DoxyGen to document ActionScript code?

How do I Configuring DoxyGen to document ActionScript files? I've included the *.as and *.asi files in doxygen's search pattern, but the classes, functions and variables don't show there.
Eliram
  • 606
  • 2
  • 9
  • 21
11
votes
4 answers

AS3 Timers vs. ENTER_FRAME performance

I'm building a game that got some moving things all the time, so I'm using a lot of Timer instances to control repetition and trigger motion. Now the thing is that I started to notice some performance "lags". Is this due to the timers? and do you…
Makram Saleh
  • 8,613
  • 4
  • 27
  • 44
11
votes
9 answers

Alternative to Flex Framework

Is there an alternative ActionScript 3 lightweight framework out there similar to Flex, but not as huge. Flex is fairly large, and SWF's being no less than 150Kb big, I'm just thinking it must be possible to get something that have smaller SWF files…
josef.van.niekerk
  • 11,941
  • 20
  • 97
  • 157
10
votes
3 answers

Check if a string is empty in action script, similar to String.Empty in .net

Is there a static property in Action similar to that in the String object in .net to check if a string is empty, that is String.Empty. Thanks
Hassan Mokdad
  • 5,832
  • 18
  • 55
  • 90
10
votes
4 answers

Actionscript Convert String to Int

I am using Actionscript 2.0 In a Brand new Scene. My only bit of code is: trace(int('04755')); trace(int('04812')); Results in: 2541 4812 Any idea what I am doing wrong/silly? By the way, I am getting this source number from XML, where…
greg
  • 333
  • 2
  • 3
  • 9
10
votes
1 answer

slice last few characters

How do I remove the last 4 characters in a string? 'abcdefghijklmnopqrstuvwxyz' to 'abcdefghijklmnopqrstuv' Answer: slice(0,-4)
Jonyang
  • 103
  • 1
  • 8
10
votes
3 answers

1152: A conflict exists with inherited definition in namespace public

I have an actionscript 3 library item, "BG", that is linked to the class BGClass. BG contains a Sprite that has an instance name, "bg" and likewise BGClass has a public bg property. So the class looks like this: public class BGCass extends Base { …
Sunny
  • 131
  • 1
  • 1
  • 6
10
votes
4 answers

Flex Date() constructor is mis-converting Unix time stamps argh

This is seriously killing me. I'm trying to convert a Unix timestamp (1236268800, which equates to Thu, 05 Mar 2009 16:00:00 GMT) to a Date object in Flex. var timestamp:Number = 1236268800; trace(new Date(timestamp)); Output: Wed Jan 14 23:24:28…
Jarin Udom
  • 1,849
  • 3
  • 19
  • 23
10
votes
9 answers

Flex 3 - how to support HTTP Authentication URLRequest?

I have a Flex file upload script that uses URLRequest to upload files to a server. I want to add support for http authentication (password protected directories on the server), but I don't know how to implement this - I assume I need to extend the…
BrynJ
  • 8,322
  • 14
  • 65
  • 89