Just want to say thanks for all previous help first.
Hi,
I am trying to create a photo album for a website. The Album will work by the user clicking on a movie clip button with the instance name of "picbtn". Each of the buttons will have the call to name of "pic1_mc", "pic2_mc", etc... Upon release, my loader componet with symbol name "picLoader" and call to name of "picViewer_mc" will load the .png file that goes with each button. However when tested, upon release, nothing loads into the loader. Any help will be greatly appreciated. Thanks. My action script looks like this,
There is also a preloader that will when displaying larger files.
Hi,
I am trying to create a photo album for a website. The Album will work by the user clicking on a movie clip button with the instance name of "picbtn". Each of the buttons will have the call to name of "pic1_mc", "pic2_mc", etc... Upon release, my loader componet with symbol name "picLoader" and call to name of "picViewer_mc" will load the .png file that goes with each button. However when tested, upon release, nothing loads into the loader. Any help will be greatly appreciated. Thanks. My action script looks like this,
Code:
//-----------Initialization---------\\
extLoader_mc._visible = false;
//-----------------------------------\\
//--------Movie Clip Loader----------\\
var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
mcLoader.addListener(myListener);
myListener.onLoadProgress = function(target_mc,bytesLoaded,bytesTotal) {
extLoader_mc._visible = true;
var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
if (bytesLoaded >= bytesTotal) {
extLoader_mc._visible = false;
}
}
mcLoader.loadClip("pics/1.png",picViewer_mc.picLoader);
//-----------------------------------\\
//------------\\
//On RollOver Events\\
pic1_mc.onRollOver = function() {
pic1_mc.gotoAndPlay("over");
}
pic2_mc.onRollOver = function() {
pic2_mc.gotoAndPlay("over");
}
pic3_mc.onRollOver = function() {
pic3_mc.gotoAndPlay("over");
}
pic4_mc.onRollOver = function() {
pic4_mc.gotoAndPlay("over");
}
pic5_mc.onRollOver = function() {
pic5_mc.gotoAndPlay("over");
}
pic6_mc.onRollOver = function() {
pic6_mc.gotoAndPlay("over");
}
pic7_mc.onRollOver = function() {
pic7_mc.gotoAndPlay("over");
}
pic8_mc.onRollOver = function() {
pic8_mc.gotoAndPlay("over");
}
pic9_mc.onRollOver = function() {
pic9_mc.gotoAndPlay("over");
}
pic10_mc.onRollOver = function() {
pic10_mc.gotoAndPlay("over");
}
pic11_mc.onRollOver = function() {
pic11_mc.gotoAndPlay("over");
}
pic12_mc.onRollOver = function() {
pic12_mc.gotoAndPlay("over");
}
//---------------------\\
//Picture Load Functions\\
pic1_mc.onRelease = function () {
mcLoader.loadClip("pics/1.png",picViewer_mc.picLoader);
}
pic2_mc.onRelease = function () {
mcLoader.loadClip("pics/2.png",picViewer_mc.picLoader);
}
pic3_mc.onRelease = function () {
mcLoader.loadClip("pics/3.png",picViewer_mc.picLoader);
}
pic4_mc.onRelease = function () {
mcLoader.loadClip("pics/4.png",picViewer_mc.picLoader);
}
pic5_mc.onRelease = function () {
mcLoader.loadClip("pics/5.png",picViewer_mc.picLoader);
}
pic6_mc.onRelease = function () {
mcLoader.loadClip("pics/6.png",picViewer_mc.picLoader);
}
pic7_mc.onRelease = function () {
mcLoader.loadClip("pics/7.png",picViewer_mc.picLoader);
}
pic8_mc.onRelease = function () {
mcLoader.loadClip("pics/8.png",picViewer_mc.picLoader);
}
pic9_mc.onRelease = function () {
mcLoader.loadClip("pics/8.png",picViewer_mc.picLoader);
}
pic10_mc.onRelease = function () {
mcLoader.loadClip("pics/8.png",picViewer_mc.picLoader);
}
pic11_mc.onRelease = function () {
mcLoader.loadClip("pics/8.png",picViewer_mc.picLoader);
}
pic12_mc.onRelease = function () {
mcLoader.loadClip("pics/8.png",picViewer_mc.picLoader);
}
//-------------------------\\