| View previous topic :: View next topic |
| Author |
Message |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1016 Location: England
|
Posted: Sat Jan 14, 2006 5:59 pm Post subject: Actionscript linking. |
|
|
I am making a new website and I want the links to be in flash so I added some actionscript to it but it don't work. Is this the right code:
| Code: |
on (release) {
getURL("http://s15.invisionfree.com/Online_gamers/index.php?act=idx", "_blank");
}
on (release) {
stop();
}
|
If not what is? |
|
| Back to top |
|
 |
|
|
johneva 500+ Club

Joined: 29 Oct 2005 Posts: 561 Location: Stafford, England
|
Posted: Sat Jan 14, 2006 6:19 pm Post subject: Re: Actionscript linking. |
|
|
I have never used the extra stuff you have on yours.
But this works for me.
| Code: |
on (release) {
getURL("http://WWW.YOUR URL.com");
} |
|
|
| Back to top |
|
 |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1016 Location: England
|
Posted: Sun Jan 15, 2006 11:33 am Post subject: Re: Actionscript linking. |
|
|
| I put that code in and when I press ctrl and enter it opens the link i used. Do I need to add a
? |
|
| Back to top |
|
 |
johneva 500+ Club

Joined: 29 Oct 2005 Posts: 561 Location: Stafford, England
|
Posted: Sun Jan 15, 2006 1:58 pm Post subject: Re: Actionscript linking. |
|
|
You should not need to no.
It should only work once you release.
Have you used any action script in the rest of the Flash object?
Maybe that is activating it for some reason??? |
|
| Back to top |
|
 |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1016 Location: England
|
Posted: Mon Jan 16, 2006 4:27 pm Post subject: Re: Actionscript linking. |
|
|
| No I have not used any more flash in the file. |
|
| Back to top |
|
 |
johneva 500+ Club

Joined: 29 Oct 2005 Posts: 561 Location: Stafford, England
|
Posted: Mon Jan 16, 2006 4:38 pm Post subject: Re: Actionscript linking. |
|
|
Oh where are you adding the action script?
It should not be in with the rest of the frames of the movie clip.
Here take a look at this button I have made.
Link to Button |
|
| Back to top |
|
 |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1016 Location: England
|
Posted: Mon Jan 16, 2006 5:19 pm Post subject: Re: Actionscript linking. |
|
|
| The code for that is the same code I used but mine never worked. Maybe it's my version of Flash? |
|
| Back to top |
|
 |
johneva 500+ Club

Joined: 29 Oct 2005 Posts: 561 Location: Stafford, England
|
Posted: Mon Jan 16, 2006 6:14 pm Post subject: Re: Actionscript linking. |
|
|
Are you putting it in the same place though?
As far as I know it is the same code for all versions of Flash. |
|
| Back to top |
|
 |
Samuel Rounce 100+ Club

Joined: 30 Oct 2005 Posts: 116 Location: London, UK
|
Posted: Wed Jan 18, 2006 8:13 pm Post subject: Re: Actionscript linking. |
|
|
| make sure it's applied to the button and not just dumped on the main timeline (that's if you don't have it dot prefixed with the instance name). |
|
| Back to top |
|
 |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1016 Location: England
|
Posted: Wed Jan 18, 2006 8:18 pm Post subject: Re: Actionscript linking. |
|
|
| I know what I was doing and it was not dumped on the timeline. |
|
| Back to top |
|
 |
johneva 500+ Club

Joined: 29 Oct 2005 Posts: 561 Location: Stafford, England
|
Posted: Wed Jan 18, 2006 8:19 pm Post subject: Re: Actionscript linking. |
|
|
| Oh come on then tell us what were you doin? |
|
| Back to top |
|
 |
|