actionscript

retrieving Drupal contents from Flex using RemoteObject

I have previously used DTO in Flex which is mapped to a PHP DTO file. I used PHP through remoteobject (AMFPHP) to retrieve info from a MySQL database which is converted into the DTO type and then passed back to Flex to populate Datagrid. The data used to populate the Datagrid is an ArrayCollection of DataVO, as follows. Public Function...

Flash/Flex Error #1063 When Retrieving SharedObject

I have a parts application that is built on Flex 3 and I having a problem with the parts list. The parts list uses two objects: Part ArrayOfPart I cache the parts list locally in a SharedObject. This has been working fine for a couple months. I added a new Boolean property to the Part class and re-imported web services (which shouldn...

Lint tool for actionscript?

Are there any lint tools available for actionscript? One source would be ideal, but anything is welcome. My team is starting to adopt more a more rigorous style guide (where "more rigorous" means "existant"), and I think a linter would help us all adhere more easily to the style rules we've agreed on. I'm not above writing my own, but...

Flex: Databinding on object

Lets say I have the following: public class MyObject { [Bindable] public var foo:int = 3; } ... [Bindable] var _obj:MyObject = null; What's the best way to bind foo so that this binding is updated when _obj is set to a new instance? I've tried: <mx:Label text="{_obj&amp;&amp;_obj.foo}"/> But it isn't pretty. Can I express th...

JavaScript in Flash

I have a java script code that works fine when run through a browser, is there a way i can use that code in flash without much editing, i want the to get the input from user through flash and have the code do the computing and display the result in flash, any clues? ...

What is the best way to get the minimum or maximum value from an Array of numbers?

Let's say I have an Array of numbers: [2,3,3,4,2,2,5,6,7,2] What is the best way to find the minimum or maximum value in that Array? Right now, to get the maximum, I am looping through the Array, and resetting a variable to the value if it is greater than the existing value: var myArray:Array /* of Number */ = [2,3,3,4,2,2,5,6,7,2]; ...

What tools do I need to develop in actionscript (in Linux)

I've never developed flash before but I have a project where I want to use an actionscript 3 library and I'm not sure what tools I need to start. To further complicate things my main development box is an ubuntu box. Are there any necessary packages I need to install? Or any .deb's I can buy? Thanks ...

What is the best way to reuse functions in Flex MVC environment?

I am using a Cairngorm MVC architecture for my current project. I have several commands which use the same type of function that returns a value. I would like to have this function in one place, and reuse it, rather than duplicate the code in each command. What is the best way to do this? ...

Do I need to worry about concurrency issues in my Flex/AIR code?

I have a situation where I'm starting a number of objects that, when they are ready to handle some input data, call a handler. That handler gets a dataset from an ArrayCollection of pending requests, assigns it to the object, and removes the dataset from the ArrayCollection. (I can't pop from the ArrayCollection because I need to searc...

Swapping information between ActionScript and Lingo

I have a lingo script which runs some data processing for a Flash movie. I can call my Lingo functions from Flash by putting the following inside one of my methods: getURL("Lingo: myMethod"); and I can pass parameters from flash to lingo as follows: getURL("Lingo: myMethod param"); However, if myMethod returns a value, I can't seem...

Which Flash SWF compiler uses compiler directives?

Any existing Flash SWF compilers that can understand directives like #IF #ENDIF, etc? Some SWF Compilers: (Hopefuls) AS3 Compiler - haXe AS2 Compiler - MTASC Adobe Flex Compiler - Mxmlc C# to SWF Compiler - Debreuil ...

Do you use jQuery, extJS, or other javascript libraries with Actionscript and Flex?

Since Actionscript is a proper superset of javascript, it should I suppose be possible. Do you use/have you used any of the the javascript extension libraries with Actionscript/Flex/Air? ...

How does Google read SWFAddress deep paths?

SWFAddress claims that it is search-engine friendly, but how is one supposed to feed the deep-links into search engines like Google? Because in all my SWFAddress-powered websites, not a single deep-link shows up in Google. Tried and failed methods: In the hidden-HTML, a-href (hyperlink) to deep-links such as www.site.com/#/Topic1 In t...

xml+flash+Actionscript

hi, please help me how to update the externl xml file from actionscript.first i have load the xml file and the i have to update the xml file please help me, thanks in advance ...

Control FLV/MP4 Audio & Pan Levels

How can I control the audio & pan levels of an external FLV or MP4 video that I am playing through a Video object? In AS 2, the way to do this was to create an empty movieclip and then use the attachAudio function, which has been deprecated. Should I go about doing this the same way or is there a better way to control the audio without ...

How do you save variable state in Flash

I'm completely new to Actionscript and I'm trying to figure out if it's possible to save variable state in Flash. I figure I could use XML but is there a way to store it in the Flash file itself? Thank you! ...

Flex - ActionScript: how do I use SortField to sort my data numericly

From the documentation: SortField () constructor public function SortField(name:String = null, caseInsensitive:Boolean = false, descending:Boolean = false, numeric:Object = null) I'm confused on the last part - numeric:Object = null Here is my function: private function createXMLDataProvider():XMLListCollection{ var sort...

make link on SWF File to another HTML.

Hi, I am having a problem with SWF File. I have a SWF File on my HTML page and i need to link it to another HTML i used but the anchor is not working. Any one can help me. How to link a SWF file. Thanks ...

Is google anti-Flash?

Google doesn't seem to like Flash content in any other way except writing text straight into the Flash IDE to get exported statically into the SWF movie. Which means that any text drawn by ActionScript into TextField's don't get indexed? Beginning at their Webmaster Guidelines, they recommend: "Avoid hidden text" - preventing hidden ...

What text inside Flash is indexed by Google?

Does the following mean that dynamic TextFields will NOT be indexed? We currently do not attach content from external resources that are loaded by your Flash files. If your Flash file loads an HTML file, an XML file, another SWF file, etc., Google will separately index that resource, but it will not yet be considered to b...