flex

Best Practices for large Flex apps?

I'm in the middle of creating a fairly large flex application, and over time, it's started to edge toward unmaintainability. I'm using 3 external library projects which are still small enough to remain maintainable and reusable, but the main project seems to be impossible to keep organized. Part of the problem seems to be that I ha...

flex application resets connection when using XmlSocket

I am flex newbie and I am trying to get the example given here :http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_5.html I am using the same java server given there. and I am creating the XmlSocket in a flex air application. When I run my air application I get a java.net.SocketException connection...

How to deploy a flex+java+blazeds application ??

Hi, i have a problem, I developed an application using flex+java+blazeds with tomcat that provide flex enviroment. I want to deploy my application using tomcat but I can't, how can I deploy my app? ...

ASP.NET+Flash FMS Chat Application

Hi, we have build live chat application with Flash/FMS front and ASP.NET/MSSQL backend. All the changes sent via http GET to certain page which updates MSSQL status. My questions are : 1.What reason to use webservices instead of simple GET requests and Response.Write() ? Why it is easier and in what it is better ? 2.How to prevent fro...

Can a flex app (or a portion of a flex app) be made transparent to mouse clicks?

I need to superimpose my Flex app above a plain HTML control on a web page, and be able to click through the Flex app to interact with the HTML control. Is there any way to do this? No permutation of mouseEnabled="false" or mouseChildren="false" seems to have the desired effect. Context: trying to integrate Google Earth API (JavaScript/...

[FLEX] Always resize the viewStack

Hi, I'm facing one weird problem : I'm using a viewStack which have is property resizeToContent set to true. When I'm selecting a child higher than the viewStack, it's correctly resized, but when I'm selecting another child which is smaller, the viewStack isn't resized !!! What I want is that my viewStack get the height of the selectedC...

How do I get hyphens in my attribute names in Flex?

Flex has an issue with hyphens in xml. I need to generate an xml object with hyphens in the attribute for a Google Checkout implementation. I can get away with: var xml:XML = <item-description/>; and var xml:XML = <item-description the-name="foo"/>; but what I need to do is set the value of an attribute like this: var timestamp:...

Flex: Why doesn't mx.core.Container always use the 'contentPane'?

Why is it that the mx.core.Container uses its contentPane sometimes, but doesn't at other times? Or, in other words, how come the children of Container are only put into the contentPane if some complex logic decides that they should be put there? Why not simply always put all children in the contentPane? ...

How to implement a web app with blazeds+java+flex+tomcat?

Hi, i'm doing a web app in flex blazeds and java, i installed the eclipse plugs for using WTP mixed project, i use the flex's server that uses an emulate of tomcat when i ran my flex service the web app got the datas, everythings is ok. the problem is when i copy the proyect with all files generated by flex in my tomcat or the blazeds's ...

DataGrid Column names don't seem to be binding

Sort of a Flex newbie here so bear with me. I've got a DataGrid defined as follows: <mx:Script> ... private function getColumns(names:ArrayCollection):Array { var ret:Array = new Array(); for each (var name:String in names) { var column:DataGridColumn = new DataGridColumn(name); ret.push(column); } retur...

FLEX components: updating import statements to move the component into another folder

hi, I've just imported a Flex component into my project. I have a theory question about importing. all the imports statements in the component source files started with "com.subFolder.etc", but I have preferred to move the component folders into "componentName" and to replace all import statements as "componentName.com.subFolder.etc" ...

Flex Dataprovider caching issue.

I have two combobox controls. If i change combobox A then I am reading from xml and populating combobox B. The xml is loaded into memory in Application's creationComplete method. When I select values in combobox A and then open combobox B, I am seeing the values correctly, but when I deploy it on the server in a different machine (which...

Flex DataGrid mouseover row with gradient background

I have a DataGrid that needs to show a gradient background on mouseover of the row. I have created itemrenderers for each of the columns and the gradient shows up for the individual cell that is moused over, but not for the whole row. How do I get the whole row to show the gradient when mousing over one of the cells? ...

How can I implement auto class discovery at runtime in as3?

I have a bunch of classes that are to be serialized. flash.net.RegisterAlias() makes this easy, but I'd rather not have to make a list of the classes to register. I'd rather have an autodiscovery mechanism that will find all the classes to register and do so. Is there a good way to implement autodiscovery of this kind in as3? ...

Flex: replace all spaces with comma

im new with regexp, so can i ask for some assistance Using string.replace function what code that can replace spaces with comma Input:The quick brown fox jumps over the lazy dog. Output:The,quick,brown,fox,jumps,over,the,lazy dog. Thanks ...

Programmatic skins in Flex

Hi, I am having 2 problems creating programmatic skin for Canvas. First problem: I would like to have background with rounded corners and I am using GraphicsUtil.drawRoundRectComplex in order to have round corners for only the upper two corners. The problem is that drawRoundRectComplex takes for each corner one single parameter - the ...

invalidArgumentError: Error #2015: Invalid BitmapData

the error is ArgumentError: Error #2015: Invalid BitmapData. at flash.display::BitmapData/get width() recently i write code in flex to upload a image in canvas and modify it. first i convert the image bitmapdata then use it. but problem is after upload some image the above error display. the process can't get the width or height ...

PHP can be exclusively accessed by SWF

I'm not sure how to describe this, but basically I have a PHP class file: class HelloHello { public function getSomeData($input_parameter){ // code to retrieve data from the database } public function deleteSomeData($input_parameter){ // code to delete data from the database } } This class is on the server and ...

How to Force a Flex Chart to Redraw During Runtime

I have a column chart that uses a label function to format the vertical axis. I added a button and want the axis (or chart) to redraw when the button is clicked. Right now, the chart axis renders OK only when initially added to the view state. I have a function that sets various properties after the chart is initially created. In there,...

[Flex] How to open a menu automatically with a shortcut ?

Hi there I have a MenuBar which contains general menu items like File, View, Tools ,Help. I have sub items in each of those menuitems. The problem is that i want to open the 'File' menu automatically when i press Alt+f key. I could capture the keyevents on the view. But how to open the File Menu of the MenuBar (what is the function t...