Search tutorials
public static function createMC(nu_x:Number,nu_y:Number) {
_root.createEmptyMovieClip("m_movie",1111);
_root.m_movie.createEmptyMovieClip("m_movieHolder",1);
_root.m_movie.m_movieHolder._lockroot = true;
_root.m_movie._x = nu_x;
}
public static function fadeoutin(mainPic:String) {
var n_fade:Number = 0;
_root.m_movie.m_movieHolder.onEnterFrame = function() {
if (n_fade == 0) {
if (_root.m_movie.m_movieHolder._alpha>0) {
_root.m_movie.m_movieHolder._alpha -= 10;
} else {
_root.m_movie.m_movieHolder._alpha = 0;
delete _root.m_movie.m_movieHolder.onEnterFrame;
_root.m_movie.m_movieHolder.loadMovie(mainPic);
n_fade = 100;
}
}
};
_root.m_movie.onEnterFrame = function() {
if (n_fade == 100) {
if (_root.m_movie.m_movieHolder._alpha<100) {
_root.m_movie.m_movieHolder._alpha += 10;
} else {
_root.m_movie.m_movieHolder._alpha = 100;
delete _root.m_movie.onEnterFrame;
n_fade = 0;
}
}
};
}
| » Level Intermediate |
|
Added: 2004-09-21 Rating: 7 Votes: 6 |
| » Author |
| The author is a cancer researcher and Flash developer. |
| » Download |
| Download the files used in this tutorial. |
| Download (138 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!