Hello I asked this question and someone replied with this below. I think they assumed I knew more than I do. If someone could provide a idiot-proof breakdown of this that would be great. As specific as can be please. (i.e, frame 1 i- 1 a= 103…what frame 1, on the scene, movie clip)
Each subject- does that mean each picture or each category on the site nav. as you can see I am wet as wet can be…behind the ears I mean I am male
I used something like that for my site. Each subject is a seperate .swf, jpg are loaded without using php or xml.
For example:
Code:
[LEFT]
FRAME 1
[FONT=courier][SIZE=2]
i = 1
a = 103 // number of pictures[/SIZE][/FONT]
FRAME 2
[FONT=courier][SIZE=2]MovieClip.prototype.loadPic = function(pic) {
this.loadMovie(“subdir1/subdir2/image”+pic+".jpg");
};
[/SIZE][/FONT]
[FONT=courier][SIZE=2]
containerMC.loadPic(i);
snr = i+"/"+a;
but1._visible=false;
but1.onRelease = function() {
if (i>1) {
i–;
containerMC.loadPic(i);
snr = i+"/"+a;
but2._visible=true;
}
if (i==1) {
but1._visible=false;
}
};
but2.onRelease = function() {
if (i<a) {
i++;
containerMC.loadPic(i);
snr = i+"/"+a;
but1._visible=true;
}
if (i==a) {
but2._visible=false;
}
};
stop();
[/SIZE][/FONT]
LAST BUT NOT LEAST:
- create empty movieclip, place it in your scene, frame2, give it the instance name containerMC
- create two buttons, place them in your scene, frame2, give them the instance name but1 // but2
- upload your pictures to the directory you define (/pictures or /pict/fun)
- your pictures are named: image1.jpg, image10.jpg etc.etc.[/LEFT]