flex

Custom button component protected property

In my custom button component, I want to get a handle on the textField (The internal UITextField object that renders the label) in the Button so I can modify some properties on it. It exists as a protected var in Button.as How can I do that in my mxml component? ...

Flex Charts -- How can I change the color of a chartItem on rollover?

Hi guys, Is there a way to set a rollover color for each series in a chart? For instance, I have a column chart with two series: one series is set to blue and the second series is set to gold. When the user mouses over the blue series, I would like the blue to turn to bright blue. And when the user mouses over the gold series, I would...

Flex: How to call function of embedded swf?

I have a Flex 3.4 app that embeds a swf with mx:SwfLoader... That swf has a public function named "playIt". I've tried dispatching events to gettingHere.content, casting gettingHere.content as a MovieClip and other stuff... var swfApp:MovieClip = MovieClip(gettingHere.content); if (swfApp.hasOwnProperty("playIt")) { var helloWorl...

How Do I Inspect the XML sent from OpenX?

Hi, I'm trying to get Flex and OpenX working together. I can get the ads to work when I view the site on a Mac using Firefox or Safari. But, if I use a PC with IE, I get error #1090 which is an XML parser failure. Apparently, there is malformed XML. How do I check the XML that OpenX produces? What's the best way to find the nasty node...

Flex: How to embed fonts with CSS

Hello, I have two questions: I am trying to embed fonts via this page in the livedocs. Can anyone tell me what I need to do to use an external style sheet? Should it be a style sheet or an mxml file? I saw this tutorial, which offers quite a bit of good information (some of which I also found in the livedocs) via the comments. EDIT...

Detecting the NAMES (not values!) of the attributes of an XML node in flex/as3

var node:XML; In flex/actionscript 3, I can call node.attribute("somename") and get the value of the "somename" atribute of the node. I can also call node.attributes() and get the VALUES of ALL the attributes. But how the heck do I know what attributes to look for?! The application I am creating does not know the format of the XML fi...

Usage of custom event with properties... Multiple events and single listener

Hi there, I am having a hard time wrapping my head around what to do for the following situation: I have multiple items in my app that I would like the user to click on. Some items are completely different classes. The classes dispatch events and then when the events are captured, some modifications are done to the transform proper...

Prevent displaying of some data in last row of Flex Datagrid

Hello! I have some DataGrid with editable rows, which has also an option to add new row 'dynamically'. I mean, last row has some default data (e.g. "CLICK HERE TO ADD NEW ROW") and when user clicks on it, he can edit that value and new row will be eventually inserted. However, I also have a column in same DataGrid which doesn't come fro...

MVC dbml and weborb for .net performance.

We have a flex application that runs along side a mvc .net application. Our flex app communicates with .net via Weborb. We recently put our entire database schema into a single dbml file. Previously we had the database schema split out into several dbmls. The problem we have run into since consolodating into one dbml is that our weborb c...

Using summary data from dataprovider to populate chart.

In Flex, how do i create a summary(say total of various domains) from the data provider and display in chart? Say this is my dataprovider.. I want to display the total estimate of each territory as a slice in piechart private var dpFlat:ArrayCollection = new ArrayCollection([ {Region:"Southwest", Territory:"Arizona", Territory...

Flex: change the application windows size

I am embedding the swf into a c# winform, now what I want to do is when I click a button inside the swf, the swf's size is changed. I have tried to use the stage class but failed, the system said the width/height property is not implemented: protected function button1_clickHandler(event:MouseEvent):void { sta...

flex: the size of the VideoPlayer can't be changed to be smaller.

I am using below code to change the size of the VideoPlayer, but in my result the control didn't change, just the video inside the control is changed. And it's weird that the video can be changed to be larger but can't be smaller. My aim is to change the size of the control, and the video will also be sized according to the size of the c...

Game Development: Flex or Flash IDE?

Which would be more comprehensive for game development? ...

Problem with displaying line chart from xml data

I have something like this xml data <data> <result month="Jan-04"> <employee id="1"> <a>81768</a> <b>60310</b> <c>43357</c> </employee> <employee id="2"> <a>81768</a> <b>60310</b> <te>43357</c> </employee> </result> <result month="Feb-04"> <employee id="1"> <a>8...

Not able to load flex chart

Hi My first Problem i have swf file, if i load that file independently in browser then it works fine.but i put it in HTML page using "object" tag it dosn't work. can any one knows what could be reason behind this? My second problem i want to access swf file from say 'xyz.com' domain to 'abc.com', swf file load successfully but ot...

Flex e4x - select by multiple attributes

<EFM> <projects> <project name="EFM Columbus Supply Chain Project"> <characteristics> <characteristic name="Types of Data"> <textDescription></textDescription> <options> <option name="Commodity Flow" value="True"/> ...

Connecting to commercial databases from an Adobe AIR application

I'm new to Flex and Adobe AIR, but I'm writing a desktop application that will need to connect and query commercial databases such as DB2, SQL Server and Oracle. How do I connect to these type of databases from ActionScript in an AIR application? ...

Error - while trying to select the checkbox, when a row is selected in the datagrid.

I want my checkbox -- which is in a datagrid, to be selected when the row of the datagrid is selected. And for this I wrote the following code: <mx:DataGrid id="dg_trashContent" allowMultipleSelection="true" verticalGridLines="true" dataProvider="{trashDataProvider}" ...

Flex ImageCapture/BitmapData limitations on small screens?

I have developed an application that in the end will save a captured image of a canvas that's scaled up to 4000 pixels then upload the result to the server using ZendAMF. This all works fine on all of my development machines. However, my client is running a small netbook and when he submits it to the server, the image on the server doesn...

AS3: Math-related - Constructing Equilateral Triangle

Hi there, I am trying to construct an equilateral triangle with the following code, but I am not seeing what I would expect to. I would expect to see a triangle drawn to the stage, but I don't see one. I think there must be something wrong in terms of the location of the tri sprite on the screen. public class test_drawing_triangle exten...