Click to See Complete Forum and Search --> : rotation of swf-movie- howto??
gorky2
02-04-2002, 07:41 AM
Hi,
perhaps a stupid question:
I import a swf-object in my movie. this swf-object should be rotated by a special amount (e.g 120 degrees) when the user presses a button. I think with Actionscript this should be possible, but I cant get in working
Any tip or hint would be appreciated
Thank you
Gorky
rtwodtwo
02-04-2002, 07:54 AM
Make sure your swf object is a movie with an instance name, then place some code on the button that is similar to this;
on(press){
_root.instancename._rotation=120;
}
This should work ok any probs let me know. Peace
gorky2
02-04-2002, 08:21 AM
Originally posted by rtwodtwo
Make sure your swf object is a movie with an instance name, then place some code on the button that is similar to this;
on(press){
_root.instancename._rotation=120;
}
This should work ok any probs let me know. Peace
Hello rtwodtwo!
I used the menu File --> Import flash Movie as Object
How can I give an instancenamte to this swf-object??
Thanks
Gorky
bridelh
02-04-2002, 08:24 AM
Also, in Version 2.8 the rotation point is at top left, so you will have to position the content with care.
If you can wait, Version 3 is a LOT easier. You will be able to rotate from anywhere within a MovieClip.
Regards
Hilary
--
gorky2
02-04-2002, 08:58 AM
(B]
How can I give an instancenamte to this swf-object??
[/B]
Okay,
with list shapes I can give instance names to swf-objects (I found this in an article by johnie, thanks johnie!
but the AS-code still as posted by rtwodtwo doesn´t work
Gorky
bridelh
02-04-2002, 09:30 AM
Ok, here's an example with download .fun files:
http://www.bridel.org/koolmoves/help/rotation/rotation.html
Send me your file if you still have problems.
Regards
Hilary
hpbridel@zeta.org.au
johnie
02-04-2002, 03:30 PM
It's probably something to do with how you are referencing the instance. I hardly ever use _root anymore unless I really mean root but rather use the realtive terms this and parent in targeting the instance.
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.