flex

Resizing Image from a decoded ByteArray

I am trying to display a bytearray as a resized image. The Image is displaying correctly, but the sizing is off. Let me explain. First I have the image data encoded so I need to decode the image data // Instantiate decoder var decoder:Base64Decoder = new Base64Decoder(); // Decode image data decoded.decode(picture.data); // Export data...

Flex DataGridColumn id missing?

Hi, I am creating a Datagrid dynamically in AS3. In MXML it is valid to write: mx:DataGridColumn dataField="abc" id="testColumn" in AS3 however, I can not use the property "id", it is not found. Any ideas? var dgc : DataGridColumn = new DataGridColumn(); dgc.id = "testColumn"; (NOT WORKING) Thanks, martin ...

Rails 2 + SQLite 3 - can ID field be zero?

My problem: I'm writing a flex frontend to a rails app, and I'm having problems in managing NULL database values.. so to avoid problems I just don't allow NULL. Now, for foreign keys, would 0 be fine? No chance that a record be assigned ID 0, right? Maybe I could somehow tell rails to skip foreign key updates if input is 0.. ...

Compiling MXML files into multiple SWF files using mxmlc compiler

Hi, I have a few mxml files that I want compiled into their respective SWF files using a configuration file. At the moment I can get 1 mxml file compiled into it's respective SWF file by using the file-spec attribute in the configuration file but how would I go about compiling multiple mxml files at once? Do I have a separate configurat...

Having difficulty updating object properties in basic actionscript program

I'm still working my way through some pretty basic Actionscript programming (in Flex), and I'm getting a little caught up with events and object properties. I've got 3 files below, one application and two components. The basic goal is very simple - start out with two location canvases and one player canvas. When clicking in one locati...

Flex mx:axisrenderer How do I prevent the labels from being scaled.

Hi there, I have a line chart that sometimes contains a number of data points. I have solved how to prevent the horizontal axis from displaying too many labels using custom label functions and data functions. My problem is forcing the AxisRenderer not to scale down my labels. I'm using the labelRotation property so the canDropLabels a...

Flex Button with one color on left & another on right

I have a Flex button. I need one color on the left and another on the right. I don't need it to be a gradient. Just solid colors. Like green on left & red on right. I really don't want to use an image -- just because it'll probably take me a long time to do it. The gradients via Flex Properties in Flex Builder seems to apply only vertic...

full screen view of flex application

I want full screen view(through code,without pressing F11) of my flex application.Can you please help me? ...

FlashDevelop (Flex/AS3) and localized compiler messages.

I am completely new to the whole FlashDevelop/Flash/etc toolchain, but wanted to do some experimenting. I installed FlashDevelop and Flex SDK on my laptop, and thinks worked out just fine, except for one thing: the compiler messages are localized! Messages like "gebruik van een niet-gedefinieerde eigenschap" (Dutch.. sort of) are limit...

Turn off a particular warning in Flex Builder 3?

I keep getting this warning: warning: unable to bind to property 'image' on class 'XML' (class is not an IEventDispatcher) Is there a way I can turn off this type of warning (but keep the others) as it is driving me crazy when I try to trace something else. Thanks. ...

Flex: Caching images in list item renderer?

I have a List and the item renderer displays an image. Whenever you scroll the list, and the item renderer refreshes, it redownloads the image. Causing there to always be a delay. Is there some way of caching it so it doesn't have to redownload every time causing a delay in showing the image every time you scroll the list? Thanks! ...

Can Flex wrap Java applets?

I'm just learning about Flex and I'm loving it. Unfortunatly I still have to make the decision on which RIA technology to use and its dependent on, among other things, from the following case: How can we wrap a java applet around a Flex application? More specifically, I would like to wrap/integrate NASA's World Wind applet in a Flex pan...

Understanding remote shared objects in Flex and ActionScript

Hello I have 2 questions about remote shared objects in Flex/ActionScript3: 1) If I connect to a remote shared objects, but do not handle the SYNC event, will the shared object still receive data from the server? ie. will the server still broadcast data to this client ? This is what I expect, but please let me know 2) Is the entire ob...

Adobe Air windows that don't show up on taskbar (I dont mean UTILITY or LIGHTWEIGHT)

I want to create a new Adobe AIR window from my application. I want the new window to be a normal new window but not to re-size, minimize, or maximize but I also don't want it to show up on the task bar. In other words, I want it to be like a browser's alert window. Look carefully when you look at one of those, the type of window is not ...

Is it possible to use conditional operator in checkbox using flex ?

I want to fill color based on condition so I used conditional operator for the checkbox. But it's shows the error Implicit coercion of a value of type String to an unrelated type Array. What did I do wrong ? How can I dynamically change the color of a checkbox ? <mx:CheckBox id="home" enabled="false" fillColors="{(data.actualwin != '...

Is there a program that uses static analysis to look for bugs in actionscript code?

Is thre any program which uses static analysis to look for bugs in actionscript code? ...

Error in getting values from XML file to array Collection in Flex

I am trying display values in a datagrid in my application. I have all the values as an xml file. I had only one set of record n the XML file, to fill only one row of the data grid. While trying to store the values from the XML file to an Array Collection in the application File using the code, i.e., <mx:Model id="reviewList" source="...

Difference Flex/Flash NetConnection and Consumer/Producer

What's the difference between a NetConnection and Consumer/Producer in Flex? It seems that they both use RTMP but Consumer/Producer uses Channels and NetConnection does not. Does the Consumer/Producer uses a NetConnection underneath? ...

How to call a mxml component from another mxml component in flex-edited

I need to call a component named "defectTracker.mxml" by clicking a link in another mxml component called "reviewComponent.mxml". How do I achieve that? This is my reviewComponent.mxml code: <?xml version="1.0" encoding="utf-8"?> <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" hori...

Flex 3 ,ASP.NET and WCF

I want to create a web app. I want to use WCF for distributed transactions, ASP.NET at the middle, and because Flash is so popular, I want to write the front end with Flex3. Does that sound like a good architecture to you ? are there any benefits including WCF ? Can Flex interact nicely with ASP.NET ? or should I go Silverlight ? ...