flex

Problem with pulling out icons from resource bundle in Flex

Hi everybody, I'm having trouble with getting icons from resource bundle in Flex. Here's the scenario: Directory structure looks like this: -ResourceManagerTest -resources -icons -icon1.png -icon2.png -icons.properties -src -MyButton.as -ResourceManagerTest.mxml In icons.properties I have: CIRCL...

format the number

Hi how to decrease the number of digits before decimal point in action script. for example 10000 means it prints only 10 and 12345=12; 90000=90; ...

RTSP in Flex

We are currently working on a Flex application that needs to connect to a set a traffic detection cameras via RTSP. Being totally new to the world of video streaming in general, I was wondering if that is possible. AFAIK it is not possible to consume an RTSP feed in the Flash player, so I'm thinking that we would need some sort of a con...

Why might gwt be getting more popular?

I've noticed a dramatic increase in GWT popularity during the past 6 months. More evidence can be seen here: http://www.indeed.com/jobtrends?q=gwt&l= Can someone explain the cause? ...

Flex: Expand AdvancedDataGrid Tree Column programatically

Does anyone know how to programmatically expand the nodes of an AdvancedDataGrid tree column in Flex? If I was using a tree I would use something like this: dataGrid.expandItem(treeNodeObject, true); But I don't seem to have access to this property in the AdvancedDataGrid. Thanks for your help! ...

Recreate a Flex 3 scene

Hi, Does anyone know how i can reset/reinitialize a state in flex 3? Let's say I have the following code: <mx:states> <mx:State name="Scene1"> <mx:AddChild> <Scenes:Scene1 id="scene1"></Scenes:Scene1> </mx:AddChild> </mx:State> <mx:State name="Scene2"> <mx:AddChild> <Scenes:Sc...

Cubic curve area charts in Flex, is it possible?

an example would be the filled cubic curve charts that pchart can create: http://pchart.sourceforge.net/ is it possible to recreate something like this in flex? ...

How to use C# with AIR?

I have some basic experience in making Flex sites, but I think I have more use for Flex in making a desktop AIR application. Anyway, I was wondering if it is at least possible to use C# alongside Actionscript/AIR? I can't find any example of this. Also, can I use custom Flash components in a Flex app? I know I can use Javascript compon...

Can't call EJB from FLEX (BlazeDS)

Right now I'm playing with Flex and Java integration and trying to access EJB3 methods by clicking Flex button but it's giving me null pointer error. Here is what I have in my code: [Controller:] public class homePageController { @EJB CategoryFacadeRemote categoryFacade; public String populateDBWithXMLData(){ Ar...

Flex: Points to pixels and back again

So I have extended the PlotChart that comes with Flex to have the ability to draw trend-lines. To do this, I have to get pixel positions. How can I convert (100px,100px) in pixels to a point on the graph, such as (0.7,1.0)? ...

Compiling flex modules into swf with other mxml files in ant

I have a huge project with many mxml and as files and am trying to compile them all into one working swf file using ant. However, I'm having trouble compiling main.swf correctly in ant. It doesn't seem to be pulling in the necessary modules, all of which are located in separate folders within the main src folder. It will compile with...

SWF is not a loadable module

We are creating an app that uses modules which are dynamically loaded into the main swf. The problem we run into, is that we are unable to load the modules located on a test server when we are debugging the main app locally. The error we get is "SWF is not a loadable module". I looked this up and found out that we need a crossdomain fil...

Flex Coldfusion CFC location

I'm a Coldfusion developer looking to break into Flex. I have a couple test Flex applications i'm working on, but am having problem connecting to my CFC's. I've tried creating mappings in CFAdmin, putting the CFC in the same folder as the Flex app, putting the CFC in the C:\Coldfusion8\Gateway\CFC folder, all to no avail. Each time, I...

AdvancedDataGrids not synching properly when columns are hidden/shown

Hi, I have a advanceddatagrid(ADG1), which is being populated from the query to Database. I have another advanceddatagrid(ADG2), bound to this datagrid. ADG2 basically contains only 1 row, which has exactly same number of columns as the ADG1. The row has details like, count of items in the perticular columns, sum of the records of the p...

Flex 3 - Equals sign (=) in TextInput control Is displaying as a plus sign (+) in Firefox

When I deploy my Flex application and browse to it in Firefox (3.0.8), typing an equals sign into a TextInput control results in a plus sign. In Chrome and IE, an equals sign works as expected. Also, when I run the Flex project locally in Firefox, the equals sign works properly. I have tried deploying the SWF on a different server...

Limit modal size of a "PopUp" in Flex?

I have this : private function tileList_itemClick2(evt:ListEvent):void { img = new Image(); img.maintainAspectRatio = true; img.addEventListener(Event.COMPLETE, image_complete); img.addEventListener(ResizeEvent.RESIZE, image_resize); img.addEven...

Flex: Setting "Server Type" ...why?

Whenever I make a new Flex project it always asks me "Server Type". So far I have always checked "none", Although my server type is PHP and I usually access .php scripts to get information from data-bases just fine with server type not set. So what is server-type for? what does it do for me? if I can get some extra benefits from it I wan...

Can you have multiple groupings of axis labels in Flex?

I'm trying to build a column chart that has groups it's data by quarter, then by year... | Q1 | Q2 | Q3 | Q4 | Q1 | Q2 | Q3 | Q4 | | 2008 | 2009 | I have been unable to find any examples of this in the flex docs. Is this possible to do in Flex 3? ...

Formatting AdvancedDataGrid Cells

Hi, I have a quick question about rendering the advanceddatagrid cells. I need to programatically color the cell of the datagrid based on the conditions. Lets say, the stock quotes. If there is an increase from the previous day, I need to have the cell colored in GREEN and in RED, when there is a decrease. Now, the important part here...

Graph drawing library for Flash

I have a bunch of numeric stats data gathered over time. I need to show it as a line graph to user in a HTML page. I want to render graph on client. It would be perfect if graph would be interactive (allowing user to scale, scroll, toggle graph lines visibility etc.). Is there any decent free graph drawing library for Flash / Flex (or...