...

View Full Version : Linking to other pages in Flash (Actionscript)



rushy
10-06-2006, 06:03 PM
I have tried all of the getURL() stuff but it doesnt work how can i link to other pages eg /Chassis heres my actonscript so far
butt1.onRollOver = over;
butt1.onRollOut = out;
butt1.text.buttonText.text = "Chassis ";

butt2.onRollOver = over;
butt2.onRollOut = out;
butt2.text.buttonText.text = "PARTS ";

butt3.onRollOver = over;
butt3.onRollOut = out;
butt3.text.buttontext.text= "Accessories ";

butt4.onRollOver = over;
butt4.onRollOut = out;
butt4.text.buttontext.text= "About US ";

function over() {
this.gotoAndPlay(2);
}

function out() {
this.gotoAndPlay(1);
}

and it is on http://rsbjr.com/Header1.html

_Aerospace_Eng_
10-06-2006, 06:14 PM
Maybe I'm not understanding you. Are you trying to get your buttons to go to other web pages or other frames in your flash file?

rushy
10-06-2006, 06:21 PM
other web pages but they are not as a button there as a movie clip

_Aerospace_Eng_
10-06-2006, 06:35 PM
Can you give us a link to the .fla file?

rushy
10-06-2006, 06:52 PM
http://rsbjr.com/header.fla

_Aerospace_Eng_
10-06-2006, 07:56 PM
Try something like this for your actionscript

butt1.onRollOver = over;
butt1.onRollOut = out;
butt1.onMouseDown = function()
{
getURL('http://www.yahoo.com');
}
butt1.text.buttonText.text = "Chassis ";


butt2.onRollOver = over;
butt2.onRollOut = out;
butt2.onMouseDown = function()
{
getURL('http://www.yahoo.com');
}
butt2.text.buttonText.text = "PARTS ";

butt3.onRollOver = over;
butt3.onRollOut = out;
butt3.onMouseDown = function()
{
getURL('http://www.yahoo.com');
}
butt3.text.buttontext.text= "Accessories ";

butt4.onRollOver = over;
butt4.onRollOut = out;
butt4.onMouseDown = function()
{
getURL('http://www.yahoo.com');
}
butt4.text.buttontext.text= "About US ";

function over() {
this.gotoAndPlay(2);
}

function out() {
this.gotoAndPlay(1);
}
Change the url to suit your needs.

rushy
10-06-2006, 10:45 PM
thanks all working great



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum