Groups | Blog | Home
all groups > flash (macromedia) > march 2005 >

flash (macromedia) : Making entire flash button into a hotlink


nicatnite
3/4/2005 9:45:49 PM
OK, I'm a novice flash user and creator so I may use the incorrect terms for
things. I have created a small flash image which I'm trying to use as a button
of sorts. This image is made up of a bitmap and a graphic which motion tween
between each other. I want to place this flash image (graphic/movie?) into an
HTML page. When someone clicks on any part of this image/graphic I want it to
send the user to another web page of my choosing. I've played with behaviors
and can only get the button to be "hot" one frame at a time. I've tried
placing <a></a> link tags around different parts of the Flash code in my HTML
page and that doesn't seem to work either. Suggestions? I'm sure there is an
obvious solution I am missing.
NSurveyor
3/4/2005 10:27:41 PM
Create a new layer on top of the rest of the ones in your flash movie. Then,
draw a big box, with any colored fill. (make sure it is any color but none and
covers the stage). Double-click on your box, and go to Modify > Convert to
Symbol (or Insert > Convert to Symbol if you use MX 2003). Type in my hot_spot
for the name and select the "Button" radio button. THen hit OK. Now,
double-click on your button. You should enter the buttons timeline, which
consists of 4 frames. Drag the first frame, the UP frame over to the fourth
frame, or the HIT Frame. Finally return to the main stage, (by clicking on
"Scene 1"). Finally, click on your button, open the actions panel (Window >
Actions) and past in the following code:

on(release){
getURL('http://mysite.com/somelink.htm/','_blank');
}
meltedown
3/4/2005 11:21:08 PM
[quoted text, click to view]

http://www.reenie.org/test/flash/butttest2.fla
http://www.reenie.org/test/flash/butttest2.swf

I tried to do this and there's no button in the test or the swf
What is the problem

nicatnite
3/4/2005 11:31:08 PM
Thanks! That got me much closer. Now my button/movie will go to a webpage if
clicked on while it runs. I have it set to not-loop however and now when it
finishes its timeline it goes back to being just a graphic - not a hotspot.
Have another solution up your sleeve, please?
NSurveyor
3/4/2005 11:43:50 PM
Where did you place the hotspot button? You should be placing it on the main
timeline over everything else on a new layer? Did you do that? If not, could
you upload the file to somewhere, and then send the link?
nicatnite
3/4/2005 11:57:56 PM
My mistake. It took me a few mistakes to follow your instructions and on my
last trial I was concentrating on the action script code and didn't realize I
was working on one of my graphic layers rather than the new button layer you
suggested I make. All better now and working great. Thanks so much for your
help, this would have taken me hours in my Flash book to figure out. Have a
great weekend! Nicole
NSurveyor
3/5/2005 12:11:29 AM
AddThis Social Bookmark Button