View Full Version : Simple banner
Claudiu Cristea
03-12-2003, 11:13 AM
Please don't laught!
I want to create a simple animated banner (.swf). I've just finish it, but I don't know how to attach him a link (URL). When the user click the .swf banner he will navigate to that URL.
Also please help me to make the cursor to be displayed in "hand" mode when the mouse is over the banner.
Can I pass the URL throught a parameter (<PARAM NAME=MYURL VALUE=http://www.domain.com>) to ActionScript?
RanTen
03-12-2003, 11:27 AM
Hi,
Just make an INVISIBLE button and place it covering ur entire banner.
Give it the action:
on(release){
getURL ("complete_url","window_or_frame_name")
}
Hope that helps....
Claudiu Cristea
03-12-2003, 11:37 AM
Thanx RanTen,
It's OK. But the other 2 things: "hand" style cursor & passing the URL to movie from HTML? Are these possible?
linckx
03-12-2003, 12:57 PM
don't know exactly what you mean by passing it through html...
but the cursor should automatically change to a hand when over the button...
robin
pinkaboo
03-12-2003, 02:32 PM
So are you wanting to be able to edit the URL the swf links to externally?
I don't see why this shouldn't be possible using the method you alluded to (appending the URL on a query string in HTML tags (http://www.macromedia.com/support/flash/ts/documents/set_variables.htm)) and then transferring that variable to the button action, something like:
on(release){
getURL (myURL,"_blank")
}
I'd test it out but I don't have Flash on this machine :( sorry, so of course, uhm, I might be totally wrong. Seems logical though.
Oh one thing though, in testing I think you need to test the files live, not locally else nothing will happen. (pulled my hair out over that mistake before)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.