actionscript

cookies deletion in actionscript 2

Hi I got a Different Issue my flash has few fields to select and when these are selected the next flash page will come with the data but in this page I have a edit button which when clicks takes me to the previous page where I have the fields to select but the problem is In IE after selecting the fields its not going to the next flash pa...

Adobe Flex App page file usage going through the roof!

I have been working on an Adobe Flex application for some months now, and the application is meant to run 24/7 for days (weeks!) continuously. However, I'm now seeing that after a few days of running nonstop the computer it runs on tells me that the system is low on virtual memory and gives me an error about Page File usage. Once I clo...

How to halt execution in ActionScript

Is there any way to halt execution in ActionScript, such as a sleep() method? I know that there is a setTimeout() method, but setTimeout() just sets up an event for deferred execution. ...

How to create an object form a string in actionscript 3.0 (as3)

How can I create a dynamic object from a string? Here is my current code with incorrect results: var s1:String = '{x:200, y:400}'; var o1:Object = Object(s1); trace(o1); // result = {x:200, y:400} trace(o1.x) // result = ReferenceError: Error #1069: Property x not found on String and there is no default value. trace(o1.y) // result = ...

Actionscript Beginner

I want to learn actionscript but I don't know wether to learn AS2 or AS3. Isn't AS3 an upgrade of AS2? I studied Lingo Scripts for Macromedia Director years back... 1998. (intermediate level) Are there any similarities with Action Script and Lingo scripts? Please advice. Thank you. PpD ...

How to use a string as an e4x expression?

Possible Duplicate: In Flash, how would I run an e4x statement when that statement is stored in a String? I know there is an existing question regarding this problem, but it got no replies. Ideally, I would like to stick an e4x expression in a string and run it. i.e. var tempXML:XML = someXML; var stringe4x:XML = "pictures.pi...

How do I build a flash/flex chart control frsom scratch ?

Hi, Im interested in creating a flash control for a graphing solution. I consider myself an absolute beginner in flash having done a few designs on flash and using scripts to run them ages ago. Im prepared to learn it all over again and get some cool flash charts done. Please tell me some resources, books and stuff that I could use to cr...

Generate an SWF from an ActionScript source automatically, to be called from JavaScript

I have some data-crunching code implemented in ActionScript, and I'd like to call it from JavaScript. The related question http://stackoverflow.com/questions/460242/interacting-with-actionscript-2-0-using-javascript mentions the blog post http://blog.circlecube.com/2008/02/01/actionscript-javascript-communication/ which tells me how to d...

A VBox with only one rounded corner and gradient background

I'm working with Flex 3.4 SDK. I'm trying to programmatically(yep, must be this way) style/skin a VBox so that its top right corner is rounded, and it gets a two colors gradient brackground. Modifying examples I found around I was able to accomplish both effects(corner and background) but only separately: VBox with not all rounded co...

Mapping Java ArrayList<CustomClass> and Flex ArrayCollection

Hello Community! I'm currently trying to map a java ArrayList with a Flex ArrayCollection, through LCDS. My Flex application does call the Java method that returns the ArrayList, but I haven't managed to retrieve the ArrayList to display it in a DataGrid, on Flex side. JavaSide: I have 2 classes: - Jco_test.java: it contains the meth...

actionscript (flex): how to know whether a property of object exists (or defined)?

Hi; I am a Java developer who tries Flex. Here is my problem: I behave actionScript objects as hashmap but when the object do not have the property it gives exception: No such variable. Here I expect it gave me null, instead of giving exception. So do you know is there a way to handle it, namely check if the property is defined for o...

Java marketshare: what version of Java runtime do most people have? Do I need to use Flash to get 90% possible marketshare?

My friend and I are planning to build a simple chat client to let people in a (physical, real world) room chat with each other (people chatting over the same wifi network, possibly pinging some external server to organize things by the external IP address of the wifi network). Partly we planned this as a chance to play around with Groovy...

Does it make sense to dispatch events from another object?

I'm still trying to get my head around the best way to structure event flows. Someone made a lot of sense by telling me that contained objects should be decoupled from their parent containers so they're reusable between containers. Instead of calling their parent's function, they dispatch an event. Sensible! I recently myself in the awk...

XML to JSON in Flex?

Is there a library in Flex/ActionScript to convert XML to JSON, similar to the json gem in the Ruby world? ...

fire event in actionscript on swf load?

I am trying to get a bit of content to load on pageLoad instead of as a clickable event (but still keep the clickable event on the menu). Here's the actionscript: import mx.utils.Delegate; /** * This is the menu that comes up at the bottom with various analysis and navigation options when a thumbnail is selected. */ class imagegal....

FlexCover 0.81 throws ServicesDepdendency Error no matter what

I've used FlexCover quite a bit before so this is absolutely absurd to me. No matter what version of the flex sdk (3.0, 3.2, or 4) that I apply the appropriate patches too, I get the following error when trying to compile: mxmlc Test.as Error: flex/messaging/config/ServicesDependencies java.lang.NoClassDefFoundError: flex/messaging/co...

Flash storing strings as keys in array

in php I could do: $prices['ford']['mondeo']['2005'] = 4500; $prices['ford']['mondeo']['2006'] = 5500; $prices['ford']['mondeo']['2007'] = 7000; and could do: echo sizeof($prices['ford']); // output 1 echo sizeof($prices['ford']['mondeo']) //output 3 how can I achieve it in Flash. Flash doesn't seems to like STRINGS as ARRAY KEYS,...

FLV Actionscript playback from non-HTTP source

I'm almost a total noob to Actionscript and FLV, but have been reading up on the documentation. I'm under the impression that NetStream reads the data from the server, caches it locally, and then plays it while continuing to append to the local file as it reads more data from the network. Is that correct? If so, is it possible to downl...

How to get dimensions of only DisplayObjectContainer's *visible* contents?

A DisplayObjectContainer's dimensions change based on its contents. That can be a LOT of contents, many of them with visible = false or masked, thus making them hidden. Is there a way to get only the visible contents of a DisplayObjectContainer similar to a TextField has the textHeight property, which gives you the exact dimension of wh...

Haxe - Flash project compiles fine, but won't compile using hxcpp

In summary, I think my question is this: How can I force hxcpp to compile haxe code for Flash 8 ? Here's where I'm at. I'm new to haxe, and am trying to get a sample from here: http://tilestudio.sourceforge.net/flash/Demo.html to compile using hxcpp, in my tests to see how haxe compiled apps work on the iphone. I've gotten other sam...