Flex :: Layout - Changes Made To Single State
Jul 27, 2009
I was modifying the layout of a Flex application in Flex Builder. What I didn't realize was that the changes I made, were made for a particular state. There are around 6-7 states in my application. Now, I need those changes to be made to all of those states. How do I do it? As of now there are multiple lines like this in one state :
<mx:SetProperty target="{accno}" name="x" value="116"/>
<mx:SetProperty target="{accno}" name="y" value="826"/>
<mx:SetProperty target="{phone}" name="x" value="116"/>
<mx:SetProperty target="{phone}" name="y" value="866"/>
View 1 Replies
Similar Posts:
Apr 9, 2011
It's my understanding that view states can be useful when switching the layout of design elements. Such as, a loading page as one state and the main application design in another state. Is this the correct use of them? Additionally, I have a label in State1 and I cannot figure out how to access that label via actionscript. labelID.text = "New Text"; is not working.
View 2 Replies
Mar 30, 2012
I'm using Flex 4.5 and trying to take advantage of the new state groups feature. I have two States (call them readType1 and readType2) that both belong to the same stateGroup (call it readOnly). There are several places where I'd like to do something based on the current state, and it would be the same thing for the two read states. [code]...
View 1 Replies
Jul 25, 2009
In my air project i used current state size is width="441" height="358" . i have link button like Singin then move to singin state (currentstate='singin')
<mx:State name="signin">
<mx:SetProperty name="height" value="616"/>
<mx:SetProperty name="width" value="919"/>
So application resize into 616,919 . After that function finished move to current state like(currentstate='') But size not be changed . How can i set the size for current state?
View 1 Replies
Jan 27, 2010
I want to fade all the elements of the next state when transitioning from any state.I tried different things but I can't get it to work. And I don't want to manually add transitions for every state.
Something like:
<s:Transition fromState="*" toState="*">
<s:Fade target="*" duration="500" />
</s:Transition>
View 2 Replies
Mar 25, 2010
In my view I have a welcome screen:
[Code]...
Which is a pretty small component and I have panelContainer:
[Code]...
Whilst the user is reading the warm and fuzzy welcome note in the welcome state I want to be creating the big expensive panels state so taht when we switch there is no delay. Before the panels state is set panelView is null but I presume there must be an IDefferredInstance floating around somewhere that I can use to kick off the creation of the view. How can I get hold of it?
View 1 Replies
Sep 3, 2011
i curious how to access state in flex "Current State" from flash movie clip??..so far i make movie clip in flash and it has button inside with name " button" and i put this flash file into flex in "state 1" flex application..i want to make event handler for "button" that trigger changing state from "state 1" to "state 2" in flex application..and in flex application i do not write anything because i have no idea how to deal with this stuff..
View 1 Replies
Apr 29, 2009
Anyone let me know wether if pixel calculations are made swf files and when they r made to fullscreen wether they will remain the same in any monitor size?
View 1 Replies
Jul 9, 2009
how to make the preloader works on the full screen website/ fluid layout. I add the Stage.resize on the code for FYI When I added this code to the bar, it expanded to full screen, but there's no loading bar. The text is also no progress.
View 1 Replies
Aug 10, 2009
Can a DNS lookup be made with AS3?
View 2 Replies
Apr 23, 2010
I'm learning layouts in Flex. I try to make the following layout.The red arrow means when enlarge the window, the red arrow widget will become large too. Can anyone implement this layout in Flex?
View 2 Replies
Sep 11, 2010
I need to develop a GUI for a self-service kiosk. The kiosk will take food orders (i.e pizza, burgers, salads) and provide the ability to pay using a credit card. Can anyone suggest the best GUI layout or approach? I want to make it intuitive and simple. I want to minimize the number of button clicks. If you can provide examples,
View 2 Replies
Jul 7, 2011
[code]...
when i add this two elements label and button both are displayed on same position
my label size increases dynamically so i want to add that button below that label
here for titleWindow i want to set layout how i can do that[code]...
View 1 Replies
Aug 4, 2010
My flex application gets some parameters from URL when the application opens for the first time(ex: layout=<1,2,3,4> ). Based on layout(1,2,3,4) value I have to change the layout. However the problem is the application is already drawn(Layout is initialized) by the time the control reaches the point where it reads the values from the URL. I was wondering how can I redraw once I read the values from URL. Some thing like refresh.
View 1 Replies
Jan 19, 2010
I would like to get some feedback on the project I made in Flex. It is a project scheduling program, providing something similar to what MS Project or Vico Control provide. App is found on [URL]
There is also a quick introduction of the program features in this blog post [URL]
it shows a little what Flex is capable of..
View 2 Replies
Nov 13, 2009
I was making multiple remote calls and they are done sequentially and when I am getting a result event back it's triggering calls to all the methods with ResultEvent as an argument . I am supposed to receive the result event only in the method given inthe event listener but it's triggering calls to all the methods with ResultEvent as an argument.
View 1 Replies
Aug 27, 2010
I have 5 Cairngorm Events that I am dispatching at the same time(one right after the other) - all of which call a separate HTTP Service. This works fine when I run the application locally however when I deploy my project to a Glassfish server, it only works intermittently, with the app hanging when it doesn't work.
My temporary work around to this is to chain some of the events together so less call are going out at once, but I don't really like this as a viable solution because it slows down performance.
Is there a maximum number of HTTPService requests that Flex can make at once before it hangs?
View 1 Replies
May 16, 2011
I'm writing the application for iOS in Flex (sdk 4.5). Is it possible to play movie in such built application?
I was trying to use Video component - which works well on my desktop, but it doesn't work on my iPod. Of course my application is running, but the video isn't playing.
View 3 Replies
Jun 15, 2011
I have a DataGrid which uses an itemRenderer to display the items in a DataGridColumn. The ItemRenderer is created in actionscript and contains the following code:
public class PromptingColumnRenderer extends Label {
public function PromptingColumnRenderer()
{
[Code].....
In this DataGrid column, I require number validation on only the data with the type="NUMBER" field set. The problem is, when I try to declare a NumberValidator within my PromptingColumnRenderer actionscript code, the view recycles the renderer, and the NumberValidator attempts to validate non-numeric rows. What is the best way to validate only the rows with the type="NUMBER" field set?
View 1 Replies
Nov 24, 2011
I have a date object and I want to listen to any changes made to it. The changes can be made by either directly assigning another date object
var newDate:Date = new Date(2009,10,9);
date = newDate;
and by using
date.setTime(timeInMilliSeconds)
I tried using BindingUtils.bindsetter:
var myWatcher:ChangeWatcher = BindingUtils.bindSetter(updateDate,date,"time");
private function updateDate(value:Number):void
{
trace(value);
}
but this doesn't seem to work. I wish to know what am I doing wrong or if there is someother way to do this.
View 2 Replies
Aug 3, 2009
I have a randomly-sized array of items. I'd like to display one label for each item in a Repeater component. I want them to display in a grid layout with 5 columns and as many rows as needed. How do I do that in Flex / ActionScript?
View 2 Replies
Dec 16, 2009
I have an mx:vbox and inside i have several mx:text elements.how do i decrease the gap between each line of text that is shown ?i tried doing the following:
<mx:VBox borderColor="black" borderStyle="inset" width="80%" verticalGap="0" paddingBottom="0" paddingTop="0">
<mx:Text text="a" width="80%" paddingBottom="0" paddingTop="0"/>
[code].....
View 2 Replies
Sep 16, 2010
I have two panels and a button nested within an hbox. I want the panels to appear side-by-side and the button to appear under both panels equi-distant from the sides of the hbox (i.e. in the center).Getting the panels side-by-side was easy, but how do I get the button below both panels and in the center. Currently, the button show up to the right of the second panel.
View 1 Replies
Sep 29, 2010
In HTML/CSS, if you float items, DIV's that exceed the width of the container are moved down 1 line.
I would like to achieve this in FLEX. I have 3 components with variable width. I would like for the 3rd component to be moved down when it doesnt fit the container any more.
View 1 Replies
Mar 15, 2011
I need an horizontal layout on my forms, they look like this:
[Code]...
I'm very confused about the new Flex 4 architecture...
View 1 Replies
Mar 19, 2011
I'm trying to hide both the vertical and horizontal axis renderers in flex so I can take a picture of the chart without them.I've set both renders to visible = false and includeInLayout = false. They don't show up but they still take space. I've tried setting widths/heights to 0 and that doesn't help either.
<mx:horizontalAxisRenderers>
<mx:AxisRenderer
id="horizontalAxisRenderer"
axis="{dtAxis}"
[code]...
View 3 Replies
Apr 21, 2011
I have a list with tile layout,I have given the item renderer's width as 100%, but the item dosen't resize to fit the content . The same scenario works well for horizontal and vertical layout.
My code looks like this
<s:List width="{this.width}" dataProvider="{allActionsArrList}">
<s:layout>
<s:TileLayout />
[Code]....
View 1 Replies
Apr 30, 2011
Does anyone know of a simple way to implement a DividedBox layout similar to flex, but done through Flash/as3 ?
I would think there would be a library out there for that already, or some resources, but I'm having a hard time googling for it, as it;s either Flex or unrelated content I keep finding.
EDIT just came across yahoo's astra library (example)
View 2 Replies
May 9, 2011
I have a function that is made up of two main parts (I'll call them A and B). Part B needs to run when part A is fully done with its layout changes. However, there is no "part A is done" signal, and thus I've been calling a validateNow() before part B runs. This works but seems awfully inefficient - was wondering if there are any other tricks to force an immediate measure or something along those lines or if I'm stuck.
View 2 Replies
Jun 27, 2011
I would like to create an totally re-sizable application using Flex 4.5. I experimented already but my approach seems to be hard to maintain so it does not look good to me. Here is my approach:Concerning the HTML I actually have a first page which detects the user's monitor resolution and then redirects to the flash container HTML(a JSP) which reads the width and height parameters and renders the flash to the size passed.In my application I used the 1280x720 as the reference size so I have created a utility class:
package utils
{
import mx.collections.ArrayCollection;[code].....
I pass the percentage value relative to height or width and I get back just that. So I actually bind the height/width of components to e.g {LayoutUtils.relativeToWidth(50)} which would return 640 if my applications width would be 1280. But this means setting width and/or height to almost every component and this includes also padding and anchor positions which makes it a mess. I want everything to be re sized correctly(including fonts). All the available sizes I am going to have available will keep the same aspect ratio which is going to be 16:9 for example because I can't see any other way of doing it
View 1 Replies