Flash - Rotating movieClip around a buttons' centre
4 replies, posted
Hello, I'm learning Flash at the moment and I'm going to make a flash menu for my website and I wonder if anyone have any tutorial on how to make something rotate around one of my buttons' centre. Here's the code I have currently:
[code]
import fl.transitions.Tween;
import fl.transitions.easing.*;
var buttonsArr:Array=new Array(home,ommig,musik,luffa,omsidan,filer,smilies,bilder,email);
for (var i:uint = 0; i < buttonsArr.length; i++) { buttonsArr[i].addEventListener(MouseEvent.ROLL_OVER, moveFollow);
function moveFollow(event:MouseEvent):void { new Tween(follower,"y",Strong.easeOut,follower.y,event.currentTarget.y, 1,true); }
}[/code]
Might not be so clean, but it was pretty much copy pasted.
Here's how it looks by the way:
[url]http://filesmelt.com/downloader/menu.swf[/url]
tldr;
I need the red cross to rotate around the Email button, how?
[editline]03:35PM[/editline]
Tried google, no hit on my searches at least.
Can't you put the red cross at the edge of a transparent circle bigger than the email button and turn that around its own axis?
Eh, what? I want it as an animation, sorry for not specifying.
Also, I need help making those texts actually link to something without fucking up the animations
Start writing out what you need done. Figure out what some ways of doing it and make sure it would work and then try it out.
Sorry, you need to Log In to post a reply to this thread.