2
* Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 3 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
* Sandro Santilli, strk@keybit.net
22
* Test ActionScript stack lifetime
26
* First DoAction in frame1: push variable and value on stack
27
* Second DoAction in frame1: setvariable, push variable and value on stack
28
* DoAction in placed movieclip frame1: setvariable
31
* Stack is NOT cleared between DoAction blocks nor it is between
32
* execution of code in root movie and code in child.
37
.flash bbox=800x600 filename="stackscope.swf" background=white version=6 fps=12
44
trace("doaction1 in frame1");
51
trace("doaction2 in frame1");
62
trace("mc1 placed in frame1");
75
trace("doaction1 in frame2");
83
check_equals(var1, 'val1');
84
check_equals(var2, 'val2');
85
check_equals(typeof(var3), 'undefined');