flip graphic

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
petero
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 59
Joined: Sat Jan 20, 2007 4:09 am

flip graphic

Post by petero » Mon Nov 26, 2007 3:30 am

I can flip a selected graphic in edit mode using the Object menu. However, I can't seem to do it in a script.

The following does not work"

flip graphic "Graphic 3" horizontal

Thanks in advance for any suggestions.

peter

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Mon Nov 26, 2007 6:54 am

Hi Peter,

Not every object can be arbitrarily flipped and rotated; in fact, the 'flip' command only works for images. What the Revolution IDE does for you when you filp the graphic, is recalculate the 'points' of the selected graphic.

To find out more about how the Revolution IDE's Object menu works, type the following in the message box:

Code: Select all

edit script of button "Object" of group "revMenubar" of stack "revMenubar"
then hit return. You should be taken to the script of the menu.

Hope this helped,

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

Post Reply