Web Analytics Made Easy -
StatCounter Linking to other pages in Flash (Actionscript) - CodingForum

Announcement

Collapse
No announcement yet.

Linking to other pages in Flash (Actionscript)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    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!||||

    Comment


    • #3
      other web pages but they are not as a button there as a movie clip

      Comment


      • #4
        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!||||

        Comment


        • #5
          http://rsbjr.com/header.fla

          Comment


          • #6
            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!||||

            Comment


            • #7
              thanks all working great

              Comment

              Working...
              X