flex

Flex : Filter operator not supported

<?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Label id="lb" text="check" click="init1()"/> <mx:Script> <![CDATA[ public function init1():void { lb.text = this.width.toString().concat("-").concat.(this.height.toString()); ...

LinkBar button / label click event transition

I have created a linkbar with two labels. Now, I need to keep a track of the label clicks. 10 100 i.e. If in the beginning "First" is clicked, the details will be displayed. After that, i...

Flex : Dimensions of an application

<?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init1()" width="100%"> <mx:Script> <![CDATA[ import mx.controls.Alert; public function init1():void { Alert.show(this.width.toString()); } ]]> </mx...

Should I invest in GraniteDS for Flex + Java development?

I'm new to Flex development, and RIAs in general. I've got a CRUD-style Java + Spring + Hibernate service on top of which I'm writing a Flex UI. Currently I'm using BlazeDS. This is an internal application running on a local network. It's become apparent to me that the way RIAs work is more similar to a desktop application than a web...

Accessing a dataProvider with indexOf

I have a list object and I'm adding items to it with addItem through the dataProvider. Before adding an item to the list I want to make sure it's not a duplicate. I've tried using indexOf on the dataProvider and it returns null. I've tried casting it to an array and it works, but always returns -1 even if the element exists in the dataP...

In flex, how do I set a bitmap grid as a background for canvas

Hi! I've got a canvas in my app which I want to be backgrounded with a grid. I suppose, I need to create a DisplayObject with a single grid cell drawn on it and set it as a repeated bitmap fill for the canvas, but I can't figure out how to do that. I would really be glad to see code examples Thanks ...

Vsync in Flex/Flash/AS3?

I work on a 2D shooter game with lots of moving objects on the screen (bullets etc). I use BitmapData.copyPixels(...) to render entire screen to a buffer:BitmapData. Then I "copyPixels" from "buffer" to screen:BitmapData. The framerate is 60. private var bitmap:Bitmap = new Bitmap(); private var buffer:Bitmap = new Bitmap(); private f...

Does webcam recording with Flex strictly requires a media server (FMS, Red5, Wowza,etc.)?

Hi! I'm trying to implement a flex app that will be able to record a video from a webcam and then upload it to a server. I've only found tutorials and examples that require a media server running such as Red5, Flash Media Server and Wowza and an open rtmp stream to the server. However, I want to know if it's possible to record a video...

Adobe Flex vs Silverlight

This is not a pure technical question, but I believe answers will help the RIA community. We are a software development company, which is working on a development of Stock trading product. We chose to use Adobe Flex (in mid of 2008) due to its browser penetration and relative maturity compare to Silverlight. we already developed the sys...

Flex/ActionScript - rotate Sprite around its center

I have created a Sprite in Actionscript and rendered it to a Flex Canvas. Suppose: var fooShape:Sprite = new FooSpriteSubclass(); fooCanvas.rawChildren.addChild(myshape); //Sprite shape renders on screen fooShape.rotation = fooNumber; This will rotate my shape, but seems to rotate it around the upper-left point of its parent contai...

AMFPHP + Drupal Setup Error

Hello, hopefully someone can help me with this headache I have. I'm currently running Drupal 6 and am trying to integrate AMFPHP so I can do some stuff with Adobe Flex. Anyway, I downloaded the AMPHP module and the other required modules. I go to my domain/admin/build/services and see the following expected data: Servers * AMFPHP -...

change the characters of xml in actionscript

Hi community I have the following problem, given this xml <test> <comp> <id>1</id> <content>bar</content> </comp> <comp> <id>2</id> <content>foo</content> </comp> </test> I want to change the value of the content of the comp element with id 2. Therefore I loop with a foreach loop for each (var x ...

Positioning text in Flex

I want to display three different pieces of text in a line underneath a VBox so I've created a HBox and place the Text components in here: <mx:HBox width="100%"> <mx:Text text="left" id="textLeft"/> <mx:Text text="center" id="textCenter"/> <mx:Text text="right" id="textRight"/> </mx:HBox> I want the text with id "textLeft"...

Flex/AS3 - does anyone know how to take an AS3 display list, and create mxml from it?

I've been struggling with how I can build mxml from the displaylist created within an application. For example, create a number of components on a canvas, then click a button to get a formatted xml document, in mxml, of the canvas and its properties. Is there a simple method for this? Many thanks for any help... ...

Visualising StackOverFlow!

Hey All, I recently downloaded the stack overflow xml dump, and began playing around with the files. I plan to develop some visualisations of the data, for the community of course, but I am wondering does anybody have any suggestions on how they would like to view or indeed interact with this data? Social Network Analysis springs to ...

How would I debug Flex 3 databinding?

Hi, I'm trying to connect a datagrid to an HTTPService via a simple external XML document, and this is failing. How would I go about debugging where the problem is arising? I'm using the following: <mx:HTTPService id = "licenseService" resultFormat="e4x" url="http://localhost/licenseTest.xml" /> with <mx:DataGrid horizontalCenter...

Must be a simple mistake I'm making: Flex CSS style not working in a trival case

I must be making a simple mistake (new to Flex). Here is main.mxml: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#ff0000"> <mx:Style source="/testing123.css"/> <mx:Canvas top="0" bottom="0" left="0" right="0" styleName="bg-lowl...

Tooltip anchoring in Flex

Hello Everyone, I want to create a notification icon like the the red one in the bottom right-hand corner of Facebook. I tried using a ToolTipManager to create a tooltip but since Tooltips appear in their own layer in Flex and, as far as I am able to figure, cannot be anchored to any part of the page. When the user uses the browser's ...

Bindable combobox - selected item/index

I am trying to bind a datagrid item to a combox, so that when the user selects the item in the datagrid the form displays the selected data for editing, however one of my items is a combobox using a dataprovider. I would like the item selected in the datagrid to match the selected item in the combobox, this part is fine however if my da...

flex how to disable textfield up arrow.

Hi, The default behavior for textfield, when up arrow is pressed is, the cursor goes to the beginning or first character. I would like to disable this and add custom behavior when up arrow is pressed. I am able to add the custom behavior but I am not able to stop the default behavior. Can some body please let me know how can I fix my i...