Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Mar 2006
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Linking to other pages in Flash (Actionscript)

    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
    Code:
    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

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Mar 2006
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts
    other web pages but they are not as a button there as a movie clip

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Can you give us a link to the .fla file?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New Coder
    Join Date
    Mar 2006
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Try something like this for your actionscript
    Code:
    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.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #7
    New Coder
    Join Date
    Mar 2006
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks all working great


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •