Actionscript 3 :: Access Non-visible Flex Components?

Oct 3, 2011

I'm building a flex 4.5 app that has a custom component extending SkinnableContainer. This custom component is basically a kind of collapsible panel. When you open it you see all the controls in the contentGroup, when you close they go away and you are left with the title. This is done in the skin by having the contentGroup included only in the open state.

I have a bunch of these containers in the app, some open by default and some closed. So in mxml the structure looks like:

<ui:MyCustomContainer open="false" label="bla">
<s:HGroup>
<s:Button />
<ui:AnotherComponent />

[Code].....

Note that if you hit the click me button before opening the second container we are unable to get the value from the control in the initially collapsed group. Opening the group once allows access to the value. Collapsing the group is still ok. It's the first time that's the problem. I have added creationPolicy to the container and itemCreationPolicy to the content group in the skin but no luck!

View 1 Replies


Similar Posts:


Flex :: Access MXML Components Within Ascript Files?

Jul 29, 2011

How do I get round the following error: Access of undefined property pMatrixBack . How do I access this component from within the ascript file?[code]...

View 2 Replies

Flex :: Access Objects In Custom Components File In It?

Sep 18, 2011

I am pretty new to flex, specially to mxml part. There are some confusing things for me.[code]...

So question is how do I access that button's properties. I want when something happens in Xyz file, button's (someId) visibility to become false. If Abc.mxml was AS class file then it would be easy, just make object etc., but how to get if it's mxml file.

View 1 Replies

Flex :: Components - Components - Any Component With The Functionality Such As Horizontally Collapsible Window Or Panel

Aug 22, 2010

Do you know any flex component with the functionality such as horizontally collapsible window or panel I found arc90, but it folds vertically.

View 1 Replies

Flash :: Flex Dynamically Created Components Added To Custom Components

Sep 8, 2009

I am created a dynamically adding a VBox, that contains two images. Into a Custom Component that is derived from UIComponent. The problem is the Vbox that contains the two image is only a really tiny size. I would like the VBox stretch to the size of the two images. This is how I am creating the Vbox....

[Code]...

View 1 Replies

Flex :: Bindable - Error "1195: Attempted Access Of Inaccessible Method IsShowingPower Through A Reference With Static Type Components"

Jul 8, 2010

I have a class called which is called ChartInfo,and it has a getter and setter methods as:

[Code]....

It will always give error like: 1195: Attempted access of inaccessible method isShowingPower through a reference with static type components.charting:ChartInfo.

View 2 Replies

Is It Bad Design To Nest Components Inside Components Using Flex 4

Sep 15, 2010

Is it bad practice/design to nest components inside components using Flex 4? Should I simply be creating components and inserting them into my main application as below, or doesn't it matter?

<com:MyComp1>
<com:MyComp2>
<com:MyComp3>

[code]....

View 1 Replies

Flash :: Builder Access CS5 Components?

Sep 26, 2010

I have a project in flash cs5 with some buttons and textInputs. Ive linked my project up with Flash Builder and now want to access my textInput from within my Flash Builder source. i gave the textInput instance name of "txt1" in Flash CS5 but when i try to reffrence it in my Flash Builder project there is no option to set it as type TextInput. I can only set it to type MovieClip and when i do that and publish it tells me cannot convert from fl.controls.TextInput to MovieClip.

View 1 Replies

ActionScript 3.0 :: Access Components In A NavigatorContent?

Nov 2, 2010

I try to access a simple component that is part of a NavigatorContent:

Code:
<s:NavigatorContent id="tabDebugOutput" label="DebugOutput">
<s:VGroup>
<s:TextArea id="debugOutput" top="5" right="50" width="800" height="120"/>

[Code]....

How can I access the component (independent from their current placement in the layout?) ?

View 0 Replies

Flash :: IDE - Access Components Instances In HTML?

Feb 3, 2009

I am using flash CS3 with ActionScript 3.0. Suppose, I created a button component and a Combo-box component. Hence, SWF file consists of a Button and a Combo-box component. Now, my requirement is, How to access the instances and properties of these components(Button and Combo-box), so that I can create HTML webpages depending upon the Combo-box selection and the Button click events occurred on flash components? Note: Here, we need to pass/send the flash components' instances to HTML. How can we do it?

[Code]...

View 1 Replies

ActionScript 3.0 :: How To Access Instances / Properties Of Flash Components

Feb 3, 2009

I am using flash CS3 with ActionScript 3.0. Suppose, I created a button component and a Combo-box component. Hence, SWF file consists of a Button and a Combo-box component. Now, my requirement is, How to access the instances and properties of these components(Button and Combo-box), so that I can create HTML webpages depending upon the Combo-box selection and the Button click events occurred on flash components? Here, we need to pass/send the flash components' instances to HTML. How can we do it? All I want is to access the flash components in HTML.

View 3 Replies

ActionScript 2.0 :: Access FLVPlayback Components And Change Parameters?

Dec 22, 2010

ActionScript Code:
for (var v = 0; v <= 10; v++) {
var flv = attachMovie("FLVPlayback", "my_FLVPlybk" + v, v+1, {width:20, height:20, x:100, y:20});
}
With this code I have created 10 flvplayback components and inserted in the screen. How to access to each of this components i have created and change parameters like pause() them stop() play() add contentPath etc., I need that only after the loop is finished not while the loop is still on. Something like
findComponent("my_FLVPlybk1").stop();

View 2 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 :: Create Advanced Flex Custom Components Library?

Nov 25, 2011

I want to create a custom component library. the components are customize-able during creation time. means like Accordion or TabNavigator, when we drag and drop the Accordion in flash builder it

<mx:Accordion x="38" y="167" width="200" height="200">
<s:NavigatorContent width="100%" height="100%" label="Accordion Pane 1">
</s:NavigatorContent>

[code]....

View 2 Replies

Flex :: Bubbling Events Within Custom Components In Flex?

Jan 11, 2010

I am using a custom component within another custom component in a flex mxml application file.Is it possible to bubble events from an inner component to the outer component and handle events in the outer component?

View 3 Replies

ActionScript 3.0 :: In-visible Sprite With Visible Children?

Sep 28, 2011

My question is: Set parentSprite.visible = false will make all children in parentSprite all invisible, right? And is there any way to just make parentSprite itself invisible without effecting it's children?

View 2 Replies

ActionScript 3.0 :: On Click Object Visible Not Visible

Aug 8, 2010

I want to click on an object and make it appear and disappear. As the object is rectangular, I figured putting a white button the same size on a white background on a layer underneath the object would do this, but I can't seem to make it happen.I'm a complete novice, frustrated as I've been trying to achieve this all day and I'm sure it should be pretty simple, but could you give me the idiots guide. I know how to name an instance, make an object, script in actions on a separate layer. I would like to draw the button myself and give it an instance rather than drag it off the button component (as I can't work out how to make the component button white, change its size etc.!)

View 5 Replies

ActionScript 2.0 :: Visible = True & Visible = False?

Apr 1, 2009

Code:
my_Dyn_Txt1._visible = false
cb1.onRelease=function()[code]....

When the checkbox (cb1) is clicked the "my_Dyn_Txt1" is visible. The problem I'm having is - when I move forwad and back in my frames the checkboxes which were clicked are not visible due to

Code:
my_Dyn_Txt1._visible = false

How can I make ("my_Dyn_Txt1"), a clicked checkbox STAY VISIBLE even after I move forwad and back in my FLA frames?

View 11 Replies

Flex :: Make A Set Of Flex Components A Unit?

Nov 8, 2009

I'd like to make a series of components into a solid, consistently repeatable object. For example, suppose I have a "notification" template that I want to add to a notifications area every time something new happens. This template includes an icon (Image), text (label), and some space between these two things.

I want to take a template like that and make it so I can invoke it with a function like add_notification("icon", "text"). How would I go about doing that?

View 1 Replies

Flex :: Using Flash Components Into Flex Application?

Sep 14, 2010

What is the right way for integrating a Flash component into a Flex application? I heard that there are different ways of integration between Flash and Flex: using SWF, using SWC (something else?). What are theirs pros and cons? What are the points of communication between them Flash and Flex? `I'm using Flash Builder 4 for developing Flex. And Flash Professional CS 5 for developing Flash.

View 1 Replies

Flex :: Get The Index Of First Visible Element?

Jan 21, 2011

I have a simple list in Flex that is populated every N seconds by a dataprovider. My goal is to avoid scrolling the list after the dataprovider has been changed.

So, before I populate the list, I save the selectedIndex, and once the dataProvider is filled, I call:

list.selectedIndex = index;
list.scrollToIndex(index);

Trouble is that this moves the selected item of the list to the top. The solution would be to get the index of the first element displayed in the list: but I have no idea on how to get that.

View 1 Replies

Flex :: AdvancedDataGrid: How To Tell How Many Rows Are Currently Visible

Mar 8, 2011

how to query an ADG (or its rows) to figure out how many rows are currently visible (i.e. not collapsed) when displaying different levels of a hierarchical collection?In other words I'd like a function that tells me that 7 lines are visible in this view and 1 line is available in this one.

View 2 Replies

Flex :: Get Visible Size Of Component?

May 16, 2011

I have DataGrid with horizontal scrollbar. How can I get its visible width?

View 1 Replies

Flex :: Tell When Control Becomes Visible For The First Time?

Jun 7, 2011

I have a popup that contains a TabNavigator control. The tabs are dynamically added to the TabNavigator when the popup loads. Is there a good way to tell when one of the tabs is loaded, from the tab itself?I have a tab that requires a service call to be made, and I don't want the service call to be made unless the user actually goes and clicks the tab to view it. I could notify the tab from the popup control itself when the TabNavigator index was changed, but that doesn't seem like a good way to go about doing it.

View 3 Replies

Flex :: Chart Columnseries Not Visible?

Jun 27, 2011

I have a flex chart that I'm trying to build via actionscript dynamically. For test purposes I came up with the following data structure and code:

Bindable]
public var columnDat:Array=
[{signalID:"SCL", point2:100},

[code].....

View 2 Replies

Flex :: Component Isn't Visible On The Form

Aug 1, 2011

I made a very simple component to replace any component (e.g. a comboBox) on a form that is hidden if a user does not have access to change the value:

[Code].....

But regardless of whether or not objControl is visible, it doesn't get displayed.

View 1 Replies

Flex :: Mobile - Know Which Itemrenderer Is Visible?

Mar 19, 2012

I have a sparks List with the following attributes:

verticalScrollPolicy="off"
horizontalScrollPolicy="on"
pageScrollingEnabled="true"

[code]...

View 1 Replies

Flex :: Access To Object Property When The Propety To Access To It's In A String Variable?

Oct 20, 2010

It's too complicate to explain but I'll give you an example

I have an AS3 ResultEvent Object and this object has several propeties which can be accessed by this like:event.result.name or event.result.age and, I have this String variable: eventProperty:String that contains "name" or "age" How do I access to event.result. with the variable?

View 2 Replies

Actionscript :: Use Components Code In Mmxl Components

May 8, 2011

how i can use actionscript component code in mmxl components,as in actionscript components we use classes ,but in mmxl component we can not use classes function, so how i can use actionscript component code in mmxl component

[Code]...

but i cant use this code in mmxl components how i can use public class DialogTitle extends HBox implements IBindingClient in mmxl component code,what are the way to use it,sorry i am newbie if it is silly question

View 1 Replies

Adding Flex Components Using Xml?

Jul 28, 2009

I have a dozen different custom components in my flex app. I want to use an external xml config file to load the components at run-tine. Can someone tell me whats the best way to architect this? I want to load these components and add dataProviders and event liseners to them at runtime.

View 1 Replies







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