I have a book, Essential ActionScript 3 (O'Reilly), to learn about using that language. It mentions that ActionScript 3 is an implementation of ECMAScript, just like Javascript. I find this strange, because there are many differences. In Javascript, as far as I know, you cannot give variables a type (var marvin : Robot) or create "tradit...
I'm totally new to actionscript,
and such a tool like firebug will really help a lot!
...
We have an application in which the user has to enter a date who's value is no more than 30 days after the the current date (the date on which the user uses the application). This is a Flash application, therefore I need a way to add 30 days to the current date, and get the right date. Something like in JavaScript:
myDate.setDate(myDate...
I'm looking for advice as to coding conventions. The primary languages I use, in order of frequency are C#, JavaScript, and ActionScript. They are all ECMA-based languages, so for the most part, the syntax is interchangeable. What I would like to do is standardize the way I write code.
I looked around for documents on coding standards a...
I have several components who's screen position depends on the resolution of the monitor on which the browser lives.
loginBox.x = (flash.system.Capabilities.screenResolutionX - loginBox.width) / 2;
loginBox.y = (flash.system.Capabilities.screenResolutionY - loginBox.height) / 2;
The problem I'm encountering is that the flash.system.C...
How do I make text selectable (so I can copy) in a DataGridColumn?
...
Basically the question could more probably be more accurately asked, how do I simply disable a button and then re-enable it? I've tried setting buttonMode to false, mouseChildren to false and enabled to false. Nothing works. I realize I could just remove the event listeners, but surely there is a more elegant and efficient way. As removi...
I'm using Python+PyAMF to talk back and forth with Flex clients, but I've run into a problem with the psudo-Enum-Singletons I'm using:
class Type {
public static const EMPTY:Type = new Type("empty");
public static const FULL:Type = new Type("full");
...
}
When I'm using locally created instances, everything is peachy:
if...
So I have a flashobject which I need to pass a formatted DateTime string to.
My code:
string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
which outputs as: 2009-09-16 22:26:45
However when it is actually output to HTML and swfobject it renders it as:
so.addVariable("inNowDate","2009-09-16+22%3a25%3a13");
I think this is m...
My Flex 3 application has some modal dialogs displayed via the PopUpManager, but there are times when I'd like other view components to know there is popup displayed. The PopUpManager doesn't have any method for actually checking the existence of popups. Is there any other way to detect this in flash/flex without writing my own global ma...
Over the past three weeks, I have lost at least 120 man hours because of some lesser known functionality in ActionScript 3. One of the problems was that, with Internet Explorer, if there are too many messages sent through LocalConnections, it will slow the messages sent through, but in the standalone player and in Firefox, this threshol...
Does anyone know how the entire checkout process including credit card validation and payment/transactions can be done in Flash, without redirecting to another HTML page?
Since Flash has all the capabilities of a web browser (page requests, GET, POST) and even some goodies (cross domain page requests, sockets) I'm assuming this shouldn'...
Hi
I want to set Maximum and minimum value for X axis in bar chart in flex action script 3 file.
Following line in working in MXML file but I want these code in actionscript 3.
can anybody change this into Actionscript 3.
thanks..
...
I'm working on an application where I'm drawing some rectangles on the screen, and then will need to manipulate the shapes (change their size, location). I tried to do something with .drawRect and clearing the shape each time I was manipulating it, but the RAM usage was spiking and then falling (presumeably because i keep reinitializing...
Anyone know of a good reg exp that can do this, optimally in one go? It needs to remove whitespace at begin/end of each line, remove LFs and CRs and replace with a single space but if there's a <br> (or <br/>) at the end of the line it should not add a space. I'd need this in a JavaScript conform regexp.
...
How do you say or achieve container.child.source = image.png?
I have a hexagon map built by specifying width and height. I draw a wireframe and place a base image for each hex into a canvas. Next, the canvas listens for a mouse click. I then run a calculation to determine which hex the mouse click was closest to. My intent is to cha...
Say I have an flash object embedded in XHTML like so...
<object width="600" height="400">
<param name="movie" value="somefilename.swf">
<param name="data" value="somefilename.xml">
<embed src="somefilename.swf" width="600" height="400">
</embed>
</object>
I know that there are methods to read, parse, and use the data in "somfilename.x...
I need to write a DHTML page. But, since I have most of the code inside an AS3 library, I want to use ActionScript instead of JavaScript to do the most of work. In this case JavaScript layer (if any) would be just a write-once abstract proxy.
I know about ExternalInterface stuff, but I want something more high-level, which would ease cr...
I have many radio button in my Flex form, when i click on generate XML... the button which is clicked should have value 1 and rest as zero.
<options>
- <option value="0">
<text>Text0</text>
<feed>Feed0</feed>
</option>
- <option value="0">
<text>Text1</text>
<feed>Feed1</feed>
</option>
</options>
Below comes Flex co...
Hi guys.
I really searched for a long time to get the clue how to add an instance of a custom UserControl Object, that I created to the Silverlight "stage", but I didn't find anything.
Is there anything in Silverlight with C# like "Stage.addChild(myAweseomeObject);" in Flash?
...