To set it up:
on the _root I have a MC “container_mc” to which external swfs are called.
in the external swf I have a series of thumbs, a MC with an image on each frame “image_mc”.
I’m fine with the coding as long as its relative to the external swf, but when loaded into the main swf, i cannot get it to work. Something I’m missing?
The first way I’ve tried was to put the function on the main timeline, this didnt work.
function changeImage(frame_no) {
_root.container_mc.image_mc.ToWhichFrameShouldIGo = frame_no;
_root.container_mc.image_mc.SpeedOfTransition = 30;
_root.container_mc.image_mc.onEnterFrame = fadeOut;
}
function fadeOut() {
if (this._alpha>0) {
this._alpha -= this.SpeedOfTransition;
} else {
this.gotoAndStop(this.ToWhichFrameShouldIGo);
this.onEnterFrame = _root.fadeIn;
}
}
function fadeIn() {
if (this._alpha<100) {
this._alpha += this.SpeedOfTransition;
} else {
delete this.onEnterFrame;
}
}
then on the thumb i call it with…
on (release) {
_root.changeImage(*the frame no*.);
)
I also tried to place the function on the main time line of the external swf with no luck??
Any ideas
Thanks
wheatleyweb