flex

How can I change the color of a substring of a LinkButton's label in Flex 3?

I'm trying to figure out the most elegant way to change the color of just one character of the label on a LinkButton control. Given something like this: <mx:Style> myLinkButtonStyle { textRollOverColor: #FFFFFF; } </mx:Style> <mx:LinkButton label="My Label" styleName="myLinkButtonStyle" /> ... what'd be the most a...

Is it safe to use a component reference in mxml

Consider the following radio button example. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"&gt; <mx:Script> <![CDATA[ private function getRb1():RadioButton { trace(rb1 == null); return rb1; } ]]> </mx:Script> <mx:VBox> <mx:RadioButtonGroup **id="rbg" selection="{getRb1()}*...

Flex Tree Node Naming question...

I have a tree in flex built from an XML document into an XMLlist In the XML the tags are all different and have a bunch of attributes each, and are not consistent. When I publish the file I want the name of the folders in the tree to be the tag. It is easy with attributes.. "@id" or something similar, but I can't find what it could be...

How does one define a default style for a custom Flex component?

I'm creating a new Flex component (Flex 3). I'd like it to have a default style. Is there a naming convention or something for my .cs file to make it the default style? Am I missing something? ...

Logging causing XML Parsing to break?!

I'm seeing something very very strange happening in a Flex app I'm maintaining. I've been going through it removing all calls to trace() and replacing it with calls into the logging framework (using the built in mx.logging stuff). After doing so some XML parsing code suddenly broke, and I can't for the life of me figure out why. here'...

After grouping a flat data collection, what is the structure of a itemRenderer's data ?

So I want to have the tree behavior in a grid, and use item renderers in the top-level (aka summary) rows. Once I've applied grouping, the data object is much changed. Here is the code to add grouping to an ADG: var tripCollection : TripSearchMatchCollection = TripSearchMatchCollection(value); var theGroupingCollection : GroupingColl...

Can you use Adobe's Alchemy to execute a batch file?

I was going to make an AIR application but I need to execute an external application and because of the security restrictions in Adobe AIR... I was thinking why not try and bypass it by writing some C code that does something like System("file to execute"); and then use Alchemy to change it into a swc and us that in my application... ...

Addressing in CSS in Flex: Buttons in RichTextEditor only?

I want to change the font characteristics for buttons in the toolbar of the RichTextEditor, but I want them to be different than other buttons in my application. Is there any way to do this with just CSS? I know that I can do it with setStyle if necessary... ...

How do you programmatically move the caret of a Flex TextArea to the end?

I'm trying to move the caret in a Flex TextArea to the end after appending some text from my code. I've looked through the reference documentation for TextArea and its underlying TextField but it appears there is no method provided to handle this. One approach I've tried is to set focus to the text area and dispatch a KeyUp KeyboardEven...

How do I connect (and use content of) an RDF file in Flex?

Hi all, I'm working on a prototype in flex and I need to connect my application to an .RDF file that contains some properties. I need to use and manipulate those properties in a "descriptor file" made in Actionscript. So my question is: how do I connect my flex application to that .RDF file? Thanks, regards David ...

How can I drag an eMail from Outlook into an Adobe AIR application

This is a quiestion concerning both, Adobe AIR and MS Outlook. I'd like to drag an eMail from Outlook into an AIR application. I want the following data to be transferred into the AIR application: unique ID of the mail in Outlook to create a link into Outlook rich text of the mail some information about the mail like sender, recepient...

Flex 3.0 : Showing data in the legend of a Pie Chart

Hi, I'm a newbie to Adobe Flex 3.0. I need to show data within the Pie Chart Legend, alongside the colored markers. I have a few vague ideas about how to go about it. (Maybe I would have to write my custom legendMarkerRenderer.) Could anybody give any pointers? There aren't many examples on the net regarding this. Thanks in advance! P....

Catches in upgrading from Flex 2.0.1 to Flex 3.*?

I ask this question in the hope of collecting all the incompatible changes/bugfixes in Flex 3.*, of which the maintainer of a Flex 2.0.1 application needs to be aware before upgrading. I'm thinking of issues of the following nature: Bugs in 2.0.1 that had had some workaround, and have been fixed in 3.*, rendering the workaround not onl...

Flex Tree Properties, Null Reference?

I am pulling down a large XML file and I have no control over it's structure. I used a custom function to use the tag name to view the tree structure as a flex tree, but then it breaks. I am guessing it has something to do with my other function, one that calls attribute values from the selected node. See code. <mx:Tree x="254" y...

loosely coupled Flex 3 sibling components

I am creating an application in which I have two mxml components, MainPanel.mxml and TextPanel.mxml, that are contained in a parent application called index.mxml. When I type something the textbox that exists in TextPanel.mxml, I want to be able to bind this data to a label that exists in TextPanel.mxml. I know this can be accomplished b...

How to execute an Ant task only when source files have been modified?

There must be an easy way to do this. I build a Flex app using ant that depends on a SWC library, which works fine except that it rebuilds the library whether it needs to or not. How do I tell ant to only run the task if any of the sources files of the library (*.as, *.mxml) are newer than the SWC? I've looked at <dependset> but it ...

Flex: Dynamically create a preview image for a video....

I'm using the VideoDisplay to play flv's, mov's, and mp4's and everything is working great. They are all being loaded via progressive download and are not being streamed. What I'd like to do is to grab a single specified frame (like whatever is being shown at the 10 second mark), convert it to a bitmap and use that bitmap as the previe...

How to read the security settings for webcam/microphone in flex?

I'm working on a flex application which needs access to the microphone. By default, the security preferences show up when our application tries to access the mic, but we would like to know what the value of these settings are before the mic is actually being used for recording. This would enable us to display help to the user, for inst...

Upload arbitrary data in HTTP Post in Flex

We currently have a Java applet that generates a lot of data and uploads it to our servers. One of the upload methods we have is to use an HTTP POST to our server, the contents of which are just the raw data (no multipart encoding or anything). I'm looking at implementing a Flex app that does the same thing, but I don't see a way to du...

Error with mx:Remoteobject

I'm building a Flex/PHP application. I have put some charts on my page and I want them to be getting data from a database. Looking at mx:RemoteObject, it seems as if I need to have a query to select the records (in PHP code) and call that method. Nothing difficult (I've posted links on how to do this below), but this line keeps throwing...