flex

Flex:Browser Refresh Issue

Hi, I was working with my application which shows login first time and goes to the second screen after successful validation. But there is a problem occurs when browser get refresh by F5 or browser button the application gets reloaded and shows the very first screen i.e. the Login screen. How to avoid this, I mean irrespective of brows...

Flex: image scale stopped working after deploy to server

I have some code to scale an image's width according to its height after the image is being loaded. It works fine on my development PC if I point to the wrapper html using local file system path. However, after I deploy the web application to JBoss AS 5.1, it stopped working - it always sets the image width to 0, causing it to disappear....

How do I get a strongly typed collection from BlazeDS?

I've exposed a Spring bean to my Flex app via BlazeDS. In my Java code I return strongly typed lists. e.g. public List<Folder> getFolders(String path) { return dao.getFolders(path); } The Flex app receives the data as an ArrayCollection of AS3 Object instances - i.e. not as a ArrayCollection of Folders which is what I want. I've a...

Flex Datagrid Drag and Drop into Cell

Hi all, I am creating an application that will allow users to model configuration information by allowing them to Drag and Drop objects from a Flex Tree into a DataGrid. I know that both the Tree and DataGrid both support Drag and Drop quite well. My problem is that I want users to drop items from the Tree into a particular Datagrid ce...

Datagrid - Stop event HEADER_RELEASE when push headerRenderer checkbox

Hi, i have this code in flex: <mx:Application ... > .... <mx:DataGrid id="filtros" styleName="grid" rowCount="10" dataProvider="{_larcFiltros}" allowMultipleSelection="true" > <mx:columns> <mx:DataGridColumn dataField="titulo" textAlign="left"> <mx:headerRenderer> <mx:Component> ...

Flex Chart : Customize Horizontal Axis According to Range

I want to build a LineChart with many data. The horizontal axis correspond to the date, but I am not able to find out how to customize the horizontal axis label. With this code, the chart display all the date on the axis and it's not readable. How can we customize the label so it displays only several points on the axis gradually...

FlexPMD - Override Phase & Goal

I have integrated FlexPMD into my pom.xml file but I need to change the phase & goal in which the plugin is run. Currently it runs in the site phase but I need it to run in the test or compile phase. Is this possible? My plugin code is as follows: <reporting> <plugins> <plugin> <groupId>com.adobe.ac</groupId> <artifactId>flex-...

Why is iconField ignored for branch nodes with the Flex Tree component?

I'm using the iconField property of the Flex Tree to dynamically set the icon that a node should use. This works fine for leaf nodes but for branch nodes it doesn't seem to respect my iconField and instead just shows the default folder node. Here's a simple repro: <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absol...

Adobe Air - Read updates to File with FileStream

I'm trying to get two different apps to communicate through a file. I would like app 1 to append some text to a file, and app 2 to notice, and read the new bytes (not the whole file). There is an event, ProgressEvent.PROGRESS, that is supposed to fire when new data is available on a FileStream, but it only fires when I first open the f...

create components dynamically

Hi, I have requirement in AdvancedDataGrid. In Advanced Data Datagrid with columns checkbox,textfield, textarea,button,radiobutton. and ADD Button and SUBMIT Button. When i click on ADD Button, those above all fields are need to add dynamically in next row.If i click 10 times on ADD Button, 10 rows with all above fileds need to be adde...

Flex: force display of control's errorTip (error toolTip) on validation failure

When a Validator (i.e. StringValidator, NumberValidator, etc) dispatches an invalid event due to validation failure, the errorString property of the source control (i.e. TextInput) is set to a non-empty string which creates a red border around the control and shows an toolTip (errorTip) ONLY when the mouse hovers over the control. Quest...

Flex TileList control, image loading issue

I have a flex 3 TileList in wich a load several image (employee's headshot pictures). The image I'm loading in the TileList are stored in a DataBase (I use the ByteArray class and a Base 64 encoding to store the images in the DB). When I load the images in the TileList from the DB, there is no problem they are displayed correctly, but ...

Video or VideoDisplay in Flex: when does it make sense to use one or the other

Flex appears to have 2 video classes: Video and VideoDisplay. My question is when does it make sense to use one or the other? What I can tell from initial glancing is that VideoDisplay responds to mouse events because it inherits from IntaractiveObject, but I'm not sure if it's a real difference, because Video seems to have a workaround...

How can you delete a file in the application directory?

We are writing log files to File.applicationDirectory and want to clean out old log files. The question is how do you delete files out of that directory? When I try and delete old log files out of this directory it gives a security exception. Is there anyway around this? I know you are not supposed to write to File.applicationDirecto...

File Upload in flex

private var fileRef:FileReference private function doCreationComplete():void { fileRef= new FileReference(); fileRef.addEventListener(Event.COMPLETE, completeHandler); fileRef.addEventListener(ProgressEvent.PROGRESS, fileRef_progress); fileRef.addEventListener(Event.SELECT, doSelect ); } public function doBrowse( event:E...

read content of file with php and send to flex via amfphp

Hi I am creating some application in flex and one of my purposes is to read content of file and display it in flex. There is huge problem, when I have file written in polish (which contains some special characters) because amfphp transfers this contents few seconds, which is to long (reading and sending content of file without any polish...

Action Script 3 code design question

I have a simple flex3 project with and mxml file (with some as inside of it) and FMSConnection.as I have something like this public class FMSConnection extends NetConnection { //this methods is called from the media server public function Message(message:String):void { //how to display (add it to a textarea) this mess...

Flex + PHP: Flash Builder 4 vs. Eclipse

I'm getting started with Flex and initially installed the Adobe environment (Flex Builder 3) and later found out that they're starting to call it Flash Builder 4. Anyway since I'm very new to this technology and I have to leave Flex Builder 3 anyway, I'm trying to find out if there are any advantages to developing with Adobe's Flash Bu...

how to use the Function type in AS3 (var f:Function) for a method f(s:String)

i have a class that has something like this public class Foo { public var f:Function; public void method(s:String) { f.invoke(s); } } so i need to assign to the f a function that takes an argument f(s), something like myFoo.f = thefunction function(s:String) how to do all this, so it will work correctly ? ...

Problem modulating action script project

I am refactoring a hugh action script solution in Flash builder (beta 2) using the flex 4 sdk. The project does NOT use the mx framework. What i want to have is: A big 'MAIN' project several small 'MODULE' projects. each 'MODULE' class refrences the 'MAIN' project as an External reference (doesnt compile into swf) - this is done by se...