Flex :: Set Selected Child In Viewstack?

Dec 3, 2009

in main.mxml :

public function init():void
{
PopUpManager.createPopUp(this,login,true);
}

[Code]....

How can i selectchild of main.mxml's Viewstack from login.mxml ?

View 4 Replies


Similar Posts:


Flex :: ViewStack.addChild Adding Multiple Child And Only The Last Child Is Visible?

Mar 10, 2010

var viewStack:ViewStack = new ViewStack();
viewStack.percentWidth = 100;
viewStack.percentHeight = 100;

[Code]....

Its only displaying canVas3 contents not canVas1 and canVas2

View 1 Replies

Flex :: Viewstack - Navigate To The Second Child During Onclick Of A Button Present In The Second Child?

May 10, 2010

I have a component mxml file in which i have a view stack, on click of a button i navigate to the first child, now i need to navigate to the second child during onclick of a button present in the second child. All the childs are component files included within the view stack. How could this be done, Sample code is present below,

[code]...

Now in my offering.mxml file if i try to access navigationViewStack i am getting an error stating 'Access of undefined property navigationViewStack.

View 3 Replies

Flex :: Toggle Viewstack Within Child Component?

Feb 12, 2011

I have a viewstack with two tabs.In one of them there is a data grid shows a list of notes. The other one is includes a form that can edit notes or crates new note. I want the user to be able to add new note or edit existing note when clicks an item in data grid. I mean when user clicks an item the viewstack must become editor.

View 1 Replies

Actionscript 3 :: Remove Child Content From ViewStack In Flex 4?

Sep 9, 2010

In my example below, when I click "Add Content", new stack content is loaded into the ViewStack as expected. But when I then click "Close Content", I'm expecting it to close the newly created content inside the ViewStack and switch to the "defaultContent" content.

[Code]...

View 2 Replies

ActionScript 3.0 :: Flex - Accordion. No Child Selected?

Oct 21, 2008

When i create a new Accordion object and add some items to it with a dataProvider The default selected Child is 0.

View 3 Replies

Flex :: Accessing A Label's Value In An Accordian's Selected Child?

Feb 27, 2011

I have an Accordian in my application. Each child of the accordian has a label firstNameLabel) and a button (addPolicyButton). The label's value is being set via Repeater and an array. How can I access the firstNameLabel's value of 'selected child of the accordian' when the addPolicyButton is clicked?In following code testTextArea.appendText prints 'fname: undefined' in the testTextArea.Where as I can see in the accordian that the set label's text is set to 'Michael' which is what repMonitor.currentItem.firstName returned.

Code:
private function addPolicy():void{
testTextArea.appendText("fname:"+firstNameLabel.text);

[code].....

View 1 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

ActionScript 3.0 :: Flash Selecting A Specific Child By Mouseclick, Turning Off A Child Within All Non Selected?

Mar 19, 2011

I've used this site as a resource leading up to this, not particularly sure if I worded this correctly I have a class "Block" which is just a square (will be something else later on in the process) I want each block to have controls to add an additional block in either direction so I have another class BlockButtons which has my buttons for each direction.

And another class GlobalVar where I keep all my variables for funsies

[Code]...

View 1 Replies

Actionscript 3 :: Change Selectedindex From Viewstack From Child Customcomponent?

Dec 8, 2011

I have a viewstack, which contains 3 (at this moment just 1) customcomponents:

<s:Application xmlns:components="components.*">
<mx:ViewStack id="mainViewStack" x="76" y="90" width="800" height="400">
<components:Login />

[code].....

View 1 Replies

Flex :: Disable Selected Columns In A Datagrid In It For Selected Rows?

Nov 6, 2009

Is there any way to disable a few columns for a particular row in flex datagrid?

I have a datagrid with about 10 or more columns, say for example a few column names are: Item Id, Item Name, Item Status and VerifiedState. Initially I want the column Verified State to be disabled.

Now When the value of the column, Item Status is Review Passed for a particular row, I want the column VerifiedState to be enabled and editable. Is that possible in Flex datagrid.

View 2 Replies

Actionscript 3 :: Getting ViewState's Selected Child's Id?

May 27, 2011

I'm transitioning a flex 3 application to flex 4. There was AS code in the flex 3 app that worked:

var myCurrentSelectedChild:String = myViewStack.selectedChild.id;

Now, in flash builder and flex 4.5, it throws the error - "-1119: Access of possibly undefined property id through a reference with static type mx.core:INavigatorContent". I'm trying to get the viewStack's selected child's id.

View 3 Replies

ActionScript 3.0 :: AddChild-Selected Child Always On Top?

Jun 11, 2009

I have a package that scales a pic up when the pic is moused over. Also in the .fla that references that package, I have code that loads the pics into movie clips on the stage(using XML).

My problem is that when I mouse over the pic it goes behind the other pics that are next to it. The moused over pic needs to appear above the surrounding pics. I know this is an addChildAt / indexing issue. I'm just having trouble working it into my code.

Actually, the package code (PhotoScaler.as) has a line that is supposed to make the moused over mc go above everything else, but it doesn't work when I add a pic to the symbol

Here is the Package code:

Code:
package AS3code {
import caurina.transitions.Tweener
import flash.display.MovieClip;
import flash.events.MouseEvent;

[Code]....

View 2 Replies

IDE :: Access The Child Of A Selected MovieClip In JSFL?

Dec 16, 2010

Is there a way to access the child of a selected movieClip in JSFL.

ie i can access the selected movieClip using fl.getDocumentDOM().selection[i]. Now i also want to access the child of this movieClip.

My aim is to give instance name to all the movieClip in an FLA

View 1 Replies

Flex :: Example Flex Zend AMF Sharing Web Services Between Components In ViewStack

Aug 10, 2011

I've been searching for the last couple days but can't seem to find a basic example of what I'm looking for. I'm developing a Flex 4.5 app and in it I have a viewstack of 2 components that use some of the same services. Currently the only way I can get the app to correctly use the web services is by defining 2 different web services that use the same PHP web service file. For example: I have an app, and within it I have a viewstack with tab navigation of 2 components: #1) retrieve a list of all Salary Employees, and #2) retrieve a list of all Contractors. Currently to get it working I am defining a UsersTableEmployees webservice within component #1 and a UsersTableContractors webservice within component #2, but they both point to the same PHP class, and only differ in the arugment value I pass to them. Ie, getUsers("employee") and getUsers ("contractors"). Of course this is not best practice.

Searching StackOverflow and Google gives me many results about ColdFusion and MVC (example What's the best way to share data between components in Flex?), but I'm still confused. Can anyone here point me to a basic example (even sample MVC) and source code of an app that uses Zend AMF and allows different components to call common web services?

View 1 Replies

Flex :: Always Resize The ViewStack?

Mar 23, 2010

I'm using a viewStack which have is property resizeToContent set to true. When I'm selecting a child higher than the viewStack, it's correctly resized, but when I'm selecting another child which is smaller, the viewStack isn't resized! What I want is that my viewStack get the height of the selectedChild each time.

though, the Adobe doc say :

If true, the ViewStack container automatically resizes to the size of its current child.

View 1 Replies

Flex :: Possible To Use DeepLinking Without A ViewStack?

Nov 2, 2010

I've got a Flex 3 project.Does deep linking only work on viewStacks? (My project doesn't have any viewStacks). I'd like to use deeplinking based on what was selected in a comboBox. I'd like the user to be able to bookmark or use the back button based on what was selected in the comboBox.The comboBox selection determines which data is pulled from the database.Is this possible? I set-up deeplinking in another project, but it had viewStacks. And all of the deep linking examples that I've seen use viewStacks.

View 1 Replies

ActionScript 3.0 :: Have The Flash Cs4 Preview Display Child Movie At A Selected Frame?

Mar 31, 2009

The only thing that has me puzzled is the preview field. Basically i have a background which is a movie clip, it basically transforms from the loader to the background (over 70 frames).

is there a way to have the preview field for the root movie display a child movie at a frame other than frame 1? At the moment it looks like this: [URL]

But i'm wanting it to look like this: [URL]

It would help or positioning other items if i had the background displayed how it will actually be?

View 2 Replies

Flex :: ViewStack Not Showing Change At First

Jan 24, 2010

I have as good as finished a new project I'm working on now for a while, and I have this small problem coming up at the fine tuning.The area of concern is so I believe the ViewStack I'm using, but I'm not sure so here the details.I have several check boxes (4), and only one at all times can be selected to show off associated Radio Buttons as a Group of (6). No RBtn pre selected.With the selection of a check box I also make visible a new Radio Button Group of (4). No RBtn pre selected here either.Now if I select one of the RBtn (6 - each has a different Paper size measurement showing) then I can view through a external Xml data file details as Size, basePrice and the totalPrice which is in this case the same as the basePrice!

This totalPrice is located on the first Canvas/Label in the VStack!Selecting any of the first three (3) of the second RBtn Group (4) No RBtn pre selected either! - it will show me a Paper type description, and by selecting the fourth RBtn it will show me as well a field with the extra costs for a Canvas type, and it should select the second Canvas of the VStack with the totalPrice which is basePrice plus the extrasCost Canvas Price.Now the problem is that my second VStack Canvas/Label = totalPrice (basePrice +extraCost) is not showing up immediately! (It just shows blank canceling the basePrice out), and only if I select another of the six (6) RBtn! then it is showing the second vStack with the totalPrice (basePrice +extraCost). From here on everything works perfectly!I think that I have to mention that my RBtn Group are working in a function If / Else / If /Else configuration where both the Labels on both VStack Canvases are called up at the same time. So therefore both Labels should have data available which than should be viewed when the VStack changes?

View 1 Replies

Flex :: Programmatically Add Views To A Viewstack

Jun 10, 2010

I'm trying to figure out how to in as3 (not mxml) add views to a view stack.For example I have a view component like so[code]I've being trying to add it to a viewstack in the following way.[code]I'm aware I have to assign ID's but for now I just want to get the view in there

View 2 Replies

Flex :: Use A Viewstack With A Tree List?

Jan 31, 2011

I want to know if I can use a tree and when and item in the tree is clicked the viewstack changes to that certain item?

View 1 Replies

Flex :: GetChildren() Not Working For ViewStack?

Mar 15, 2011

My Strucutre is like this.

<mx:ViewStack>
<mx:HBox>
<mx:Form>

[code]......

View 2 Replies

Flex :: Access Other Panels In ViewStack?

Mar 28, 2011

I have a ViewStack with 2 panels:

<mx:ViewStack id="viewstack1" height="243">
<mx:Panel id="gridPanel">
<mx:DataGrid id="grid" right="10" left="10" top="10" bottom="10" width="300" height="150" itemClick="showDetails(event)">

[Code]....

I want to have the user click a grid item in the first panel and then load the data in a panel in the second panel. I can grab the value of the index for the clicked item in the itemClicked handler, but how do I access the detailsPanel to set the values based on the row info from the Grid?

View 3 Replies

Flex :: 4 - Add A Component Into A Viewstack Dynamically

Aug 2, 2011

I want to add a component into a Viewstack dynamically in flex4. Like code below

[Code]....

But the code in comment doesn't play the effect. How can I implement it? Does the canvas have any hideffect or showeffect to Bind

View 2 Replies

Flex :: Dynamic Tabs Using ViewStack?

Sep 20, 2008

I'm having problems creating dynamic tabs here's my code:

mxml:

<s:TabBar x="1" y="1" height="32" width="100%" dataProvider="{tabHolder}" chromeColor="#EF8B01"/>
<mx:ViewStack x="2" y="34" id="tabHolder" width="100%" height="214" creationPolicy="all">
<s:NavigatorContent label="Home" width="100%" height="100%">
<mx:Image x="6" y="8" height="181" width="402"/>

[code]....

tab wasn't added, what is wrong?

View 1 Replies

Flash :: What Is Difference Viewstack And States In Flex

Jul 21, 2009

In my flex project i used one option like Link button . If i like it will be open new page contain more information and components . Which container is suitable one ? Where is used viewstack and stages ?

View 2 Replies

Flex :: Difference Between ViewStack Container And Canvas?

Dec 9, 2009

What is the main difference Between ViewStack Container and Canvas?

View 1 Replies

Flex :: Flash - Low Overhead Dynamic Tab / ViewStack?

Dec 17, 2009

Suppose I have a ViewStack like this:

<mx:ViewStack id="s" left="5" right="5" bottom="5" top="0" width="100%" height="100%" creationPolicy="all" minHeight="0">
<mx:Repeater id="repeater" dataProvider="{dp}" height="100%" width="100%" minHeight="0">
<mx:Box id="bx" label="{repeater.currentItem.label}" width="100%" height="100%" minHeight="0">
<mx:Label minHeight="0" width="100%" height="100%" label="bob" />
</mx:Box></mx:Repeater></mx:ViewStack>

With a large number of items in the stack (each having a large number of panels, databinding, etc), this gets extremely slow. The Repeater seems to trigger creation of all children regardless of the creationPolicy of the viewStack itself.

View 2 Replies

Flex :: Listening For Viewstack Change Event?

Jan 28, 2010

I have a piece of software I'm working on that is using a viewstack with 3 canvases. With the change event I need to look for index 2 which is the last canvas when it changes to this canvas I need it to grab data from inputs from the previous two canvases.Within the viewstack events I've assigned the function change() to the event childIndexChange.

Here is the method:
private function change():void
{

[code].....

View 1 Replies

Flex :: ViewStack - Adjusting Component Size To Be Same

Mar 22, 2010

I have a viewstack with 3 items in it. Now my problem is that I want all these components to be of the same size. Its simply enough to do this manually but is there any other way of setting the size for all the components at once?

View 2 Replies







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