actionscript-3

How to Set a Break in HTTP in Flex 3

I don't think my HTTP is being called properly and I am trying to set a break in the HTTP. What is the correct way to do this? ...

Immutable Collections Actionscript 3

I've been trying lately to implement some clean coding practices in AS3. One of these has been to not give away references to Arrays from a containing object. The point being that I control addition and removal from one Class and all other users of the Array receive read only version. At the moment that read only version is a ArrayItera...

Flash, accessing totalBytes before actually loading the file

Im looking for a simple way to find the file sizes of the files i planning on loading without loading them yet. I'm basically making a batch of files that needs to be loaded and it would be very useful if I could determine on beforehand how big the total load is going to be. the Loader object in flash has a totalBytes property, but that...

What is a good Actionscript 3.0 book for experienced developers?

So, I need a book (I know the API-docs, but I like books I can hold on my hand and take on the bus, etc.) for ActionScript 3.0 - I already know a plethora of programming languages so no problem there, but all the books I seem to find for ActionScript 3.0 are of the sort "teach yourself ActionScript 3.0 in 24 hours" and they all begin wit...

Flash AS3 timer question

Hi I have got a timerEvent that adds 25 movieclips to the stage and animates them from x:0,y:0, this all works fine! What i would like to do is assign each movie clip a y value of 25px more than the last movieClip added to the stage. I did a little test by trying to increment a number value each time the timer did a loop but it didnt inc...

How do I save a file in Flex with Flash 9

I am using Flex 3 under Flash Player 9. I have a datagrid that I want to export to Excel. I construct the Excel object (ByteArray) in Actionscript, and now I want to save it using FileReference. However, under FlashPlayer 9, FileReference only has a download method. Can I somehow point this download method to the Excel object? ...

Flash: Download Dialog box

When a user clicks a certain link which contains an image that should be downloaded, the client wants a dialog box to appear. Currently we zipped the downloadable files, but there is not other way in achieving this than perhaps javascript right (or flash 10 filereference class)? ...

Why is my URLLoader not dispatching when it completes?

I'm using a URLLoader to send a few key/value pairs to a php script, which then turns them into an e-mail, sends it (or not), and then echoes a string with a response. At first it works fine. The URLLoader posts, and I get my e-mail a minute later, but for some reason I'm not getting my response back. In fact, my COMPLETE event doesn't ...

Why is object returned from getDefinitionByName()?

In Actionscript 3, why does getDefinitionByName() return an Object when the docs say: Returns a reference to the class object of the class specified by the name parameter. Based on that, I would conclude that the returned object should be Class instead of Object. Can someone enlighten me why that is not the case? ...

Test Suite for Double Metaphone ?

I've translated Double-Metaphone into ActionScript3 and I want to test it (obviously) before I release the source to ... um ... the open. I'm looking for a long list of names with the primary and secondary codes. Google does not find anything except one list with pairs of names (presumably they should match). Thanks ...

LoaderContext and ApplicationDomain changes with Adobe AIR ?

Hello, I'm currently experimenting with loading external SWF files from both an standard AS3 application, and an AIR application. It seems that the AIR application doesn't act the same way a standard SWF run by the Flash Player does. According to the documentation, the applicationDomain property of LoaderContext is usable in an AIR app...

is there conversion function for color values between #FFFFFF <-> 0xFFFFFF

is there a conversion function for color values between "#FFFFFF" <-> 0xFFFFFF I like to read a value from String and convert it to hex number ...

Font anti-aliasing not appearing in some computers(win)

I have tested my flash game and the fonts are not anti-aliased in all machines (windows). Is there a way to force FLASH to antialiase always? ...

using colorTransformer to make color fading out effect

Is there a good sample how to make a color "fading out" demo effect, something like this: colorTransformer.redMultiplier = colorTransformer.redMultiplier -.2 ; colorTransformer.greenMultiplier = colorTransformer.greenMultiplier -.2 ; colorTransformer.blueMultiplier = colorTransformer.blueMultiplier -.2 ; ...

Impossible to achieve a Zoom in/out with webcam using actionscript?

Hi I am guessing this is not possible based on the fact that my Google search did not yield anything! So asking the stackoverflow talent, is it possible for me to get webcams to zoom in and out providing the webcam has zoom capability? I am guessing no? This is for an image capture project that I am doing. Thanks all ...

Open source MPG to FLV Converter?

Anyone know or use an open source MPG to FLV converter that I would be able to use programatically? Preferably .NET . If you know any .NET commercial ones also then I would be grateful of those links too. Cheers, Andrew ...

Why is there no assertError() function in FlexUnit?

It seems that most XUnit testing frameworks provide assertions for the times when you want to assert that a given operation will thrown an exception (or an Error in AS3 parlance.) Is there some "standard" way of doing this that I am overlooking, which would explain the absence of an assertError() assertion included with FlexUnit? I kno...

Flex/Actionscript White to Transparent

I am trying to write something in my Flex 3 application with actionscript that will take an image and when a user clicks a button, it will strip out all the white(ish) pixels and convert them to transparent, I say white(ish) because I have tried exactly white, but I get a lot of artifacts around the edges. I have gotten somewhat close us...

Can I use a bindable string for a ComboBox prompt?

The following displays a ComboBox with the text "Select One": *This is pseudo code <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:ComboBox prompt="Select One"> <mx:dataProvider> <mx:Array> <mx:Object label="Obj 1" /> ...

How can I remove drop shadow from TextInput?

I have a style sheet in my Flex Application, referenced as: <mx:Style source="/assets/stylesheets/default.css" /> In this style sheet, I set dropShadowEnabled to true gloablly: global { fontSize: 11pt; dropShadowEnabled: true; verticalAlign: "middle"; } This gives a drop shadow to many components, including all TextInpu...