I have a bunch of draggable objects and I want to be able to rotate them. Is it best ( possible ? ) to rotate them based on keypress or how might you go about this.
Here is my keypress code so far ( draggin works - rotate doesn’t )
What version of Flash are you using ? Because this wirks well with Flash MX (on and onClipEvent on the same object), but not with Flash 5 (you’d have to put a button inside your clip).
Hi there and thanks for the replies, I appreciate them!
What I am creating is an app that allows people to design their own apartment layout. Basically, I’ve got it working where someone can drag different pieces of furniture / appliances onto the floorplan and rotate / size the pieces as necessary. To accomplish the rotating / sizing feature, I’ve created a separate menu with buttons for each piece of furniture. ( see attached jpg )
Is it possible to create only one set of modifying buttons, which will automatically rotate / resize the item that is currently selected? I’m guessing this will require something like creating a variable that is updated and sent to the modifying buttons when an item is selected
if you use duplicatemovieclips or attachmovieclips, make sure your original button, which is inside a movie clip has code attached to it. That way your code will always work regardless of instance name.