getURL not working in Flash

Discussion in 'Programming' started by PET, Mar 6, 2008.

  1. #1
    Hello,

    I made a "slideshow" in Flash CS3 with ActionScript 2.0
    I made if from a video tutorial. The slideshow works good. Now I want to add link when you click on a image from the slideshow. I did it exactly like in the video, however ONLY the first image from the slideshow works.

    Don't know what else to do. It seem Murphy's Laws are working on me... :(

    Since the FLA file is to big and I can't attach it here I will post what I did.

    I created a "button" that I made it so big that it get's over the iamges. Then I made a new layer where I putted this code:

    
    imgbtn_acvacultura_ornamntala.onRelease = function() {
    	getURL("acvaristica.php", "_self");
    }
    imgbtn_cresterea_crapului.onRelease = function() {
    	getURL("cresterea-crapului.php", "_self");
    }
    imgbtn_cresterea_pestilor_rapitori.onRelease = function() {
    	getURL("cresterea-pestilor-rapitori.php", "_self");
    }
    imgbtn_cresterea_salmonidelor.onRelease = function() {
    	getURL("cresterea-salmonidelor.php", "_self");
    }
    imgbtn_cresterea_sturionilor.onRelease = function() {
    	getURL("cresterea-sturionilor.php", "_self");
    }
    imgbtn_proiectare_ferme.onRelease = function() {
    	getURL("proiectare-ferme-acvacultura.php", "_self");
    }
    imgbtn_service_acvaristic.onRelease = function() {
    	getURL("servicii-acvaristica.php", "_self");
    }
    imgbtn_apa_recirculanta.onRelease = function() {
    	getURL("sisteme-de-acvacultura.php", "_self");
    }
    
    Code (markup):
    What's wrong? Only the first link works.

    THanks
     
    PET, Mar 6, 2008 IP
  2. Vbot

    Vbot Peon

    Messages:
    107
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    double check the instance of your buttons, make sure they match with your function.
    I don't see why the above code shouldn't work.
     
    Vbot, Mar 6, 2008 IP