Simply define class members with the instance names of your movie
clips on the stage:

class Holder extends MovieClip {

  private var mc1: MovieClip;
  
  function Holder() {
    mc1._x = 50;
  }
  
}


n> i have a movieClip "holder" that contains other child movieClips (mc1, mc2,
n> mc3...) created in the flash interface.
>>From the librairie i linked themovieClip "holder" to this Class.
n> 
n> class Holder extends MovieClip{
n>  //constructor
n>  function Holder(){
n>   mc1._x=50
n>  }
n> }
n> 
n> But it says mc1 is undefined.Well, it is undefined in the class but it is in 
n> the movieClip which is linked to.
n> I was just wondering if i can access the movie clips created in the 
n> interface trought the linked class and how.
n> don't know if i was clear.... :)


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to