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 4 of 4
  1. #1
    New Coder
    Join Date
    Feb 2006
    Location
    Las Vegas
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Making a link in this actionscript

    Ok so I have a basic menu set up with a dynamic text field, so it is easy to change, and I would like to make it into a link to a page in a browser, the only thing i can get to work is getURL(); once the window opens, instead of clicking on the button

    here is the script
    let me know if you need to see more
    Code:
    b1.onRollOver = over;
    b1.onRollOut = out;
    b1.buttText.buttonText.text = "Home Page";
    b1.buttText.getURL("http://www.yahoo.com");
    
    
    b2.onRollOver = over;
    b2.onRollOut = out;
    b2.buttText.buttonText.text = "Pictures";
    
    b3.onRollOver = over;
    b3.onRollOut = out;
    b3.buttText.buttonText.text = "More Info";
    
    b4.onRollOver = over;
    b4.onRollOut = out;
    b4.buttText.buttonText.text = "Contact Us";
    
    function over() {
    	this.gotoAndPlay(2);
    }
    
    function out() {
    	this.gotoAndPlay(7);
    }

  • #2
    Regular Coder
    Join Date
    Oct 2006
    Posts
    206
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I don't know very much about what you're trying to do, but I'm almost certain that those helping will need to see much more (preferably all of) your code.

  • #3
    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
    1212jraceur that likely is all of the code though I am wondering what you are trying to do here
    Code:
    b1.buttText.buttonText.text = "Home Page";
    Is buttonText inside of another object with an instance name of buttText? Can you attach your fla file?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    New Coder
    Join Date
    Feb 2006
    Location
    Las Vegas
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts
    okay nevermind I just had to think about it, that was a kinda dumb question, without showing the .fla


  •  

    Posting Permissions

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