Help with Alpha Transition

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

_root.container_mc.image_mcToWhichFrameShouldIGo = frame_no;
should be ??
_root.container_mc.image_mc.ToWhichFrameShouldIGo = frame_no;

lol yeah thats a mistype on my part… that is actually there in the script…

good noting though… fixed

can y send the fla.files ?
or tell me where and how u are loading the external movies?