Flex :: Viewstack Children - Show / Hide Depending On The State The Application

Sep 17, 2010

I have a viewstack with childrens which I want to show/hide depending on the state the application is

[Code]...

AS you can see I inlude the retail customer view in the retail state and the wholesale customer view in the wholesale state. The problem is that when I run my app they don't appear on neither state.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: To Hide And Show An Object Depending On Mouse Distance?

Sep 5, 2011

im building my site now and i want to have background of hexagons that get visible only when the mouse is at certain distance of them, so i found out that i have to use as3, ive read some tutorials and other post and i tried the following code that i found online:

stage.addEventListener(Event.ENTER_FRAME, showDistance);
function showDistance(e:Event):void{
var distance:Number = (circle.x, mouseX, circle.y, mouseY);

[code].....

View 9 Replies

Flex :: Creating State Children Before Switching To State

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

Flex :: Width And Height Specified In Percentage Not Working For Children Of A Viewstack

Sep 30, 2011

I have a ViewStack which is dataProvider for a TabBar. There are two VBoxs as children for this ViewStack. It works fine with absolute values for width and height for these VBoxs, but when specified in percentages, the VBox uses all the available space (100%) for any percentage value. find the code and screen shots below.

how can children of a ViewStack be aligned to center? There is no horizontalAlign property for ViewStack and it is not working with horizontalCenter= "0".

Code:

<mx:ViewStack id="viewStack" width="100%" height="100%" selectedIndex="0" horizontalCenter="0" textAlign="center">
<mx:VBox label="Tab 1" width="25%" height="10%" borderThickness="2" borderColor="red"

[Code]....

View 2 Replies

ActionScript 3.0 :: Flex - Loading Page As One State And The Main Application Design In Another State?

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

Flex :: Passing Data From Modules To Parent Application To Switch Views In The Viewstack

Jan 11, 2010

I have application with a viewstack witch load 5 modules. each module is loaded via the moduleLoader tag and they all have an id.

Every loaded module has a context menu. the context menu has 5 menuItems. one menuItem for each view for the viewstack.

The context menu is loaded via xml.

this is my application file.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
backgroundColor="#b1b1b1"

[Code].....

the xml of the context menu is in the module but, the context menu is in a as file that extensiate a button.

View 1 Replies

Flex - Hide Container Of A Viewstack Container?

Dec 23, 2010

I have a viewstack container w/ 3 views: red, black, and blue. How can I completely hide the black & not include it?

[Code]...

View 2 Replies

Hide A Child Container Of A Viewstack?

Jun 29, 2010

I have a tabbar whose dataprovider is a viewstack and the viewstack contains a group of vbox containers. I am trying to hide one of the vboxes based on a certain condition but the tabbar still shows the corressponding tab for the hidden vbox. I set the visibilty and includeinlayout of the vbox to false but the tab still exists.

View 1 Replies

Flex :: Elements - Loop Over Children Of A Container When They Are State-dependent?

Aug 17, 2011

Flex's new States re-parents visual items that are marked with includeIn/excludeFrom. If I have a Group (MainGroup) with 5 children/elements that are state controlled, is there still a way to get a reference to MainGroup's children? mainGroup.numChildren and mainGroup.numElements don't work since the children are re-parented. At best, they show 1.

<s:states>
<s:State name="view1State" />
<s:State name="view2State" />
<s:State name="view3State" />

[code]....

View 4 Replies

Flex :: Hide The Last Children Of An XML Data Provider (not To Be Displayed In Mx:Tree)?

Apr 6, 2010

I have an hierachical XML data, and I want to display it as a tree. The XML data is something like this:

<services>
<service name="TestService" endpoint="">
<method name="sayHi">

[code].....

View 1 Replies

Flex :: Setting A Group Container Height To 0 Does Not Hide His Children?

Feb 21, 2012

I need to resize a Group using myGroup.height = 0. And it works, but myGroup's children are still visible, I do not know why...

View 1 Replies

Actionscript 3 :: Constraining Number Of Children In A ViewStack ?

Mar 7, 2012

I have the following code to create a ViewStack which is used as a dataprovider for a TabBar:

<s:TabBar id="objectTab" dataProvider="{vs_objects}"/>
<mx:ViewStack id="vs_objects" width="100%" />

I want to constrain the number of children the ViewStack to avvoid the tabs going out of the screen when the user opens many tabs without closing any. I attempt to do this by removing the oldest element in the ViewStack when the user opens a new tab and the size of the ViewStack is above 9.

private function openTab(object:Object): void {
//Create a new NavigatorContent(form) and add it to the ViewStack[code].........

The image below illustrates my problem, where the dark grey color illustrates the selected Tab. There should only be one selected tab, which works perfectly fine with both the child selection approaches above, when i don't remove a child before selecting a new. When i remove a child and then open a new Tab, the new Tab does not get selected properly, it only gets "painted" in the selected color. In This case Tab 40 is still shown when i open Tab 41 (exceeding 9 tabs). The result of this issue is that Tab 41 is not rendered completely.

UPDATE: The problem was my AS3 code inside the childrens NavigatorContent's that caused the application to behave this way. The solution was using the callLater method:Doric's

code example:

protected function openTab():void
{
var form:Container = new Container();[code]............

View 1 Replies

Flex Show / Hide On Mouse Over / Out

Mar 23, 2010

i need to show the second one when there is a mouse over the first one and hide it when it goes out of the first one also i want the second container content to be usable (mouse clicks/moves)

View 2 Replies

Flex :: Combobox Hide And Show Down Arrow?

Mar 29, 2010

I am looking to implement a search text box as follows:When user starts typing in and there are non-zero results, the text box will open up and display the results below it. When the user selects a result, the text box closed, but this time with a down-arrow (like a combobox) so that the user can re-open the list.I suspect what I really need is a combobox with ability to hide/show the down arrow. How do I do this in Flex?

View 3 Replies

Flex :: Mouseover - Show/hide On Mouse Over/out?

Feb 4, 2010

i have 2 containers one above the other,i need to show the second one whenthere is a mouse over the first one hide it when it goes out of the first onealso i want the second container content to be usable (mouse clicks/moves)

View 1 Replies

Flex :: Easing Function - Show / Hide Window?

May 28, 2011

I am working on a display that starts with a centered logo and menu. When one of the menu items is clicked I move the logo and menu to the left side and show a datagrid on the right. Is there a way to use an easing function to make this change look better?

View 1 Replies

Flex :: Add Effects To The Show/hide Of A Spark Control?

Jul 15, 2011

Possible Duplicate: Flex 4 Group showEffect/hideEffect.I have an existing flex application that uses databinding to show/hide certain elements. It looks a little like this:

<namespace:CustomComponent visible="{modelObject.showCustomComponent}" />

To spruce it up a little bit, I went in and did this:

<s:Move id="ccRollIn" target="{cc}" xFrom="-400" xTo="50" />
...
<namespace:CustomComponent id="cc" visible="{modelObject.showCustomComponent}" show="ccRollIn.play()" hide="ccRollIn.play(null, true)" />

The problem with this is that while the show event plays perfectly, the item disappears from view before the hide effect has a chance to play. Is there a simple way to handle adding animations to this workflow?

View 2 Replies

Flex :: Show / Hide Datatips On A Chart With A Secondary Series

Feb 13, 2011

I have a line chart with a column chart as a secondary series. When I roll over the line, the datatips appear. However, if I move the mouse to a spot where a column appears while still on the line, the data tip item appears for the line AND the column. How do I get it so that I only show datatips for the line but not the column?

[Code]...

View 2 Replies

ActionScript 2.0 :: Show The Second Index Of ViewStack?

Jul 19, 2008

I am trying to show the second index of my ViewStack via ActionScript. Basically a user logs in in the first index and will be "redirected" (for lack of a better word) to the second index of the VewStack. Currently I am just showing a different state (I have attached the code).

Code:
if(evt.result.loginsuccess == "yes")
{
currentState = "Logged In";
}

View 1 Replies

Actionscript 3 :: Flex 3 Data Grid Hide Value If == 0 And Show Checkbox On Booleans

Oct 11, 2009

I have a data grid. How can I hide a value of a column if it's "0" ? Do I have to use item renderers? How? Is there an easier way? Second thing, if I have a boolean column whose values are actually the strings "true" and "false" how can I render it as a non editable check box?

View 3 Replies

Flex :: Tabnavigator - Hide Some Tabs In Tab Navigator And Show Them Only When Certain Event Occurs

Sep 20, 2010

I am using tab navigator. And it has thee tabs "Search", "Show as text", "Show on map" I have a address search box in Search tab. I would like to hide other two tabs if search has not happened yet. So if user hasn't searched any thing other two tabs shouldn't be visible.

View 1 Replies

Flex :: Flash Builder Show / Hide ComboBox Based Off Selection

Mar 29, 2012

Is it possible to show or hide a comboBox based off the selection made in another comboBox. I have been looking for documentation on this to no avail.

View 2 Replies

Flex :: Show Scroll Bars On A Container When Children Are Off The Top/left?

Mar 18, 2010

If I've got a Container with a child component that is off either the top or the left hand side:

Is there any way to get scroll bars to show up? ie, so I can scroll up and get the button back in view, the same way I could if the button was off the bottom right side?

View 1 Replies

Flex :: Any Method In Module Class Where I Can Hide And Show Based On User Login?

May 19, 2010

<?xml version="1.0"?>
<!-- This module loads an image. -->
<mx:Module width="100%" height="100%" [code]..........

I have such 10 modules. Is there any Method in Module Class where i can hide and show based on user login.

View 1 Replies

Actionscript 3 :: Expanded Branch Do Not Show Its Children For First Time In Flex Tree?

Feb 11, 2011

I have added an event handler for itemOpening event for the tree component inside the handler basically ido myTree.selectedItem = event.item ; and then add the new data inside myTree.selectedItem.children.push(newData); But It do not show simultaneously instead I have to close , open the branch again to see the new data. I think I need to refresh something after adding new data but dont know what? below is the code but without the declaration , script tag etc

<services:DocumentService id="$document"/>
<s:CallResponder id="$newFolderAdded" result="$newFolderAdded_resultHandler(event)"/>

[Code]....

View 1 Replies

Android :: Hide The Running Flex Mobile Application Or Change Its Name?

Dec 4, 2011

I am working on a try-out app targeting ios and adroid mobile devices and I use flex 4.6. I want to hide the app in the list of running applications. Is it possible?

If not, is there a way to change the name and icon of the app in run-time after installation?

View 1 Replies

Actionscript 3 :: Detecting Out-of-view Flex Controls - Hide And Show Based On User Context

Sep 10, 2009

In my flex app I have custom tooltips on buttons that hide and show based on user context. The problem that I dealing with is that when I call my showTips() function I only want to show tooltips on the buttons that visible in the view. So buttons that on a un-selected tab (tabNavigator) should not show the tooltips. For some reason all tooltips are showing. Is there a way to detect if a button is not in current view, like on a un-selected tab?

View 2 Replies

Actionscript 3 :: Show / Hide A Row In Flex AdvancedDataGrid With Hierarchical View But Flat ArrayCollection DataProvider

Sep 9, 2010

I am working on a Flex AdvancedDataGrid with a flat ArrayCollection dataProvider. The requirement is that when the root nodes is closed, the root row should show a subtotal data and when the root nodes is opened, not show the subtotal data.

View 1 Replies

ActionScript 3.0 :: Hide The Left Or Right Arrows Depending On Which CBS Page On?

Jun 2, 2010

I'm working on an online portfolio of design work. I've set the jpegs up to load dynamically into movie clips so I don't have to keep them in my .fla file. To see the issue: please open "help_.fla" and 3 jpegs (same folder as the .fla file). Run the flash movie. Click on the "NVIDIA" in the top navigation, then on CBS Cable. When the first page of CBS Cable appears, click on the right arrow to see the next CBS page. Then, click again on "NVIDIA" in the top navigation bar.

1. How can I hide the left or right arrows depending on which CBS page I'm on? When I'm on the first page, for example, the back arrows should be hidden. 2. When I'm back in the NVIDIA page again, how can I hide the arrows still showing from the CBS Cable pages? Finally, what's up with the brief flashing of the NVIDIA screen when I click on the right or left arrows of the CBS pages? Here's the code I'm using to call up the images dynamically into movie clips.

[Code]...

View 12 Replies

ActionScript 1/2 :: Functions - Rewind / Play An Animation Depending On The Rollover State

Jan 16, 2011

below is some code i am using to rewind / play an animaion depending on the rollover state. only ting is i would like to have it so that i could do something like:

playFrames(homeBtn)...

this way i can use the same function over and over but i am not sure how to write this. i think its someting like function playFrames(obj); and then you do something with this...

[Code]...

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved