ACGTInit Actionscript
Table of contents | Previous document | Download ACGTInit.as | SWF!T Homepage RCSfile: ACGTInit.as,v Revision: 1.5 Date: 2003/03/05 19:52:16
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.
Init code for the ACGT piece.
author Olaf Havnes
version Revision: 1.5 Date: 2003/03/05 19:52:16
since SWFIT1.0
Are we the original clip ?
if (_name eq "acgt")
{
_visible = false;
stop ();
}
Set one type
t_0 = "a";
t_1 = "c";
t_2 = "g";
t_3 = "t";
type = eval ("t_" add random (4));
Hide all sub clips
a._visible = type eq t_0;
c._visible = type eq t_1;
g._visible = type eq t_2;
t._visible = type eq t_3;
Set fade in.
_alpha = 0;
Set free fall speed
fall_speed = 4;
Set pause counter and lock pos
pause = _parent.conv_wait;
pause_counter = 0;
pos_lock = _parent.num_conv;
xv = 0;
xp = _parent.conv_start_x;
report = false;
Mirror the values in the hand
Set lock points
pos_min = _parent.hand.pos_min;
pos_max = _parent.hand.pos_max;
pos_wdt = _parent.hand.pos_wdt;
pos_hlf = _parent.hand.pos_hlf;
Set "bounce" values
ac = _parent.hand.ac;
fr = _parent.hand.fr;
Should we check for merge ?
merge_check = true;
mergee = "";
|
|