I am using puremvc framework for developing flex based project. My question is related to what is best way to delayed registering proxy class and mediator class ?
Currently on startup command I am registering startup mediator.
My code has :
ApplicationFacade.as
StartupCommand.as
StartupMediator.as
LoginCommand.as
LoginMediator.as
Logi...
Hi
i have a component with different states, when i assign some value in another state, i get a runtime error [null]
How can i load all the states at once? using creationpolicy or anyther way?
In TabNavigator, creationpolicy=all solves that problem, but how to solve this issue when there are many states?
Thanks
...
I am trying to implement a find feature on a list.
In the action script method to implement the find, I'm trying to loop over the contents of the list.dataProvider and get the contents of the labelField which is dynamic. Is there a way to use the contents of a variable to get the field out of a ObjectProxy. I see that ObjectProxy ha...
Hello!
I made a Form container with few TextInput fields in Flex and I would like to change a style of clicked TextInput element. I managed to do it with MouseEvent.CLICK event listener but it is not what I expected.
I would like to change style of TextInput when user try to edit that field. However, I want to change back to 'default' st...
I want to constrain the height of a flex component to the height of the browser viewport.
The component's children are populated from a database table using a repeater, and are basic checkboxes. There are enough of them that the flex app ends up being about twice the height of the screen, which means some of the rest of the layout goes...
Suppose you have
private static const INCLUDE_MY_DEBUG_CODE:Boolean = false;
public function runMyDebugCode():void
{
if ( INCLUDE_MY_DEBUG_CODE )
{
callADebugFunction();
}
}
private function callADebugFunction():void
{
...
}
Given there is no other reference to callADebugFunction, will it be guaranteed that c...
Hi guys.
Yes there is a question like this one, but there is no activity and no answer.
I want to load data from a external XML file, using a HTTPService, and on the ResultEvent of the same HTTPService i want him to populate a ArrayCollection with the data from the XML.
I think a ArrayCollection is the ideal for this XML. but I'm open...
Hi All!
I’m at a very basic level with Flex and with programming in general. I am working on a project where I have data in an Excel (.csv) format, it’s a large Excel plot/matrix where each cell has a temperature number. I want to import this matrix into Flex somehow, or parse the data in Flex, so that this matrix turns into an interact...
I am implementing a multiple file upload using Adobe AIR which loops through a text file and uploads all file listed in the text. I am using file.upload() since I need to post some parameters along with the file. I am doing the next file upload at DataEvent.UPLOAD_COMPLETE_DATA listener of fileupload().
At a random time in the loop, the...
I have a simple component I created which I instantiate in my main program like so:
newMessage = new MessageDetail();
newMessage.body.text = "Hello World";
I receive the error "Cannot access a property or method of a null object reference" on the second line because newMessage was not fully created prior to hitting the second line of ...
Hello guys.
I experimenting with Flex Styling, and i came across a alignment issue.
I have two image components inside a HBox, and the HBox inside a Canvas, which in turn is inside the main Application.
<mx:Canvas id="Navigation"
horizontalCenter="0"
bottom="0"
left="0"
right="0"
visible="true"
height="40"
styleName="transparen...
I have a question about HTTPService and the data it returns.
Well lets consider this XML:
<PhotoGalleryData>
<Photo>
<id>1</id>
<name>Summer Vacation</name>
<description>In vacation</description>
<fullImage>originalImg/1.JPG</fullImage>
</Photo>
<Photo>
<id>2</id>
<name>Winter Vacation</name>
...
I am using a GroupingCollection to bind my advanceddatagrid. I have used groupingcollection to group the data by date.
Now I need to select the data in the datagrid through the code. Does anyone have any idea as to how to do this? I need to loop through the adg's dataprovider and select the item that matches the criteria for the selecti...
I was able to set the text color of a selected LinkBar button by "disabledColor" style of LinkBar. Accordingly, I expect to set the background color of the selected button by "backgroundDisabledColor" style, however, it didn't work; and except "backgroundDisabledColor", I didn't see any other style that could possibly achieve this. Pleas...
I have a dynamic layout, where an image is loaded into an HBox:
<mx:HBox ...>
<mx:Image height="100%" .../>
</mx:HBox>
only the image's height is set on the image, so that it can take all the vertical space available, while its width is left undefined and I expect the width to scale accordingly with its height.
It turns out that ...
I have to change the "Yes" and "No" buttons in an Alert.show(..), to another language (Dutch, for instance).
Is there a (easy) way to do that?
I forgot to mention - I have a -locale nl_NL in my compiler options, but it is still Yes/No
...
In a Flex application I'm building I have an Accordion with a Tile component as shown:
<mx:Accordion id="accordionShoppingBasket" width="100%" resizeToContent="true">
<mx:VBox width="100%" height="100%" >
<mx:Tile id="tileOutNow" width="100%" height="100%" horizontalGap="12" verticalGap="30" paddingLeft="20" paddingRight="20" padding...
Hi all
I want to hide the pop-up dialog box when I invoke the download method and set the download destination path to be constant constant , in other words, I want to set the location where I wanna the file to be saved in advance .
Is this possible , any help in extremely appreciated.
thanks in advance
...
I have an ADG along with some other components in a VBox. The number of rows of items in the ADG is variable. I want the height of the ADG to be however tall it needs to be to show all the rows without scrolling. This is because I want the containing VBox to handle all the scrolling.
The reason being, is because sometimes there is a ho...
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....