Kixxe
04-15-2006, 05:30 PM
Been working on a Picture slide show for some time now. (I'm lazy T.T)
Anyway, it is laid up like this. We got 15 pictures within 15 objects that animate em so they get "bigger" and lean to one side when you rollover them. These objects are inside bigger collection objects with 5 pictures in them each, so i don't have to animate em one by one. Anyway, all those are collected inside a big object witch contains and animates the 3 smaller sections of pictures.
Now, this would be fine and dandy, if my code to enlarge the pictures when you rollOver them would work.. For some reason, it will work in any other object, under any amount of objects, and under 10 different conditions, but when i but it in the thing itself it won't trigger! (note: i've tried Trace and varibles... dosen't do anything.)
I don't think there is anything wrong with the code itself, but here it is anyway.
(rollOver){
//Starts enlarging the picture selected.
this.gotoAndPlay(2);
}
on (rollOut){
//stops the enlargement effect
this.gotoAndStop(1);
}
Here's the zip. Also note the outside "picture" that does work, while those inside doesn't.
And yes, those picture are only filler
Anyway, it is laid up like this. We got 15 pictures within 15 objects that animate em so they get "bigger" and lean to one side when you rollover them. These objects are inside bigger collection objects with 5 pictures in them each, so i don't have to animate em one by one. Anyway, all those are collected inside a big object witch contains and animates the 3 smaller sections of pictures.
Now, this would be fine and dandy, if my code to enlarge the pictures when you rollOver them would work.. For some reason, it will work in any other object, under any amount of objects, and under 10 different conditions, but when i but it in the thing itself it won't trigger! (note: i've tried Trace and varibles... dosen't do anything.)
I don't think there is anything wrong with the code itself, but here it is anyway.
(rollOver){
//Starts enlarging the picture selected.
this.gotoAndPlay(2);
}
on (rollOut){
//stops the enlargement effect
this.gotoAndStop(1);
}
Here's the zip. Also note the outside "picture" that does work, while those inside doesn't.
And yes, those picture are only filler