Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Extensions and Plugins > JSFL - Extending Flash

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-13-2005, 05:13 PM   #1
pxl
Registered User
 
Join Date: Oct 2004
Posts: 3
Default 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 :\
pxl is offline   Reply With Quote
Old 03-14-2005, 03:17 PM   #2
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

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
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 03-28-2005, 01:10 AM   #3
pxl
Registered User
 
Join Date: Oct 2004
Posts: 3
Default Thanks

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.
pxl is offline   Reply With Quote
Old 05-19-2005, 01:59 AM   #4
sebasporto
Registered User
 
Join Date: Feb 2005
Posts: 9
Default Did it work?

Hi
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.

Thanks
Sebastian
sebasporto is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.