Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-27-2001, 09:29 AM   #1
Liquid
Registered User
 
Join Date: Mar 2001
Posts: 166
Default

Hey all,
Can someone tell me how to flip an object horizontally or vertically instead of having it rotate clockwise or CCW... thanks
Liquid is offline   Reply With Quote
Old 03-27-2001, 09:40 AM   #2
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

A neat trick posted a by a user is:

_root.object._xscale = -1;

Cheers

Jesse
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 03-27-2001, 09:48 AM   #3
Liquid
Registered User
 
Join Date: Mar 2001
Posts: 166
Default _root.object._xscale = -1; ?

Jesse,

Do you have a link for the original post for that expression... I'm not sure if I'm placing it in the wrong parameter because it isn't working.. I'm doing something wrong, but just don't know what it is heh..
Liquid is offline   Reply With Quote
Old 03-27-2001, 10:46 AM   #4
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

That could be because I wront the wrong code (left out the * )

try:

_root.object._xscale *= -1;

Cheers

Jesse
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 06-30-2011, 08:55 AM   #5
chandni
Registered User
 
Join Date: Oct 2008
Location: delhi,india
Posts: 9
Default Object position change after flip

Hi,
i am dynamically create the rectangle shape , and on the button press i am flip the recatgle , but after flip recatngle postion is changed. I am also sending the attachment with this message.






Quote:
Originally Posted by Jesse View Post
That could be because I wront the wrong code (left out the * )

try:

_root.object._xscale *= -1;

Cheers

Jesse
chandni is offline   Reply With Quote
Old 06-30-2011, 08:58 AM   #6
chandni
Registered User
 
Join Date: Oct 2008
Location: delhi,india
Posts: 9
Default

For flip the object vertically use:

_root.object._scaley*=-100; for as2

object.scaleY*=-1 ; for as3.
chandni is offline   Reply With Quote
Old 06-30-2011, 09:02 AM   #7
chandni
Registered User
 
Join Date: Oct 2008
Location: delhi,india
Posts: 9
Default

Hi Liquid ,

for flip object horizonattly use :

_root .object._xscale*=-1; for as2

object.scale_X*=-1; for as3

for verticall use :

_root .object._yscale*=-1; for as2

object.scale_y*=-1; for as3
chandni 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Database simulated with arrays on a cd-rom lecasn5 Components 61 09-07-2004 11:40 AM
PIXELWIT flipping page book changes happyjime ActionScript 2.0 4 08-14-2004 12:09 PM
enterframe and load and objects, oh my! dice ActionScript 1.0 (and below) 13 07-18-2003 11:07 AM


All times are GMT. The time now is 07:31 AM.

///
Follow actionscriptorg on Twitter

 


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