Flex :: Populate A Mx:ViewStack Dynamically With A DataProvider For A Tabbed Navigation?

May 12, 2011

I'm very sleepy right now, so this is just an example of what I want (obviously this code is wrong):

<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"

[code].....

View 1 Replies


Similar Posts:


Flex :: Using Summary Data From Dataprovider To Populate Chart?

Jan 6, 2010

In Flex, how do I create a summary(say total of various domains) from the data provider and display in chart? Say this is my dataprovider.. I want to display the total estimate of each territory as a slice in piechart

private var dpFlat:ArrayCollection = new ArrayCollection([
{Region:"Southwest", Territory:"Arizona",
Territory_Rep:"Barbara Jennings", Actual:38865, Estimate:40000}, [code].....

View 1 Replies

Flex :: Creating A Multi Column Navigation Bar For Viewstack?

Oct 5, 2010

I have created a Viewstack and using a Tile component and repeating LinkButtons I was able to make a multi column navigation with the viewstack as the dataprovider. My question is can this be done better? My code is below and I am wondering if I took the long way around this approach.

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[Code].....

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

Actionscript :: Flex - Dynamically Populate The Options In A Combobox Inside Of A Grid Based On Another Row In Flex?

Sep 8, 2009

I'm trying to setup a DataGrid that contains a column of combo boxes. The values of the combo boxes are defined by data specific to that row. I cannot get this to work though, I'm asking for a solution to this, either fixing what I have below or a recommendation on a different way.One of the columns of my DataGrid has an object derived from a ComboBox for an ItemEditor. The itemEditor is set like this:

<mx:DataGridColumn editorDataField="selectedItem" dataField="type" editable="true" >
<mx:itemEditor>
<mx:Component>

[code].....

View 1 Replies

Actionscript 3 :: Assign DataProvider To DataGrid Dynamically In Flex?

Jul 19, 2010

i have a method with brings data of particular table, as given my parameter to that method,

now i want to fetch data from corresponding table and it too list, and send back flex and form dynamically Grid & add dataprovider dynamically as for its corresponded table colomns in flex side ?

Remote objec(java class)
public List<List<String>> getMasterTableData(String name)
{
String designMaster = "tbl_design_master"+name;

[Code]....

Now i want this create a Datagrid in flex dynamically by using its design & master data table in action script i done everyting , my dataGrid had formed as for his master design,but data is not showing ?

View 1 Replies

Flex :: Make A Tabbed Panel?

Sep 29, 2011

My app has 3 categories of buttons, I want to have a tabbed panel I can use to switch between the 3 categories like in this example:

My app is a mobile app though so I can't use mx components. When I try searching for mobile tabbed navigation etc., I come up with only viewnavigator examples.

View 1 Replies

Flex :: Get Selected Tabbed Panel?

Mar 6, 2012

i have a tabbed panel in the flex having various tabs and i m using this to get the selected tab index

private function handleInspectorAreaButtonClick(e:Event):void
{
var selectedIndex:int;

[code]....

View 2 Replies

Flex :: Passing Data Into Tabbed Views?

Apr 18, 2011

I have a project that has 4 views where I'm using the tabBar with viewStack/NavigatorContent. I have a couple HTTPServices set up gathering the XML and converting to Bindable ArrayCollections. When and how is the best way to pass that data to such things as charts, dataGrids, etc. that aren't seen until the user clicks a tab? Right now I have each item set up with creationComplete functions that pass it then. Although it seems to be working, is this the best way, or is there something better and maybe even quicker?

View 2 Replies

Actionscript 3 :: Switch Between Flex Tabbed ViewNavigators?

May 25, 2011

I am working on a Flex TabbedViewNavigatorApplication with three tabs (ViewNavigator elements). I would like to switch from one ViewNavigator to another based upon a user action (via ActionScript code).I know that switching between Views uses pushView and popView, but I'm working with ViewNavigators, and my searching revealed nothing useful.I'm trying to switch from Tab2 to Tab1 when an event occurs. In this case, Tab2 contains a list, and when the user makes a selection, I want to jump back to Tab1.

<s:TabbedViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
creationComplete="onAppReady(event)">

[code].....

View 2 Replies

ActionScript 3.0 :: Dynamically Populate A Function At Runtime?

Feb 25, 2011

I am attempting to dynamically populate a function at runtime and then have the ability to call this function.

View 9 Replies

Arrays :: Dynamically Populate Text Fields In Flash?

Sep 1, 2010

I am trying to figure out how to dynamically populate textfields in Flash. The text in the fields will either say ON or OFF based on the value of bstatus.var bstatus will either have a value of 0 or 1 I have the following textfields listed below.I'm not sure if the syntax is correct, but I was thinking that the text fields would be in an array, and I would create a for loop--that will go through the array in order to have the fields populated.

var textFields:Array = new Array();
textFields[0] = compTxt.text;
textFields[1] = bathLightTxt.text;

[code].....

View 1 Replies

ActionScript 2.0 :: Populate A Scroll Pane Dynamically With A Moveclip?

Oct 27, 2009

I'm trying to populate a scroll pane dynamically with a moveclip but it isn't working. I can add an image with loadMovie, but attachMove isn't doing anything. The same thing works to a moveclip manually added to the workspace, but not on my dynamic scroll page.

ActionScript Code:
for (var i = 0; i<clipArrowArray.length; ++i) {
var clip:MovieClip = scrollpane.content.pane_mc.createEmptyMovieClip("clip"+i+"_mc", i);

[code]....

View 6 Replies

ActionScript 2.0 :: Dynamically Populate An Embedded ComboBox Inside A DataGrid

Feb 4, 2010

URL...In this demo I have a Datagrid populated from a php script.I also have a ComboBox embeded in the datagrid. In this example I am reading the ComboBox data from an array within a ComboBox CellRenderer.The question I am posing is how to dynamically populate the embedded ComboBox's from a php script with data retrieved from a mySQL table.

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

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

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 :: 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

Flex :: Air - Viewstack Dynamic Next And Back Buttons?

Nov 17, 2010

I'm trying to create a wizard that will guide a user through a lot of individual containers I have built. I have a main page that has many checkboxes for the user, each checkbox ties to a container. What I would like to have happen is once a checkbox is clicked it makes that container visible, then the next and back buttons when clicked only go to the next visible container; thereby leaving off any containers from the wizard that were not checked on the main page.

View 1 Replies







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