SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Sep 2011
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What is wrong with my AS2 button code?

    I was to just put a button component and the script below for the page to go back to home when pressed:
    Code:
    	stop();
    	gallery_btn.onRelease = function (){
    		    getURL("http://chopsticks-cutlery.de ");
    	}
    For some reason, it's giving the following error messages below
    (kindly click on this link: http://i429.photobucket.com/albums/q...deproblems.jpg)

    Don't know why this is happening - it is supposed to be a simple script to work quickly error-free right?

  2. #2
    SitePoint Enthusiast
    Join Date
    Aug 2011
    Posts
    85
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Try leaving your stop(); in the timeline and attach this code to the button itself (select the button and paste the code into the actions panel):

    Code:
    on (release) {
    	getURL("http://chopsticks-cutlery.de");
    }

  3. #3
    Community Advisor silver trophy

    Join Date
    Nov 2006
    Location
    UK
    Posts
    2,559
    Mentioned
    40 Post(s)
    Tagged
    1 Thread(s)
    Replace the " with "


Bookmarks

Posting Permissions

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