flex

Background image that shows when list is empty in Flex

How would I display a backgroundImage on a List when the List is empty? At the moment the list is populated when items are dropped inside after a drag-and-drop but I would prefer a solution that checks for any change to the data to determine if the list is empty. The List inherits a backgroundImage from its ScrollControlBase but what w...

Remote Objects not working with Modules

We have some Modules which have their own remote objects configured in remoting-config.xml. Each is packaged and deployed as separate web archives (WAR). For ex. Module1.war, Module2.war. We are trying to integrate them in a flex application which is deployed in a separate web app. For ex. MainApp.war. The remote objects work fine wh...

Debugging AxShockwaveFlash

I'm building a C# app which contains an interactive Flash control via AxShockwaveFlash. One of the challenges is that while I am using the Eclipse-based Flex Builder to develop the Flash controls, it only seems to give me the ability to debug the Flash control if the movie is being run standalone, directly through the Flash player. I m...

Flex How to organize embeded resources

Hello. How to avoid having embeded metadata everywhere in source code(.as or .mxml)? I have found two approaches: 1. Embed everything in css. But it is kind of difficult to extract from there: var soundCSSClassDec:CSSStyleDeclaration = StyleManager.getStyleDeclaration("MySound"); var MySoundClass:Class = (soundCSSClassDec.getSt...

Flex Builder: How do you run multiple "Export Release Build..."

So, what I have is a Flex application that is comprised of about 20 modules that are loaded at runtime. Each module is it's own project in Flex Builder and what I'd like to do is have some way to create a release build of all of them without having to go to each project and selecting Project->Export Release Build... How can I do such a...

Is there a lightweight datagrid alternative in Flex ?

What is the most performant way of displaying a table of data in Flex? Are there alternatives to the native Flex Datagrid Component? Alternatives that are noted for their rendering speed? Are there other ways to display a table? I have a datagrid with roughly 70 lines and 7 columns of simple text data. This is currently created and lo...

flex textflow text highliter

Hi, I have a flex datagrid in my application. In that I have a itemrenderer as textflow on canvas. Now I would like to implement Find/Replace functionality on the itemrenderers of the datagrid. Thanks in advance. ...

How do I get the server endpoint in a running flex application?

I need a way of getting the active server address, port, and context during runtime from my flex application. Since we are using ant for our build process, the server connection information is dynamically specified in our build properties file, and the {server.name}, {server.port} and {context.root} placeholders are used in the services...

How can I reliably detect if Flash was the originator of a request to a service?

I need to be able to detect if flash was the originator of a request to an ASP.NET service. The reason being that Flash is unable to process SOAP messages when the response status code is something other than 200. However, I allow exception to bubble up through our SOAP web services and as a result the status code for a SOAP server fault...

EJB and FLEX

I'm working on a new application using EJB3 -> BlazeDS -> Flex. I can't find good example to see how to integrate EJB with BLAZEDS. Can someone give me some pointers on how to link them together. ...

flex air include a directory with the installer

Hi, I am creating an AIR application using Flex. In it I need 2 directories downloads & uploads. These directories will have downloaded files & uploaded files. But the problem is I am not able to create these 2 directories programmatically & also I am not able to include the 2 directories with the installer in the application directory...

How can I setup my BlazeDS implementation with Log4J?

Hi there. I'm writing a Flex app on top of a Java web application using BlazeDS. BlazeDS has logging inside of it, but I want to set it up to Use the same logging framework I have in my application. Is there a way to setup BlazeDS to use Log4J? Or am I stuck with the Flex logging stuff that's already baked into BlazeDS? ...

Bind dataprovider DataGrid to an Array

How do you bind the dataprovider of a DataGrid in Flex to an Array? This doesn't seem to work: <mx:DataGrid id="valuesDataGrid" editable="true" width="100%" height="100%" dataProvider="{_metaDataKey.values}"> ... [Bindable] public class EnumMetaDataKey{ private var _values:Array = []; public function get values():Array { ret...

Disable WindowedApplication Resize in Flex

I'm trying to make it so the WindowedApplication in Flex is not resizable. However, resizable is a read-only public variable for the class. How do I make it so the user cannot resize the Flex application (running in Adobe Air)? ...

flex datagrid focus cell

Hi, I have a datagrid in which a column s having cusomized itemRenderer(textflow on canvas). Now I want to perform find text operation on each cell's textflow. For that I able to do find text operation on a focused cell. But now my requirment is to find the the text in all. Thanks in advance. ...

New to FLEX - translating asynchronous comms from Java

Hi, I'm currently translating a Java project to Flex 3. A large part of the project involves asynchronous communications. The program will connect to a stream, start downloading data. Shortly after connecting, it will need to download context data in the same format (a keyframe) by HTTP. At various points during the stream or keyframe,...

Flex & WCF - Enum problem

I have a WCF service operation that accepts a data contract parameter of custom type MyQuery -- function Search(q as MyQuery). The MyQuery object contains 2 properties: MyQuery.SearchPhrase (string) MyQuery.SearchType (custom enum SearchTypeEnum) I also have a Flex client application that consumes this service. But when Flex invokes ...

In Flex, how can I get the dimensions of a childless canvas component at runtime?

One of my components looks like this: <mx:Canvas id="grid" width="100%" height="100%"></mx:Canvas> On creationComplete, I load some spirte that I want to scale and position based on the dimensions of the canvas to create a custom grid layout, but when I access the dimensions of 'grid' I get 0 and 0. Is there any way to get the dimensi...

How to call REST-style service, protected by integrated Windows Authentication from ActionScript 3?

How would I connect a Adobe Flex/AIR based application to REST-style services hosted on a web site protected by integrated Windows Authentication? From my experiments, that the call is successfully made (by using the HTTPService class), the request is received successfully by the web server (in this case, I'm using ASP.NET MVC), but th...

Flex event handling

I have added an event listener for a particular event, for e.g. CollectionEvent.COLLECTION_CHANGE. Inside that event listener, based on a certain condition, I want to call the default event handler for that event. How is it possible? One way I can think of it is : Inside the event listener : If(Condition) { Remove event listener ...