2 Replies Latest reply on Dec 7, 2010 8:04 AM by paolo.anghileri

    Referencing components in flex 4?

    paolo.anghileri Level 1

      I am used to create flex 3 applications using canvas.

      In this moment I am creating flex 4 applications but components are referenced only as classes and not as properties.


      Many times I ised this syntax to capture the web service result and putting the values in an array defined in the child component.


      Now this sintax:


          cmpBaseDataTabTaxa.arrTaxa=new ArrayCollection(event.result as Array);


      Gets an error 1119 because arrTaxa cannot be referenced inside a static class.


      Please note that in flex builder 3 code helper I saw components as properties, while in flex builder 4 I can only see them as class.


      Thanks for your help