Re: [Flashcoders] getBounds() :: not working // AS2

2008-11-19 Thread artur

nevermind.. got it. (this)!

var b:Object = _root.mask_mc.getRect(this);

// never code 7am in the morning w/out coffee.







___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] getBounds() :: not working // AS2

2008-11-19 Thread artur

sorry for the newbie post..but..
this is killing me!!

the coordinates i get from getBounds() - dont update after i change the 
size of my mclip. why!?



function getBOUNDS(){
  
   trace(MASK WIDTH=+mask_mc._width)
  
   var b:Object = _root.mask_mc.getRect(_root.mask_mc);
  
   for (var i in b) {

   trace(i+ -- +b[i]);
   }
  
   //trying to delete the object

   delete b;
   b = {} ;
}


  
   BTN.onPress=function(){


   stroke._width=500;
   mask_mc._width=500;
  
   getBOUNDS();
  
  
   }
 
   getBOUNDS();



my FLA : http://www.design2dev.com/getBOUNDS.fla

-thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders