LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




ReplyREPLY THREAD
 
Thread Tools Display Modes
  #1  
Old 05-10-2006, 08:34 AM
matej matej is offline
Registered User
 
Join Date: Nov 2005
Posts: 12
Rep Power: 0
matej is on a distinguished road
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.
Attached Files
File Type: zip image_viewer.zip (7.9 KB, 2 views)
Reply With Quote


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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




All times are GMT. The time now is 04:28 AM.