Class : Questions


class findXY 
{
 public var a:String=new String();
 public var d:Number=new Number();
 
 function findXY()
 {
  d=1; 
 }
 
 public function k()
 {
    
   _root[a].onEnterFrame=function ()
  {
      trace("d="+d); 
      this._x+=d;
      
  }
  
 }
 
}

The value of “d” traces undefined … how can I access it from the onEnterFrame function?