3 Replies Latest reply on Jun 14, 2007 7:12 AM by kglad

    setRGB from custom class

    Pop_Clingwrap Level 1
      I have a custom class that adds clips from the library to another clip on the stage. The clips i am adding have a text field and a bullet point inside and given the tempory name 'item'. After the class adds a clip I can position the bullet point using item.bullet._x and _y but when I try to use the following script i get no result at all:

      var newCol:Color = new Color(item.bullet);
      newCol.setRGB(0xff0000);

      If i swap item.bullet for a clip on the root level it works but not for the bullet.
      The movieclips i am adding are registered as instances of another custom class. Could this have something to do with it?

      Any thoughts welcome as the deadline is looming
      Cheers