It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Flash Forum

Actionscript linking.

Moderator: Phate

Actionscript linking.

Postby Ash on Sat Jan 14, 2006 4:59 pm

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: Select all
on (release) {
    getURL("http://s15.invisionfree.com/Online_gamers/index.php?act=idx", "_blank");
}
on (release) {
    stop();
}


If not what is?
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby johneva on Sat Jan 14, 2006 5:19 pm

I have never used the extra stuff you have on yours.

But this works for me. :)

Code: Select all
on (release) {
   getURL("http://WWW.YOUR URL.com");
}
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby Ash on Sun Jan 15, 2006 10:33 am

I put that code in and when I press ctrl and enter it opens the link i used. Do I need to add a
Code: Select all
stop();
?
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby johneva on Sun Jan 15, 2006 12:58 pm

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???
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby Ash on Mon Jan 16, 2006 3:27 pm

No I have not used any more flash in the file.
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby johneva on Mon Jan 16, 2006 3:38 pm

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
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby Ash on Mon Jan 16, 2006 4:19 pm

The code for that is the same code I used but mine never worked. Maybe it's my version of Flash?
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby johneva on Mon Jan 16, 2006 5:14 pm

Are you putting it in the same place though?

As far as I know it is the same code for all versions of Flash.
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby stewball on Wed Jan 18, 2006 7:13 pm

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).
User avatar
stewball
100+ Club
 
Posts: 116
Joined: Sun Oct 30, 2005 6:30 pm
Location: London, UK

Postby Ash on Wed Jan 18, 2006 7:18 pm

I know what I was doing and it was not dumped on the timeline.
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Next

Who is online

Users browsing this forum: No registered users and 0 guests