FlipperMarkerLoop Actionscript
Table of contents | Previous document | Download FlipperMarkerLoop.as | SWF!T Homepage RCSfile: FlipperMarkerLoop.as,v Revision: 1.2 Date: 2003/03/20 09:45:50
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 script for the Flipper Marker.
author Olaf Havnes
version Revision: 1.2 Date: 2003/03/20 09:45:50
since SWFIT1.0
if (_parent.hover > - 1)
{
p1 = getProperty ("../flip_" add _parent.hover, _y);
}
else
{
p1 = _parent.marker_rest_pos;
}
v += (p1 - p0) * 0.6 - v * 1.2;
p0 += v;
_y = int (p0);
Our color depends on the speed
moving = v * v > 2;
act._visible = !moving;
pas._visible = moving;
|
|