6 Replies Latest reply on Oct 21, 2010 7:31 AM by Ned Murphy

    Banner Slider load function

    T. Backx

      Hello all,

       

      I've got a problem with a AS 1-2 code.

      The problem is that I want to load external images. But it's keep giving me output errors, these are they:

      Error opening URL 'file:///C|/Users/Tim%20Backx/Documents/2.%20Stage%20werk/Website%20Visual%20Brand/Bronne n/Sliders/undefined'

      I know I'm giving only one error. But this multiplies by 3 and they are al the same.

       

      So the swf works but the don't show up. And I don't know where to begin (anymore). I'm stuck with this for already 3 full days..

       

      I would be very very very happy if someone can help me or can put me in the rigth direction !

       

      Thank you in advance!

       

      Here is my AS code:

      playclip._visible = false;

      menu.button_mc1.title_txt = title1;

      menu.button_mc2.title_txt = title2;

      menu.button_mc3.title_txt = title3;

      menu.button_mc4.title_txt = title4;


      visuals_MC.artist1_MC.loadMovie(Afbeeldingen,"Ebooks.png");

      visuals_MC.artist2_MC.loadMovie(Afbeeldingen,"LOST.png");

      visuals_MC.artist3_MC.loadMovie(Afbeeldingen,"Oceans.png");

      visuals_MC.artist4_MC.loadMovie(Afbeeldingen,"Toy-Story-3.png");


      visuals_MC.artist1_MC.onRelease = function() {

      getURL(deUrl1, "http://www.visualbrand.nl");

      };

      visuals_MC.artist2_MC.onRelease = function() {

      getURL(deUrl2, "http://www.visualbrand.nl");

      };

      visuals_MC.artist3_MC.onRelease = function() {

      getURL(deUrl3, "http://www.visualbrand.nl");

      };

      visuals_MC.artist4_MC.onRelease = function() {

      getURL(deUrl4, "http://www.visualbrand.nl");

      };

      urlButton.onRelease = function() {

      getURL(doorgeefURL, "");

      };


      var btnnum = 0;

      pauze.onRelease = function() {

      visuals_MC.stop();

      balk.stop();

      pauze._visible = false;

      playclip._visible = true;

      if ("btn"+btnnum == "btn1") {

      btn1.stop();

      btn2.stop();

      } else if ("btn"+btnnum == "btn2") {

      btn2.stop();

      btn3.stop();

      } else if ("btn"+btnnum == "btn3") {

      btn3.stop();

      btn4.stop();

      } else if ("btn"+btnnum == "btn4") {

      btn4.stop();

      btn1.stop();

      }

      // end else if

      };

      playclip.onRelease = function() {

      visuals_MC.play();

      balk.play();

      playclip._visible = false;

      pauze._visible = true;

      if ("btn"+btnnum == "btn1") {

      btn1.play();

      btn2.play();

      } else if ("btn"+btnnum == "btn2") {

      btn2.play();

      btn3.play();

      } else if ("btn"+btnnum == "btn3") {

      btn3.play();

      btn4.play();

      } else if ("btn"+btnnum == "btn4") {

      btn4.play();

      btn1.play();

      }

      // end else if

      };

      btn1.onRelease = function() {

      getURL(deUrl1, "http://www.visualbrand.nl");

      };

      btn1.onRollOver = function() {

      visuals_MC.gotoAndStop(3);

      btn1.gotoAndStop("active");

      btn4.gotoAndStop("notactive");

      btn2.gotoAndStop("notactive");

      btn3.gotoAndStop("notactive");

      balk.gotoAndStop("notactive");

      playclip._visible = false;

      pauze._visible = true;

      };

      btn1.onRollOut = function() {

      visuals_MC.gotoAndPlay(401);

      };

      btn2.onRelease = function() {

      getURL(deUrl2, "http://www.visualbrand.nl");

      };

      btn2.onRollOver = function() {

      visuals_MC.gotoAndStop(112);

      btn2.gotoAndStop("active");

      btn4.gotoAndStop("notactive");

      btn1.gotoAndStop("notactive");

      btn3.gotoAndStop("notactive");

      balk.gotoAndStop("notactive");

      playclip._visible = false;

      pauze._visible = true;

      };

      btn2.onRollOut = function() {

      visuals_MC.gotoAndPlay(100);

      };

      btn3.onRelease = function() {

      getURL(deUrl3, "http://www.visualbrand.nl");

      };

      btn3.onRollOver = function() {

      visuals_MC.gotoAndStop(212);

      btn3.gotoAndStop("active");

      btn4.gotoAndStop("notactive");

      btn2.gotoAndStop("notactive");

      btn1.gotoAndStop("notactive");

      balk.gotoAndStop("notactive");

      playclip._visible = false;

      pauze._visible = true;

      };

      btn3.onRollOut = function() {

      visuals_MC.gotoAndPlay(200);

      };

      btn4.onRelease = function() {

      getURL(deUrl4, "http://www.visualbrand.nl");

      };

      btn4.onRollOver = function() {

      visuals_MC.gotoAndStop(311);

      btn4.gotoAndStop("active");

      btn3.gotoAndStop("notactive");

      btn2.gotoAndStop("notactive");

      btn1.gotoAndStop("notactive");

      balk.gotoAndStop("notactive");

      playclip._visible = false;

      pauze._visible = true;

      };

      btn4.onRollOut = function() {

      visuals_MC.gotoAndPlay(300);

      };playclip._visible = false;

      menu.button_mc1.title_txt = title1;

      menu.button_mc2.title_txt = title2;

      menu.button_mc3.title_txt = title3;

      menu.button_mc4.title_txt = title4;


      visuals_MC.artist1_MC.loadMovie(Afbeeldingen,"Ebooks.png");

      visuals_MC.artist2_MC.loadMovie(Afbeeldingen,"LOST.png");

      visuals_MC.artist3_MC.loadMovie(Afbeeldingen,"Oceans.png");

      visuals_MC.artist4_MC.loadMovie(Afbeeldingen,"Toy-Story-3.png");


      visuals_MC.artist1_MC.onRelease = function() {

      getURL(deUrl1, "http://www.visualbrand.nl");

      //visuals_MC.artist1_MC.loadMovie("Afbeeldingen\Ebooks.jpeg");


      };

      visuals_MC.artist2_MC.onRelease = function() {

      getURL(deUrl2, "http://www.visualbrand.nl");

      };

      visuals_MC.artist3_MC.onRelease = function() {

      getURL(deUrl3, "http://www.visualbrand.nl");

      };

      visuals_MC.artist4_MC.onRelease = function() {

      getURL(deUrl4, "http://www.visualbrand.nl");

      };

      urlButton.onRelease = function() {

      getURL(doorgeefURL, "");

      };


      var btnnum = 0;

      pauze.onRelease = function() {

      visuals_MC.stop();

      balk.stop();

      pauze._visible = false;

      playclip._visible = true;

      if ("btn"+btnnum == "btn1") {

      btn1.stop();

      btn2.stop();

      } else if ("btn"+btnnum == "btn2") {

      btn2.stop();

      btn3.stop();

      } else if ("btn"+btnnum == "btn3") {

      btn3.stop();

      btn4.stop();

      } else if ("btn"+btnnum == "btn4") {

      btn4.stop();

      btn1.stop();

      }

      // end else if

      };

      playclip.onRelease = function() {

      visuals_MC.play();

      balk.play();

      playclip._visible = false;

      pauze._visible = true;

      if ("btn"+btnnum == "btn1") {

      btn1.play();

      btn2.play();

      } else if ("btn"+btnnum == "btn2") {

      btn2.play();

      btn3.play();

      } else if ("btn"+btnnum == "btn3") {

      btn3.play();

      btn4.play();

      } else if ("btn"+btnnum == "btn4") {

      btn4.play();

      btn1.play();

      }

      // end else if

      };

      btn1.onRelease = function() {

      getURL(deUrl1, "http://www.visualbrand.nl");

      };

      btn1.onRollOver = function() {

      visuals_MC.gotoAndStop(3);

      btn1.gotoAndStop("active");

      btn4.gotoAndStop("notactive");

      btn2.gotoAndStop("notactive");

      btn3.gotoAndStop("notactive");

      balk.gotoAndStop("notactive");

      playclip._visible = false;

      pauze._visible = true;

      };

      btn1.onRollOut = function() {

      visuals_MC.gotoAndPlay(401);

      };

      btn2.onRelease = function() {

      getURL(deUrl2, "http://www.visualbrand.nl");

      };

      btn2.onRollOver = function() {

      visuals_MC.gotoAndStop(112);

      btn2.gotoAndStop("active");

      btn4.gotoAndStop("notactive");

      btn1.gotoAndStop("notactive");

      btn3.gotoAndStop("notactive");

      balk.gotoAndStop("notactive");

      playclip._visible = false;

      pauze._visible = true;

      };

      btn2.onRollOut = function() {

      visuals_MC.gotoAndPlay(100);

      };

      btn3.onRelease = function() {

      getURL(deUrl3, "http://www.visualbrand.nl");

      };

      btn3.onRollOver = function() {

      visuals_MC.gotoAndStop(212);

      btn3.gotoAndStop("active");

      btn4.gotoAndStop("notactive");

      btn2.gotoAndStop("notactive");

      btn1.gotoAndStop("notactive");

      balk.gotoAndStop("notactive");

      playclip._visible = false;

      pauze._visible = true;

      };

      btn3.onRollOut = function() {

      visuals_MC.gotoAndPlay(200);

      };

      btn4.onRelease = function() {

      getURL(deUrl4, "http://www.visualbrand.nl");

      };

      btn4.onRollOver = function() {

      visuals_MC.gotoAndStop(311);

      btn4.gotoAndStop("active");

      btn3.gotoAndStop("notactive");

      btn2.gotoAndStop("notactive");

      btn1.gotoAndStop("notactive");

      balk.gotoAndStop("notactive");

      playclip._visible = false;

      pauze._visible = true;

      };

      btn4.onRollOut = function() {

      visuals_MC.gotoAndPlay(300);

      };