2 Replies Latest reply on Oct 23, 2006 11:58 AM by ntsiii

    Accessing Root level control

    babo_ya Level 3
      In Flash you can use '_root.' to access the top level items. For example in Flash if you create a textinput and in a new class object function i can say, _root.textinput.text like below

      class MyClass
      public MyClass()
      _root.textinput.text = "haha";


      So, my question is how can I access the root level controls in Flex?
      I have a list control named, shoppingCartList and I have a newly created class Object called shoppingCartObject which get created in the begining. And in my class I have a function that should do something like _root.shoppingCartList.dataProvider = product_ary. But, in Flex there is no such variable like '_root'. How can I accomplish this in Flex?