Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Actionscript linking.



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> Flash Forum
View previous topic :: View next topic  
Author Message
Ash
1000+ Club


Joined: 03 Aug 2005
Posts: 1016
Location: England

PostPosted: Sat Jan 14, 2006 5:59 pm    Post subject: Actionscript linking. Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
johneva
500+ Club


Joined: 29 Oct 2005
Posts: 561
Location: Stafford, England

PostPosted: Sat Jan 14, 2006 6:19 pm    Post subject: Re: Actionscript linking. Reply with quote

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

But this works for me. Smile

Code:
on (release) {
   getURL("http://WWW.YOUR URL.com");
}
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Ash
1000+ Club


Joined: 03 Aug 2005
Posts: 1016
Location: England

PostPosted: Sun Jan 15, 2006 11:33 am    Post subject: Re: Actionscript linking. Reply with quote

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:
stop();
?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
johneva
500+ Club


Joined: 29 Oct 2005
Posts: 561
Location: Stafford, England

PostPosted: Sun Jan 15, 2006 1:58 pm    Post subject: Re: Actionscript linking. Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Ash
1000+ Club


Joined: 03 Aug 2005
Posts: 1016
Location: England

PostPosted: Mon Jan 16, 2006 4:27 pm    Post subject: Re: Actionscript linking. Reply with quote

No I have not used any more flash in the file.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
johneva
500+ Club


Joined: 29 Oct 2005
Posts: 561
Location: Stafford, England

PostPosted: Mon Jan 16, 2006 4:38 pm    Post subject: Re: Actionscript linking. Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Ash
1000+ Club


Joined: 03 Aug 2005
Posts: 1016
Location: England

PostPosted: Mon Jan 16, 2006 5:19 pm    Post subject: Re: Actionscript linking. Reply with quote

The code for that is the same code I used but mine never worked. Maybe it's my version of Flash?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
johneva
500+ Club


Joined: 29 Oct 2005
Posts: 561
Location: Stafford, England

PostPosted: Mon Jan 16, 2006 6:14 pm    Post subject: Re: Actionscript linking. Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Samuel Rounce
100+ Club


Joined: 30 Oct 2005
Posts: 116
Location: London, UK

PostPosted: Wed Jan 18, 2006 8:13 pm    Post subject: Re: Actionscript linking. Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
Ash
1000+ Club


Joined: 03 Aug 2005
Posts: 1016
Location: England

PostPosted: Wed Jan 18, 2006 8:18 pm    Post subject: Re: Actionscript linking. Reply with quote

I know what I was doing and it was not dumped on the timeline.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
johneva
500+ Club


Joined: 29 Oct 2005
Posts: 561
Location: Stafford, England

PostPosted: Wed Jan 18, 2006 8:19 pm    Post subject: Re: Actionscript linking. Reply with quote

Oh come on then tell us what were you doin?
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> Flash Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap