Jump to content


Actionscript [MC Alignment?]


  • You cannot reply to this topic
1 reply to this topic

#1 OutRage

    Young Padawan

  • Members
  • Pip
  • 7 posts

Posted 03 February 2006 - 05:16 AM

hey all i have a product search box on my stage and each product is a different size so i would like to know how to allign to centre once i have halfed the picture size this is how far im upto.....

onClipEvent (load) {
myPicture = "pad";
myPicture._x = myPicture.width/2;
myPicture._y = myPicture.height/2;
setProperty(pad, _x, 0);
setProperty(pad, _y, 98.4);
//myPicture.align?!
}

#2 FlawedKid

    Young Padawan

  • Members
  • Pip
  • 36 posts

Posted 12 August 2006 - 10:21 AM

your picture align

myPicture._x = Stage.width / 2;
myPicture._y = Stage.height / 2;

havent tested it but should do the job





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users