/** * @(#) $RCSfile: BlueFadeStripLoop.as,v $ $Revision: 1.3 $ $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 script for the sliding stripe fade. * * @author Olaf Havnes * @version $Revision: 1.3 $ $Date: 2003/02/28 01:41:11 $ * @since SWFIT1.0 */ // Set all strip fades invisible i = 0; while (i < num_fades) { setProperty ("strip_" add i, _visible, false); i++; } // Is the ball rolling ? if (_parent.stage == _parent.WIND_STAGE) { strip = "strip_" add /:which_clip; y = _parent.y; // Measure the roller point sy = _parent.y; by = _parent.y; if (sy > _parent.win_y_max) { by += sy - _parent.win_y_max; sy = _parent.win_y_max; } setProperty ( strip add "/bitmap", _y, by ); setProperty ( strip, _y, sy ); setProperty ( strip, _visible, true ); }