flex

Is there a lighter version of Google Analytics for Flash

40k of compiled code seems like a lot to me to be making some straightforward flash-javascript calls and makes GA unsuitable for banner ad work as well. Does anyone know if there is a 'lite' version of Google Analytics for Flash? ...

How to authenticate to Freshbooks API using Flex?

I am new to Flex (FLex Builder 3.0), and I'm creating a simple application that would basically just authenticate to the Freshbooks API (www.freshbooks.com) via HTTPS. without sending anything else. Here's what I have so far: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolu...

using drag & dop into list,how can i get list items in flex

while i using drag & drop from listbox1 to listbox2 ,how can i get all the items of listbox2 in flex ...

Editing an XML document in Adobe Flex?

I am building a custom structured editor for an XML document in Flex. What I need is a way to do list operations on an XMLList with a minimum of fuss, using either an editable datagrid or a popup form (UI-wise, it doesn't matter which. Please don't focus on that). What is a good idiom for doing this? Here is an example structure, wit...

How do I create a bidirectional data binding in Flex 3?

I need to bind a property to an edit control and have the control write its value back to the same property. The problem is, I'm setting the source value before the control is created: <mx:Panel> <mx:Script> <![CDATA[ [Bindable] public var editedDocument: XML; ]]> </mx:Script> <mx:TextInput id="d...

Flex Combobox: Cancel Select

I've made an itemrenderer for the combobox control that shows a button next to the label. If a user clicks this button, the item gets removed from the dataprovider. Works so far. When he selects an item, the combobox closes, that's ok. But I don't want it to close when he removes an item. So is there a way to cancel the change event? I ...

Error:Classes must not be nested --> Actionscript

Hi All, I write a actionscript fileIncludeMyFile.as : package CustomComponent { public class IncludeMyFile extends Object { public function computeSum(a:int, a:int):Number { return a+b; } } } When i add package, i am getting Error: Package cannot be nested And My Mxml file: <?xml ver...

Flex: How to change caret (text cursor) in editable text area / text input

I need to put together an editable text area that has a custom caret (cursor) which is different from the default blinking vertical line. Is the caret a "skinnable" property of text input? Please note that I am not asking about the mouse pointer cursor which can be set using the CursorManager. Thanks. -Raj ...

How does the Flash Player know when you have successfully uploaded a File?

I am using Ruby, RestfulX, and Paperclip to upload a File, using the FileReference class. I get the response from Paperclip in the terminal that says I've successfully saved the file, but it appears Flash never gets what it needs to know the upload has been successful. I'm getting this error if I try to upload again while the CursorMan...

Adobe Air: Drag causes weird Application Crash

Hey, this is weird: I created a mx:List and using an mx:Canvas with some Items as ItemRenderer. Everything works fine, the List is displayed correctly. Now I set dragEnabled="true", dropEnabled="true" and dragMoveEnabled="true" to archive the ability to reorder my Items via Drag and Drop. But as soon as I start to Drag an Item the whole...

Dispatch an event from a class that inherits from EventDispatcher

I've got a class that extends EventDispatcher. What I want to do is to dispatch the click event when the component is clicked. (The class is essentially some text in a textfield that needs to be able to do certain things, and it needs to be able to respond to a click). Sounds easy enough... I want the event dispatched when that portion...

Adobe Air vs Java for Internet Cafe Time Manager Application.

Hi, I'm planning to do a little project to expand my knowledge in programming. The application I'm trying to build is an Internet Cafe Manager (I Know there are a lot software out there that is similar to what I'm building.). I had chosen this project since it involves connecting to a network, displaying data and time, and has a client ...

Force button to update its label

I create a custom component to override the linkButton to make it behave that if an exist value is found, it would shown as "Added". By default the button label is "Add to cart", I could not make the button become "Added" after trying many trial and error on uHandler which I suppose, COMPLETE, ENTER_FRAME, CREATION_COMPLETE could not ev...

Why can't I access dynamic text within a CS4 compiled SWC?

I have a movieclip created in CS4. I export that into my Flex Project's /lib and then try to access the text. All the textfields have ids, embedded text, and show up in intellisense. But when i run the project, the textfield is blank. What is going on? Edit: It appears to only not work when the text is embedded. Non embedded text works ...

Why my flex application can not compile sometimes?

Sometimes when I compile my flex app, I got this error Unable to create source GeneratedAsset31_dataClass. WebCe line 25 1259045578886 1546 But after I cleaned the project, this error disappeared. It's not a big problem but very annoying and I can not find any clue by search the internet. Any suggestion? ...

Is actionscript 3.0 strong enough to finally be my sole server-side language?

Actionscript 3.0 is much more powerful than its previous versions. Does this mean that I can start using it as my sole server-side language? can it connect to the database just like coldfusion or php? What is it that it can't do on the server-side? Thanks ...

Air application running only in builder environment

Hi , I have an air application that loads a swf ( built in flex ) , this swf loads moduls and basicaly my air application is a testing environment for this swf . when i run it in flex environment ( eclipse ) it runs fine , when i run it from my programs ( as an air program ) it gets stuck , what i was thinking is that it has to do with...

Show current item as tool tip in ComboBox itemRollOver

Hi, I need to know how to show current item as tool tip in ComboBox itemRollOver event at present i am using the below code, private var tip:ToolTip private function ItemRollOver(event:ListEvent):void { var currComboBox:ComboBox = event.currentTarget as ComboBox; var tipInfo:String = currComboBox.dataProvider[event.rowIndex]....

Is actionscript a client-side or server-side language?

Someone just told me that Actionscript is a client-side language. I'm not sure how this is true if we save the .as files on the server? I also heard several times before people referring to it as a server-side language. Which is true (if you can, please clarify with a reference). Thanks. ...

Problem while capturing ALT key event in flex

Hi all, I need to enable alt-<key> selection semantics for some Buttons in my application. If I write KeyDownEventListener for the Button, its not getting triggered when I press ALT key in the keyboard. Is there any way to enable alt key semantics for the buttons? Thanks in advance ...