actionscript

Suggested flash tutorial sites

I'm trying to locate some decent flash/actionscript tutorial sites if anyone in this community has any suggestions I would appreciate it. ...

Flash and CORBA

How do I get AS3 and/or Flex/AIR applications to communicate with CORBA apps? ...

Flash/AS3; get/set absolute position of MovieClip?

How do you get/set the absolute position of a MovieClip in Flash/AS3? And by absolute, I mean its position relative to the stage's origo. I currently have this setter: class MyMovieClip extends MovieClip { function set xAbs(var x:Number):void { this.x = -(this.parent.localToGlobal(new Point()).x) + x; } } This seems to wor...

Actionscript - scroll through images left to right

Hi. I have made a flash gallery that loads images from an xml file and fades them in and out. However I have been asked to make it so they fade in from left to right (i.e. hiding a bit of image while slowly revealing the whole image). Code is below: _root.onEnterFrame=function () { var picLoaded = thisLoader.getBytesLoaded(), pi...

Download a file with Adobe AIR

How do I download a file from the internet in a Flex based AIR application. I tried using a file with url set to the address, but I got a file does not exist error when I tried to save it. And it is really hard to google for help on this issue. ...

getUrl without opening window AS2

How do you call a URL from ActionScript 2 without opening a new window ? I've tried "getUrl" and various methods of "LoadVars". ...

Parsing large XML files in Adobe Flex

I am working on an Adobe Flex app, which needs to parse a relativley large XML file. ATM it is only 35MB, but in an ideal world would get much larger in the future. **Edit: I have no control over the XML file I am essentially dropping it's contents right into an SQLITE database, so I could use the SimpleXML class to turn it into an obj...

Problem with LocalConnection connecting to actionscript 1 swf

I'm building a shell application that will load other swf's inside of it based on which chapter and which section the user is in. The shell is written in actionscript 3 and it's loading various AS3, AS2 and AS1 swfs inside of it. I'm using LocalConnection after the AS2 and AS1 swf's have been loaded to set the correct variable for flash ...

How do you access browser information from an AIR application?

I am trying to build an Adobe AIR application that will run on Linux/Mac OS/Windows, which monitors user's browsing history. How can my AIR application find out which browsers are installed? In other words, the list of browsers' history to monitor. Also is there any way to know if a browser is running or not at run time? As for the...

Flash / Actionscript CPU profiler

Have you found such a tool and used it successfully? ...

flexunit with pure ActionScript project in Flex Builder 3

If you create a pure ActionScript project in Flex Builder 3 and want to do unit testing using flexunit, what is the best option? The built-in Flex builder will refuse to build the mxml file containing the TestRunnerBase component as it is a pure ActionScript project (no Flex allowed). It is impossible to add the mxml file to the "Action...

Syntax Highlighting library in ActionScript

I let user enter some code in my Flex3 (Flash 10) app and I want to do syntax highlighting. Is there any open-source library that would help me? I'll need a Lua syntax support, but I can add it myself if library has a resonable interface to do this. ...

How do I pass a dynamic url from xml into an onClick Mouse Event in ActionScript 3?

Im loading the xml in, and Im able to read the xml nodes into text fields in my flash. It is also loading the url, but the last one from the loop. Its not loading the one that I click on. I tried using event.target, but that is not working. Im pretty close to figuring it out, Im just not sure where to look. Any help would be greatly appr...

How do I change the State in an itemRenderer based on an action in another itemRenderer?

I have a DataGridColumn with an ItemRenderer that extends the Box component. The default display is a Text component. When the user clicks on the text component, I change the State to add a PopUpMenuButton child, and make the Text component invisible. This works fine. However, I only want to allow one PopUpMenuButton to be visible in the...

RadioButton in 1st row of DataGrid causing problems - Adobe Flex

I have a DataGrid with RadioButtons in one column using itemRenderer. The DataGrid resides on a TitleWindow which is created and popped-up everytime the user clicks a button. The dataProvider for the DataGrid is an ArrayCollection, and the RadioButtons are selected or not based on a boolean value in each ArrayCollection item when the win...

Trouble with ActionScript 3, not working, and i have no idea why, flash CS4

Hello I'm very new to ActionScript 3, and I've followed this toturial on adobe TV. But I don't get it to work. The thing is that I want the box to move left/right when I click the buttons, but nothing happens. You can download the .fla file here: http://www.habitats.no/files/AC3.zip Thanks. ...

How do I implement data binding in an ActionScript Class?

I am having a problem with binding values in my ActionScript components. I basically want to set the value of a a variable in my component to a value in the model, and have the component variable automatically update when the model value is updated. I think that I just don't fully understand how data binding works in Flex - this is not a...

Why isn't there an addAll() function available to ArrayCollections in Actionscript?

Is there any reason why there isn't an addAll() function available when using ArrayCollections in Actionscript? I've been using for loops to individually add them one at a time using addItem(). Is this common or is there a more convenient way? ...

removing whitespaces in ActionScript 2 variables

let's say that I have an XML file containing this : <description><![CDATA[ <h2>lorem ipsum</h2> <p>some text</p> ]]></description> that I want to get and parse in ActionScript 2 as HTML text, and setting some CSS before displaying it. Problem is, Flash takes those whitespaces (line feed and tab) and display it as it is. <some...

Simple secure way for Flash to MySQL Database

Any simple, but secure script available for Flash > MySQL DB integration? I need something for a Login DB. Exchanging variables with PHP is nice and easy, but obviously insecure. via Remoting? I've got the Flash 8 remoting components installed, and some ideas: idea-1, idea-2. via NetConnection? Got some leads: lead-1, lead-2. Cold Fu...