--- In [email protected], "fotis.chatzinikos" 
<[EMAIL PROTECTED]> wrote:
>
> Class already marked[Bindable]; property-level [Bindable] is 
redundant
> and will be ignored,
> 
> but i do not have any property level bindings:
> 
> Is it better/ more appropriate to mark the fields/properties as
> [Bindable] and remove Bindable from the class?
> 
> Code:
> 
> package beans
> {
>       [RemoteClass(alias="net.w2w.rpc.beans.UserActionNewsRPC")]
>       
>       [Bindable]
>       public class UserActionNews
>       {
>           public var newDescription:String ;
>           public var linksMap:Object ;
>           public var dateTime:Date ;  
> 
>           public function UserActionNews()
>           {
>               newDescription = "" ;
>               linksMap = new Object() ;
>               dateTime = new Date() ;
>           }
>       }
> }
> 
> I am using the binding in an inline item renderer:
> 
> <mx:itemRenderer>
>   <mx:Component>
>     <mx:Canvas width="100%" height="50">
>       <mx:Script>
>         <![CDATA[
>           import beans.UserActionNews;
>         ]]>
>       </mx:Script>
>         <mx:Image x="0" y="0" width="40" height="40" source=""/>
>       <mx:Label x="0" y="0" textAlign="left" text="{(data as
> UserActionNews).newDescription}"/>
>     </mx:Canvas>
>   </mx:Component>
> </mx:itemRenderer>
>

Try cleaning the project.

HTH;

Amy


Reply via email to