3 Replies Latest reply on Nov 12, 2007 6:19 AM by hsujon

    Accessing Dynamically Added component.

    hsujon Level 1
      I have to add more then one image component inside another image/canvas component. and change the image source of those added image component time to time.
      I have used addChild() method. and done the adding part.
      now I can access all the component x,y width,height event alpha etc. through
      var target1:DisplayObject = map.getChildByName("component name");
      target1.x or target1.y

      but I cant change the source of the image component through
      target1.source

      how can I do this.
      please someone help me. I am out of idea.

      my target is to build something like "Callouts" component in the FLEX Interface Guide. but it will change its internal message or image on runtime.