Learn how to a build a cloud-first strategyRegister Now


making class as [Bindable]

Posted on 2011-10-24
Medium Priority
Last Modified: 2012-05-12
hi guys

Is it a good idea to define a class as [Bindable]  ?

[Bindable]public class CustomGrid extends VBox  
[Bindable]public var customlookUp : customlookUp = getLookup() ;            

In some other class i want to use like this

public class Otherclass extends VBox  
[Bindable]public var customGrid:CustomGrid;
private function myFunction(event: flash.events.KeyboardEvent) : void {
if(customGrid != null && customGrid.customlookUp  != null){
customlookUp =  customGrid.customlookUp ;      

 The problem is i am getting customGrid as null .. any ideas?

Question by:royjayd
  • 2
LVL 29

Expert Comment

ID: 37020938
Bindable it's power feature in 90% Flex developers using Bindable variables

In your case if you declared Bindable in the class declaration all variable automatically are Bindable
You can omit Bindable key in this case, actually Flex Builder should gave you warnings
LVL 29

Accepted Solution

dgofman earned 1400 total points
ID: 37020956
You problem may be you didn't initialize customGrid variable in OtherClass

[Bindable]public var customGrid:CustomGrid = new CustomGrid();

Author Comment

ID: 37042414
can you please help me with this question

i will close all the flex questions in the weekend. Thanks a lot for the help.

Featured Post

Meet the Family that is Made for Collaboration

The TeamConnect Family product group as part of the Sennheiser for Business Portfolio comprising high-quality, technically well-conceived meeting solutions for business communication – designed for any meeting room and any meeting situation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
In this article I will be showing you how to subnet the easiest way possible for IPv4 (Internet Protocol version 4). This article does not cover IPv6. Keep in mind that subnetting requires lots of practice and time.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month20 days, 18 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question