-
Basic Flash help needed.
Does anyone know how to make simple flash animation, something simple like this:
http://www.sherylcrow.com/
I want to be able to replicate the movement of the buttons on the bottom of the page, and have them as links, does anyone know how to do this?
Cookie in it for any help :D
Thanks,
Adam.
-
-
Quote:
Originally Posted by
Ynot
lulz
In actuality, just open flash and tween the buttons then open the actionscript panel and put this on the button:
Code:
on(release){
getUrl(url)
}
Where url is the url of the site you want in quotes. getUrl("dreamviews.com") would fetch you dreamviews.
-
Tween the buttons? I am new to all this lol
-
=O I thought you had flash experience.
Probably thinking of someone else. Anyway, first you need to get flash. You can get the trial off the adobe web site. Then, look at some tutorials
-
I have Flash 8 on my PC - I can do basic stuff, like fixing your link when you had a flash sig ;) and I made the snowing signature before I was told to remove that.
But this motion stuff is all new to me.. Are you able to help at all? I got banned from a Flash forum for posting that link and asking for help... Fucking cock jockeys!!!
Anyhoo, if you could help that would be great. I have everything I need, just don't know how to do it.
Thanks,
Adam.
-
Wow, cock jockeys' indeed.
There are two ways to do this. The easier way, but maybe not as cool, would be to simply set animations on button hover and button hover off. Search how to do "shape tweening" in flash. What you basically do is set the button in the beginning, and in the end you want it to be rotated and slightly larger. Set that tween as the animation for hover over. For hover off, simply do it backwards. The other way would be to do it entirely in code.
Basically, (I haven't done flash for several years so forgive me, this won't be correct code at all but it's what it would be like)
on (hover){
if (xscale<150){
if (yscale < 150){
xscale =+2
yscale = +2
}
}
if (rotation<45){
rotation =+2
}
That code is completely wrong, but it's the general idea. What you want to do is make it say that whenever the button is hovered, you want to increase the size (xscale and y scale) until it reaches the desired size (hence "if x/yscale is less than whatever). Do the same for rotation. For hover off, do the same thing but backwards. Personally I would go with the code, because it's A) 100 times easier to modify and you can easily repeat it to add to different buttons, instead of animating a bunch of buttons, as well as letting you very quickly change how it is animated B) I hate shape tweens as well as animating buttons C) straightforward.
-
Sweet, sounds simple enough lol.
I will try google again :)
Thanks,
Adam
-
OKay so I managed to create the movement, but having trouble getting it to only move on hover over, and getting the link to work :(
-
Are you doing it with the code? Make sure it's set to move only when the mouse is hovered over. And for the link, you have to set so "on release" it opens up a link.
-
Well I got the links working for now - will work on the movement more tomorrow when I have time :)