Hi,

In this case semicolon is mandatory otherwise compiler sees the line
where you declared public constant ITEM_HEIGHT as

 public static const ITEM_HEIGHT:Number = 94[Bindable]

Compiler considers Bindable as a variable assigned to an array, rather
than as metatag [Bindable] and throws error.

-sathesh

On May 31, 3:25 pm, Saravanan <[email protected]> wrote:
> Hi,
>
> I have problem in setting the Bindable property in custom component...
>
> It shows error "Access to undefined property Bindable"
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml"; width="210"
> height="94" autoLayout="false">
>
> <mx:Script>
>         <![CDATA[
>
>                 public static const ITEM_HEIGHT:Number = 94
>
>                 [Bindable]
>                 public var quarter:String;
>
>                 public function SetData(_data:Object):void
>                 {
>
>                 }
>
>         ]]>
> </mx:Script>
> </mx:HBox>
>
> thanks in advance...

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to