View Full Version : put objects in integer positions
I tried to do a script that sets the MovieClips and Textfields positions to integers and reset the scale to 100%, so they don't look blurry in high quality mode. But i only found how to reposition the entire selection, not each of the objects inside it. I need some clue on how to do this, because i'm tired of having to do it manually :\
03-14-2005, 02:17 PM
store your selection object's references in some temp array. then set the selection to each of those in turn, and do what you want to do.
ps welcome to the forum ;)
Thanks, i was trying to modify the positions via document.setSelectionBounds instead of using document.selection and applying a transformation with a matrix.
Well, I am a bit confused with the documentation, since there's a whole lot of objects and I don't really know where to search sometimes, hehe. :)
05-19-2005, 12:59 AM
I am wondering if you managed to get the script right. I also did a script exactly for that but I can't make it work perfectly.
My script works fine most of the times but sometimes it will scale the objects. For example if a mc is 100 pixels of width, when I get the width using jsfl it will respond 101 pixels. Always one pixel more. No idea why.
vBulletin® v3.8.5, Copyright ©2000-2014, Jelsoft Enterprises Ltd.