
Welcome Guest
|
#1
|
|||
|
|||
|
AS alpha fadein problem as transition in external jpg loader
I have a flash MX 2004 file that basically works as an engine to load and show external jpgs one by one. Which works ok.
What I am trying to do now is fade in the new image above the existing one (transition effect if you will), which does not work ok. I have a mc on root with a timeline which loops and loads a new external image everytime by calling another movie. As said that is ok - into this I tried to include the fadein code. The code on a frame in the timeline looks like this: Code:
function fadeIn(mc) {
this.onEnterFrame = function() {
i++;
mc._alpha = 0+i;
if (mc._alpha>=100) {
mc._alpha=100;
}
};
}
trace("++>"+_root.holder["mc"+this.counter]);
this.counter++;
if (this.counter>this.imgno) {
this.counter = 1;
}
_root.holder["mc"+this.counter]._visible = true;
_root.holder["mc"+this.counter]._alpha=0;
fadeIn(_root.holder["mc"+this.counter]);
_root.holder["mc"+this.counter-1]._visible = true;
trace("++>"+_root.holder["mc"+this.counter]);It doesn't really affect the transition, except for the first image, which fades in. Should I put the fadein code on the mc and then call it from this frame? Any idea what am I doing wrong? I'm attaching the fla for reference. Thanks a bunch. |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with Loader and external swf with XML. Please help... | motiejus | Newbies |
0 | 09-29-2007 09:34 AM |
| textfield focus problem in external swf | mrpoate | Newbies |
1 | 07-10-2007 11:34 AM |
| using loader component for external swf and jpg. HELP | 72monkeys | Actionscript 1 Components |
4 | 02-26-2006 01:31 AM |
| problem loadMovie - external jpg | bat7 | Flash MX ActionScript |
2 | 12-14-2003 07:34 AM |

Programming Languages


