# Help with Alpha Transition

**URL:** https://forum.kirupa.com/t/help-with-alpha-transition/183530
**Category:** Uncategorized
**Created:** [March 28, 2006, 12:07am UTC](https://forum.kirupa.com/t/help-with-alpha-transition/183530 "2006-03-28T00:07:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wheatleyweb](https://avatars.discourse-cdn.com/v4/letter/w/53a042/32.png) [@wheatleyweb](https://forum.kirupa.com/u/wheatleyweb)
#### Post date: [March 28, 2006, 12:07am UTC](https://forum.kirupa.com/t/help-with-alpha-transition/183530/1 "2006-03-28T00:07:19Z")

</div>

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.

```auto
 
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…

```auto

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

---

<div class="post-metadata">

### Author: ![Macaroni\_Ted](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@Macaroni\_Ted](https://forum.kirupa.com/u/Macaroni_Ted)
#### Post date: [March 28, 2006, 1:12am UTC](https://forum.kirupa.com/t/help-with-alpha-transition/183530/2 "2006-03-28T01:12:51Z")

</div>

\_root.container\_mc.image\_mcToWhichFrameShouldIGo = frame\_no;  
should be ??  
\_root.container\_mc.image\_mc.ToWhichFrameShouldIGo = frame\_no;

---

<div class="post-metadata">

### Author: ![wheatleyweb](https://avatars.discourse-cdn.com/v4/letter/w/53a042/32.png) [@wheatleyweb](https://forum.kirupa.com/u/wheatleyweb)
#### Post date: [March 28, 2006, 1:53am UTC](https://forum.kirupa.com/t/help-with-alpha-transition/183530/3 "2006-03-28T01:53:24Z")

</div>

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

good noting though… fixed

---

<div class="post-metadata">

### Author: ![Macaroni\_Ted](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@Macaroni\_Ted](https://forum.kirupa.com/u/Macaroni_Ted)
#### Post date: [March 28, 2006, 2:03am UTC](https://forum.kirupa.com/t/help-with-alpha-transition/183530/4 "2006-03-28T02:03:13Z")

</div>

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