BlueFadeFullLoop Actionscript
Table of contents | Previous document | Download BlueFadeFullLoop.as | SWF!T Homepage RCSfile: BlueFadeFullLoop.as,v Revision: 1.2 Date: 2003/02/28 01:41:11
Copyright 2003 Orgdot AS. All Rights Reserved. http://dev.swfit.com
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Loop for shifting + masking of a specific movie clip.
author Olaf Havnes
version Revision: 1.2 Date: 2003/02/28 01:41:11
since SWFIT1.0
Set all strip fades invisible
i = 0;
while (i < num_fades)
{
setProperty ("full_" add i, _visible, false);
i++;
}
Find the current clip
strip = "full_" add /:which_clip;
Measure the roller point
y = _parent.y;
if (y < _parent.win_y_min) y = _parent.win_y_min;
else if (y > _parent.win_y_max) y = _parent.win_y_max;
Is the ball rolling ?
if (_parent.stage == _parent.WIND_STAGE)
{
setProperty ( strip add "/bitmap", _y, - y + _parent.win_height);
setProperty ( strip, _y, y - _parent.win_height);
setProperty ( strip, _visible, true );
setProperty ( strip, _alpha, 100);
}
else if (_parent.stage == _parent.WAIT_STAGE)
{
setProperty ( strip, _visible, true );
setProperty ( strip, _alpha, 100);
}
else if (_parent.stage == _parent.END_STAGE || _parent.stage == _parent.ROLL_STAGE)
{
setProperty ( strip, _visible, true );
setProperty ( strip, _alpha, getProperty ( strip, _alpha ) / 2 );
}
|
|