Flex :: Accordion Child Controls Are Null Until Open The Panels?

Dec 18, 2009

I am using Flex AS3, i have a accordian with two tabs each tab contains some text boxes and i am trying to access these child controls from button event handler which resides outside the accordian, Problem is these controls are null until i open the tabs of accordian.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Accordion Menu That Can Have Multiple Open Panels

Oct 16, 2009

I've seen all kinds of accordion menu examples that allow for one pane open at a time, but I really need one that can have more than one open at a time.

View 4 Replies

ActionScript 2.0 :: Vertical Accordion With Multiple Open Panels?

Oct 17, 2009

I need to create an accordion interface that can have multiple open panels. I have seen so many examples out there that allow one at a time, but none that allow the user to have a few panels expanded at one time.

View 2 Replies

Actionscript 3 :: Split Accordion Panels Into Multiple Files In Flex?

Feb 15, 2012

I have five panels with some logic in every of them.

How could I split styles, code and layout for every panel to several files?

View 1 Replies

Flex :: Open Percentage On Accordion?

Dec 9, 2009

I'm currently developing a Flex application with an accordion containing 2 canvas: one of them containing a DataGrid and the other one a form.When the user clicks on one of the DataGrid's rows, it opens the accordion on the second (form) canvas. However, I'd like to open the second part of the accordion only by half, so they can still see the data in de datagrid.

View 1 Replies

Flex :: Accordion Component : Open Multiple NavigationContents At Once?

Jun 23, 2011

Is there a way to open multiple navigation contents at the same time with the Accordion in Flex 4.5 ?

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

Child Of Child Movie Clip Are Null In Imported Object From Flex To Flash Right After Being Created?

Dec 16, 2010

I have an Movie Clip in Flash that have subobject of button type which has subobject of input text and movie clips. Right after creation core Moveclip all subobject are set to null, when I expect them to be valid objects.

[Code]...

MC_Core_design was created in Flash and exported to Actionscript. I've done this for button_1 class aswell. The code was written using Flex. When I comment out both lines that result in error I get correct view of the core Movie clip with all subobject. How can I set subobject properties right after object creation?

View 2 Replies

Flex :: Override Child Node Controls In A Flex Tree Control?

Aug 20, 2010

I am currently developing a dynamic LineChart in FLEX 4.I am implementing a Tree control next to my LineChart, which will filter the LineChart dataprovider and lineseries. The tree control has several branches and ultimately 5 children (leaf nodes) at the bottom of the last branch.I need the leaf node/children to be displayed as checkboxes inside the tree control.As I understand,this will require overrides in the TreeItemRenderer class.This is where I am a little confused on how to implement that.Currently I can distinguish between leaf and branches using this code, in my main MXML component.I added this because it may be helpful to some beginning FLEXdevelopers, such as myself, who cannot easily find this functionality documented well:

private function treeClick(e:ListEvent):void {
_selectedItem = Tree(e.currentTarget).selectedItem;
if(mainTree.dataDescriptor.isBranch(_selectedItem)) {[code].....

I am looking at the TreeItemRenderer override class from the following example here: In the example, they override the "createChildden" super function to add checkboxes to the tree control.My question is, can I override the createChildren function directly in my MXML component, and not have to use an entire class file to override this functionality? Must I re-invent the wheel to do this?Also, how can I distinguish that my treeItem is a leaf node and not a parent, in the override function? I only want to add checkboxes to the leaf nodes, how can I differentiate? The following example adds checkboxes to all branches and leaf nodes, but I want to add checkboxes only to leaf node/children. How would you approach that?

override protected function createChildren( ): void
{
super.createChildren( );[code]............

Here is my tree tag:

<mx:Tree id="mainTree" dataProvider="{treeData}" itemRenderer="TreeCheckBoxItemRenderer" labelField="@label" showRoot="false" width="100%" height="100%" itemClick="treeClick(event)" />

View 1 Replies

Flex :: Layout - Set Height Of Accordion To Height Of Tallest Child

Apr 5, 2010

By default the height of an Flex Accordion container is the height of the initially selected child. I'd like to be able to set the height to the tallest child so that no resizing or scrolling is necessary when other children are selected. I do not want to use the resizeToContent property. I want the size of the container to stay constant no matter what child is selected.

My current thought is to extend the accordion class setting the creation policy to "all" and then override the measure function to loop through all the children and find the tallest one and use that for the height. This seems a little kludgy though, so I'd like to know if there is a better approach. Ultimately my question is: is there a way to set the size of an accordion container such that the container never resizes and scoll bars are never necessary to display any of the children?

View 1 Replies

ActionScript 3.0 :: Accordion Component Null Reference?

Apr 23, 2010

I've got an mx accordion component that I want to populate at runtime. However, the first box will populate fine, but all the others return null reference so I can't access them. Does this have something to do with which one is currently selected? I'm creating my accordion:

<mx:Accordion x="398" y="207" width="331" height="250" alpha="1.0" borderStyle="solid" borderThickness="0" cornerRadius="10" fontFamily="Arial" color="#000000">
<mx:VBox label="EDITOR'S NOTES" fontSize="10" width="100%" >

[code].....

View 2 Replies

ActionScript 3.0 :: Multiple Buttons To Open Child Swfs Then Be Able To Close The Child From Within The Child?

Mar 25, 2009

I have a picture on the stage that has multiple items that have hotspots/links over them that should open a child swf on top of the background and show details about the items. then have a button in the child swf itself that removes the child from over the background so the user can click on another item etc.I found this code in someone's post and I am trying to modify it so that works for multiple swf files...it currently works for a single swf.I wan to pass the name of the button in front of the .swf in the URLRequest to have the same name as the instance name of the referring button. But I can't figure it out. Here is the code I am using on the stage

View 2 Replies

Flex :: Null Cast Between Parent And Child Objects?

Mar 1, 2011

I have a flex application with two objects: a parent widget (called an IBaseWidget) and a child widget (called a HelperWidget2).When the user clicks on a help link, a helper widget is loaded into the list of base widgets and then displayed for the user.However, when I try to access this child widget by casting the base widget in the collection to the child widget type,the child widget returns null and I am unable to work with the widget.The following snippet correctly returns the widget ID of the newly added widget and dispatches an event to load the widget:

var id:Number = WidgetManager.getInstance().getWidgetId("Helper");
ViewerContainer.dispatchEvent(new AppEvent(AppEvent.WIDGET_RUN, id, openQuickQueryCanvas));[code].........

The problem is that helperWidget above always returns null, meaning the cast isn't successful.

View 1 Replies

Actionscript 3 :: Testing For Undefined And Null Child Objects In Flex?

May 20, 2010

I use this pattern to test for undefined and null values in ActionScript/Flex :

if(obj) {
execute()
}

Unfortunately, a ReferenceError is always thrown when I use the pattern to test for child objects :

if(obj.child) {
execute()
}

ReferenceError: Error #1069: Property child not found on obj and there is no default value.Why does testing for child objects with if statements throw a ReferenceError?

View 3 Replies

ActionScript 3.0 :: Remove Child = Null Before Setting It To Null?

Jul 28, 2009

sometimes I remove child and trace it afterwards and it outputs null although I havent yet set it to null, why is that? and do I need to set it to null also in that case?

Code:
trace(holderArr[loadedThumbs].getChildByName("photo_bg"));
//[object MovieClip]
holderArr[loadedThumbs].removeChild(holderArr[loadedThumbs].getChildByName("photo_bg"));

[Code]....

View 13 Replies

ActionScript 3.0 :: Parameter Child Must Be Non-null And DisplayObject Must Be A Child Of The Caller?

Jul 22, 2009

a quick low down would be its a gallery on the second frame and I breaks when coming back tot he first frame, all tweens die and such.

the errors are:

TypeError: Error #2007: Parameter child must be non-null.
at flash.display:isplayObjectContainer/removeChild()
at index_779_fla::MainTimeline/imageLoaded()

[code]....

View 1 Replies

ActionScript 2.0 :: Accordion Component - Populating The Accordion With The Data?

Jul 10, 2009

I have an accordion component on my stage and I really do not even know where to start to do .I found this code on the Adobe help pages and it causes the movement of the accordion to bounce... which is great... but my problem is populating the accordion with the data.

Quote:

import mx.core.View;
import mx.transitions.easing.*;
top_acc.createChild(View, "first", {label:"FIRST", icon: vt[i]});[code]........

My accordion is called "top_acc".I have three(3) labels... (FIRST,SECOND, and THIRD) Within there i would like arrays to be displayed for the select label.My arrays are defined and when i trace them i get exactly what i am looking for... the format of the code to add an array to my accordion...then upon selecting the item in the array displayed i would to be able to display that same array value in a text box called "my_selection" ....also the amount of items in the array are not static and change day to day..

View 2 Replies

ActionScript 2.0 :: Create An Accordion Menu With Out Using The Accordion Component?

Mar 6, 2007

how to create an accordion menu with out using the accordion component.

View 14 Replies

ActionScript 3.0 :: Open Source Alternative To Fl.controls?

Nov 4, 2009

I'm new to the world of flash...I want to write some ActionScript that streams audio to a server. My development environment is linux and eclipse using flex3sdk/axdt plugins.

I've been told that in my environment (aka open source/free tools), the Button class is not available, but that replacing that functionality through the use of Sprite/DisplayObject is possible.

I imagine I'm not the first person to want to do this, so my question is: are there open source libraries out there that have already solved this problem?

View 8 Replies

Flex :: "TypeError: Error #2007: Parameter Child Must Be Non-null"

Aug 10, 2010

my following code gave me TypeError: Error #2007: Parameter child must be non-null runtime error.

[Code]...

View 1 Replies

Flex :: Create Drag-able Panels In Flex Like Its In Netvibes?

Nov 11, 2010

I want to create a news application for my website.how should i create drag-able panels/canvas inside another panel/canvas.What i exactly intend to do can be seen on netvibes.com . The website has different panels of every news group, and this panel could be moved from one place to other, but in a well defined manner. And the other panel take over the place of dragged panel.Is there any component in flex

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 :: Panels Creation At Runtime Can't Seen Them?

Sep 27, 2011

My problem is i am trying to make a panel. My button in in Main.mxml whereas the panel functions are defined in panel_Create.mxml. the code works fine. In panel_Create their are functions to create panels at runtime. The problem i am facing is when i run the program it wont show the panels but it does increase the value of n and after 8 clicks it gives alert message. The code works fine when i put all the code in Main.mxml

<fx:Script>
<![CDATA[
import Components.panel_Create;[code].....

View 3 Replies

Flex :: Vertical, Scrollable List Of Panels?

Jan 29, 2012

I'm using Adobe Flex Builder 4.5, and I'd like to create a vertical, scrollable list of panels for an AIR application. How do I do that?

View 1 Replies

Flex :: 4 - Null-component - Checking If The Cancel Button Component In The Child Component?

Jun 23, 2011

I have a component "child" which has a cancel button. Now this component is placed in a state called "newChildComp" I also have another component called "parent". In the parent component, i have a button that dispatches an event. Here is the event code:

[Code].....

so, basically,i am checking to see if the cancel button component in the Child component, while i am still in the parent Compoent, was clicked, if it was clicked, call the cancelButtonHandler. The problem is by the time the addNewChild handles the event, that cancel button was still null. My question is how do i solve this without using the itemCreationPolicy on the cancel button?

View 1 Replies

Flex :: MessageBroker.getMessageBroker(null) Getting Null Pointer Exception?

Jun 12, 2010

I am creating Dynamic Destinations

MessageBroker broker = MessageBroker.getMessageBroker(null);
MessageService service = (MessageService) broker.getService("message-service");
MessageDestination destination = (MessageDestination) service.createDestination("Group1");

[code].....

But I am getting Null Pointer Exception

MessageBroker broker = MessageBroker.getMessageBroker(null);

View 1 Replies

Flex :: Clicking On Menu So That It Shows (null,null)"?

Aug 15, 2011

I have create a menu but when clicking on menu so that it shows, I get an error on the line because of the line "myMenu.show(null,null)". See function below:

private function createAndShowmyMenu():void {
myMenu = Menu.createMenu(null, myMenuDataProvider, false);
myMenu.labelField="@label"[code]........

View 1 Replies

ActionScript 3.0 :: Set Child Of A Parent To Null?

Jul 29, 2009

[code]...

and I dont mean this: (which removes the parent)

View 9 Replies

ActionScript 3.0 :: Determine When Child Is Null?

Jan 15, 2008

How can I determine if a child is present or not in a movieClip?

I'm trying to set up a conditional to determine whether or not a specified child object is present and if so, remove it. I'm having trouble finding relevant documentation on this.

View 9 Replies

ActionScript 3.0 :: Setting A Child To Null Perhaps?

Sep 30, 2009

I've having a problem when I am removing a child. There is an area where you can choose a button to click(there are multiple buttons here). Once you click a button it loads workss_mc and you can go back from there and workss_mc is being removed then work_mc is being added again. The problem is once it is added again and you click on any of the other buttons the frame label from the previous session when it was clicked is still at that location.

[Code]....

View 0 Replies







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