Flex Use A ComboBox To Change A View Stack?
May 21, 2009
I am trying to use a combobox in flex with an array to change to a canvas in a view stack. Can I do this with some custom action script? The UI I am designing could really benefit form this.
View 3 Replies
Similar Posts:
Feb 22, 2010
I have a login page (that working), if details is correct, i want to go to welcome page, and display the first name and last of the user.
Is ok to access to the label in the another page, and how can i do that
This is my code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
[Code]....
View 1 Replies
Nov 19, 2011
In Flex 4.5 for mobile is it possible to check if there is > 1 view on a navigation stack and display a back button accordingly? If so how can I do this?My application is based ons:ViewNavigatorApplicationI'm adding a back button like this
<s:navigationContent>
<s:Button label="Back" click="backButtonPressed(event)"/>
</s:navigationContent>
[code]......
View 2 Replies
Jun 13, 2010
I have one .mxml file (the Application) with a ViewStack (with 4 views) and a ControlBard, obviously I can change the views with it, but what I want to do is: in view #1 I have an image which I want to convert to a "hyperlink", so when I click it I go to View #2, is this doable? Also I would like to pass somehow some data (like a String) to that View #2 (lets say the it's a user avatar I click so I want to go to the second view which will show me his profile, that's why I need his name/id).
View 1 Replies
Apr 11, 2012
I have view stack in a app like so:[code]When an event is fired, I call viewStack.selectedChild = childSelectionView.how do I code a listener for the NavigatorConent being selected?[code]I know that all the NavigatorConent's dispatch a creationComplete event on the application start, but their childrent aren't created yet. How did I respond to the on selectedChild change to self?
View 2 Replies
Sep 22, 2010
Following is a simplified version of my mxml:
[Code]...
"A term is undefined and has no properties..." which points me to the line this.parent.currentState='edit'.
View 1 Replies
Apr 12, 2012
I am learning Flex and trying to make a simple RPG to practice. I am using view states to change between screens. right now I have a HomeView.mxml which displays my character information, InventoryView.mxml which shows my inventory items, and EquipmentView.mxml which shows the equipped items. They each have their respective view states.
in my main mxml file, i create a global variable for the character and an ArrayCollection of items in the game. it creates 2 labels in mxml for Inventory and Equipment and when i click on the label it calls a click handler which sets currentState="EquipmentView" or "InventoryView" This works and the state changes and the respective views are shown properly. My problem is in my EquipmentView state. When i enter the state the first time, it has a creationComplete function which displays images for my equipment and sets a click handler. when i click the item, it "unequips" it and removes it from the equipment list and removes the image. this also works fine, but when I go to my inventory view and "equip" an item and return to the EquipmentView, the image does not show. I have a label which counts the length of my equipmentList variable and that is accurate when i switch views, but i cant get the image to display again. Is there a way to call my displayEquippedItems() function (which is originally called on creationComplete) when the view is changed?
[Code]....
View 2 Replies
May 14, 2010
I'm trying to change the position of the dropdown list relative to the combobox item.Setting the position using comboBox.dropdown.x = 1337; doesn't work...
View 1 Replies
Jan 11, 2011
I have one list, which the item render it`s like this:link. But now I need to enable or disable the button delete depends the view state which my List is inside. This is my view(which contains the list):
[Code]...
View 2 Replies
Jul 2, 2011
I am creating a card game everything is fine but I am not able to create a stack of cards as follows: If I have 4 cards that are represented in an array such as 4,5,6,7 of Spades then I want the card with the least priority to be placed on top and the highest priority card placed behind the first one.
View 2 Replies
Jun 14, 2010
how do i change the item selected in a combobox selection based on a selection of a datagrid object?
View 2 Replies
Mar 18, 2011
I have a prompt string to be displayed in my combobox - this needs to be displayed in italics. When user makes any selection from the list - i need to change the style of the displayed content.
My css file:
.promptStyle
{
fontStyle: italic;[code].....
I am able to see the style change happening because the color changes; but the change specific to textInputStyleName does not get applied.
View 2 Replies
Aug 31, 2011
is it possible to populate combo box from entries in sql server databasealso is it possible to populate grid view from entries in database including image files stored in binary format
View 1 Replies
Sep 1, 2011
how can we populate combo box from entries in sql server databasehow can we populate grid view from entries in database including image files stored in binary format
View 2 Replies
Jun 2, 2010
When I set style color, it changes both the text color for the selected item/component label and the text in the dropdown menu.
color
Type: uint Format: Color CSS Inheritance: yes
Color of text in the component, including the component label. The default value is 0x0B333C.
I would really like the label to be white and the text to be black.
View 1 Replies
Aug 15, 2011
I'm currently using RobotLegs with the Presentation Model pattern to develop a Flex 4 project. I understand that all business logic related to a View resides in the Presentation Model associated with that view, however, I am confused when it comes to View specific logic.For example, I have an indicator that needs to be positioned relatively to list items depending on which list item is selected. Is it acceptable in the Presentation pattern to put the logic that will position the indicator in the View and simply have that logic run in reaction to a selectedIndex property changing in the presentation model?The reason I am considering this is that since the Presentation Model does not have a reference to the view it is difficult to come up with an ideal solution for manipulating view components.
View 1 Replies
Dec 14, 2005
Q: I am making a web-application for school work. see: [URL] the collors i got working now but when i press the second button to change the view off the shoe i want that the colors change to. Now the colors keep standing. The colors are pictures converted into MC and the works with attachmovie. But with what script can i change the collors so they will change and fit on the shoe? I hope this is a good explanation. :S else i will make a better explenation.
View 3 Replies
Sep 28, 2011
My problem is that when I try to pass an object from the navigator.pushView(view, dataobject), I can't figure out how to access the dataobject from actionscript. I can access {dataobject.property} from MXML easily, but I want to set a variable in the new view to the passed dataobjects property.
View 1 Replies
Nov 8, 2010
I'm trying to set a specific list item in a mx combobox to have a custom item renderer, the problem is that I cannot do this via mxml, it needs to be done via actionscript at a later stage, eg: combobox gets created, combobox gets populated, user does other tasks, combobox needs to set one or more items in the combobox to have icons (via item renderer)..
I can do this via the onChange event, but it only applies the icon when the combobox is opened and there is a slight delay so you can see the icon being added.
View 1 Replies
Mar 16, 2011
How can I validate there's a selected item in a ComboBox before saving? If there's no selected item, how can I set focus on the ComboBox?
View 2 Replies
Apr 21, 2010
I have a dynamic ArrayCollection that will contain a unknown number of objects of type MyObj:
class MyObj
{
type:String
[code]........
View 1 Replies
Jul 21, 2010
I'm binding two AutoCompleteModified objects to one another; meaning you type in one and it selects the correct object in the other. It works fine when I define it in MXML: However, a user can add a new row to a Grid and then I set up the binding and objects via actionscript and it gives an 'undefined' error:
ChangeWatcher line 427/wrapHandler.
var innerHBox:HBox = new HBox();
var dtc_acm:AutoCompleteModified = new AutoCompleteModified();
dtc_acm.dataProvider = data2;
dtc_acm.labelField = 'id';
var cp_acm:AutoCompleteModified = new AutoCompleteModified();
[Code] .....
If I only keep it 1-way binding then it works fine. But both throw this error. Is there something about not only doing it 2-way in actionscript, but adding components that aren't on the stage yet?
View 2 Replies
Aug 28, 2009
On occasion, I have wanted to push a closure onto ActionScript's event stack so that it will be executed after the current event handler. Right now I use setTimeout(closure, 0). Is there a more direct way of doing this?
View 2 Replies
Jul 21, 2010
I'm trying to develop a card game with Flex, and I was wondering if there's a way to create an horizontal list (the cards that I have in my hand) having the elements overlapped, like you can see in this example made with openflux: [URL]. The thing that's missing here is the possibility to swap the cards with drag and drop. What I could do to get a similar effect with an horizontal list based component?
View 2 Replies
Mar 2, 2011
I'm looking to take an object that contains String and Integer context and that has pushed upon a Stack and pop those specific contents into a display that the user can see. The display consists of two textareas and a label.I can't figure out how to access the individual parts of the Object to display them though..[code]
View 1 Replies
Jun 11, 2009
I am in the planning phase of a new multi-user client/server app using Flash via Flex and AIR. I am trying to decide which web platform/stack is the best suited for this? I have used RoR in the past, but as i understand, RoR is single-threaded, and is therefore not the ideal choice for handling potentially thousands of simultaneous requests. I have done some reading about Scala and Lift and that is an intriguing option, but i was wondering if there are other languages/frameworks out there that would work well for my project?
View 3 Replies
Jun 17, 2011
I have a swf File which has the Size 3840 x 800px.Now i want to put it in a html file.[code]...
View 2 Replies
Nov 19, 2010
im trying to have the loader load a new url specified in dataprovider. i get "could not convert" error or "element is malformed".
Actionscript Code:
function onLoaded_2(e:Event):void{xml_2 = new XML(e.target.data); xml_2.ignoreWhite = true; var il:XMLList=xml_2.channel.item; for(var i:uint=0;i<il.length();i++){ ///display feed var currentFeed:URLRequest = new
[code]....
View 14 Replies
Dec 12, 2009
here's my project:How can I change the background and border colors for my comboboxes?
View 6 Replies
Jan 8, 2010
I am currently using colorTransform to color a ComboBox:
//_cb is the combo box
setColor(_cb, t_uintBgColor); //t_uintBgColor is a hexadecimal, ie. 0xFF0000
setColor(_cb.dropdown, t_uintBgColor, -150);
[Code]....
This works, and the combo box and its drop down get tinted.....EXCEPT when t_uintBgColor is white - 0xFFFFFF. What happens then is the combo box is just its default gray color.
And what is the best solution for coloring the background of a ComboBox?
View 5 Replies