Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-19-2009, 11:14 PM   PM User | #1
jasonc310771
Regular Coder

 
Join Date: Mar 2006
Posts: 478
Thanks: 3
Thanked 0 Times in 0 Posts
jasonc310771 can only hope to improve
on click anywhere within flash takes visitor to URL

i have tried to add an action to a background but this did not work it just opens the URL on load of the flash movie.

how do i get it to open only if clicked on the flash movie.
jasonc310771 is offline   Reply With Quote
Old 11-16-2009, 09:29 PM   PM User | #2
CoffeeCup.com
New Coder

 
Join Date: Oct 2009
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
CoffeeCup.com can only hope to improve
Hello,

You will have to modify this within your Flash creator software. Open your file with whatever software you used to create your project and add the link here. Then re-save your file and now the link should work. Other wise, you are going to have to add a link to the .swf file.

Hope this helps!!!
CoffeeCup.com
CoffeeCup.com is offline   Reply With Quote
Old 11-19-2009, 10:02 AM   PM User | #3
[Paul Ferrie ]
Regular Coder

 
Join Date: Nov 2009
Location: Scotland / Glasgow
Posts: 184
Thanks: 1
Thanked 19 Times in 19 Posts
[Paul Ferrie ] can only hope to improve
I am assuming your using flash and AS2.
Create a button that fills your stage are.
Give it an instance name "butLink"
then on the key frame where the button is put the code below. Replace "theURL" with your url.


butLink.onRelease =function(){
getURL("http://www.theURL.com", "_blank")
}


hope it helps
[Paul Ferrie ] is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:43 PM.


Advertisement
Log in to turn off these ads.