search for: makeswf

Displaying 20 results from an estimated 112 matches for "makeswf".

Did you mean: makes
2007 Sep 13
0
2 commits - libswfdec/swfdec_as_function.c test/trace
...race/scope-chain-did-you-understand-8.swf.trace @@ -0,0 +1 @@ +5 diff --git a/test/trace/scope-chain-did-you-understand.as b/test/trace/scope-chain-did-you-understand.as new file mode 100644 index 0000000..7d01c98 --- /dev/null +++ b/test/trace/scope-chain-did-you-understand.as @@ -0,0 +1,23 @@ +// makeswf -v 7 -s 200x150 -r 1 -o scope-chain-did-you-understand.swf scope-chain-did-you-understand.as +// taken with permission from http://www.timotheegroleau.com/Flash/articles/scope_chain.htm + +getMethod = function() { + var setProto = function() { + this.__proto__ = o1; + }; + setProto(); + + re...
2007 Jun 27
0
Branch 'as' - 4 commits - test/trace
...s in the function's scope +undefined +undefined +undefined +undefined diff --git a/test/trace/definelocal-function-target.as b/test/trace/definelocal-function-target.as new file mode 100644 index 0000000..78baa5c --- /dev/null +++ b/test/trace/definelocal-function-target.as @@ -0,0 +1,18 @@ +// makeswf -v 7 -s 200x150 -r 1 -o definelocal-function-target.swf definelocal-function-target.as + +trace ("Check DefineLocal in functions sets variables in the function's scope"); + +createEmptyMovieClip ("movie", 0); + +function foo () { + setTarget ("movie"); + var bla...
2007 Aug 23
0
10 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_object.c test/trace
..._global.Video.prototype + __constructor__ (h) = _global.Video + __proto__ (hp) = _global.Video.prototype diff --git a/test/trace/video-properties.as b/test/trace/video-properties.as new file mode 100644 index 0000000..bcd3d5e --- /dev/null +++ b/test/trace/video-properties.as @@ -0,0 +1,11 @@ +// makeswf -v 7 -r 1 -o video-properties-7.swf video-properties.as + +#include "trace_properties.as" + +var a = new Video (); + +trace_properties (_global.Video, "_global", "Video"); +trace_properties (a, "local", "a"); + +loadMovie ("FSCommand:quit"...
2007 Jun 05
0
Branch 'as' - 8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_scope.h
...+ jump-out-of-with.swf \ + jump-out-of-with.swf.trace \ lifetime1.swf \ lifetime1.swf.trace \ load-4.swf \ diff --git a/test/trace/jump-into-with.as b/test/trace/jump-into-with.as new file mode 100644 index 0000000..7f83c51 --- /dev/null +++ b/test/trace/jump-into-with.as @@ -0,0 +1,20 @@ +// makeswf -v 7 -s 200x150 -r 1 -o movie68.swf movie68.as + +// note that the real checks are binary-modified to produce the desired tests. +// The branch offsets have been adjusted. +trace ("Check various things when jumping into with commands"); +x = 0; +o = new Object (); +o.x = -1; +with (o) { +...
2007 Jun 17
2
Branch 'as' - test/trace
test/trace/Makefile.am | 1 test/trace/values.as | 63 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) New commits: diff-tree aaca94203d8a0ccb8feb32c0d57df3401fca0350 (from 987074e275ac77f8799e5fdf41890e8ef126b291) Author: Benjamin Otte <otte at gnome.org> Date: Sun Jun 17 12:56:42 2007 +0200 add values.as which provides some default values
2007 Jul 27
0
11 commits - libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite_movie_as.c test/trace
...+1,3 @@ +Check what happens if _listeners is not an array +[object Object] +undefined diff --git a/test/trace/asbroadcaster-listeners.as b/test/trace/asbroadcaster-listeners.as new file mode 100644 index 0000000..0f99c6f --- /dev/null +++ b/test/trace/asbroadcaster-listeners.as @@ -0,0 +1,16 @@ +// makeswf -v 7 -s 200x150 -r 1 -o asbroadcaster-listeners.swf asbroadcaster-listeners.as + +trace ("Check what happens if _listeners is not an array"); + +emitter = new Object (); +AsBroadcaster.initialize (emitter); +o1 = new Object (); +o1.foo = function () { + trace ("o1"); +}; +emitt...
2007 Dec 11
0
3 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_movie.c test/trace
...491-stack-overflow-8.swf.trace @@ -0,0 +1 @@ +[type Object] diff --git a/test/trace/crash-0.5.4-13491-stack-overflow.as b/test/trace/crash-0.5.4-13491-stack-overflow.as new file mode 100644 index 0000000..16c0e3d --- /dev/null +++ b/test/trace/crash-0.5.4-13491-stack-overflow.as @@ -0,0 +1,6 @@ +// makeswf -v 7 -s 200x150 -r 1 -o crash-0.5.4-13491-stack-overflow.swf crash-0.5.4-13491-stack-overflow.as + +x = { toString: function () { return String (this); } }; + +trace (x); +loadMovie ("fscommand:quit", ""); commit 6495efaab49bd9a19b57c11a4b23e1db00fdd868 Author: Benjamin Otte &lt...
2007 Aug 15
0
4 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c test/trace
...ce/property-native-8.swf.trace @@ -0,0 +1,4 @@ +Check how addProperty overwrites native properties +0 +42 +42 diff --git a/test/trace/property-native.as b/test/trace/property-native.as new file mode 100644 index 0000000..a987b1b --- /dev/null +++ b/test/trace/property-native.as @@ -0,0 +1,11 @@ +// makeswf -v 7 -s 200x150 -r 1 -o property-native.swf property-native.as + +trace ("Check how addProperty overwrites native properties"); +this.__proto__._x = 42; +trace (this._x); +this.addProperty ("_x", function () { return 42; }, function () { trace ("set"); }); +trace (this...
2007 Jul 07
0
Branch 'as' - 7 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_super.h libswfdec/swfdec_as_with.c test/trace
...eck how functions that aren't overwritten are handled when called via super +1 +2 +3 +4 +foo: 1 +foo: 1 +foo: 4 diff --git a/test/trace/super-missing.as b/test/trace/super-missing.as new file mode 100644 index 0000000..2bd6fe7 --- /dev/null +++ b/test/trace/super-missing.as @@ -0,0 +1,52 @@ +// makeswf -v 7 -s 200x150 -r 1 -o super-missing.swf super-missing.as + +trace ("Check how functions that aren't overwritten are handled when called via super"); + +function One () { + trace (1); +}; +function Two () { + super (); + trace (2); +}; +function Three () { + super (); + trace (3...
2007 Nov 01
0
5 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_text_field_movie.c test/image
...dex 0000000..aab8cf6 Binary files /dev/null and b/test/image/text-field-autosize-8.swf.png differ diff --git a/test/image/text-field-autosize.as b/test/image/text-field-autosize.as new file mode 100644 index 0000000..3aee9ba --- /dev/null +++ b/test/image/text-field-autosize.as @@ -0,0 +1,19 @@ +// makeswf -v 7 -r 1 -s 200x150 -o text-field-autosize-7.swf text-field-autosize.as + +this.createTextField ("t1", 0, 25, 25, 100, 100); + +t1.autoSize = "left"; +t1.background = true; +t1.backgroundColor = 0xFF0000; + +this.createTextField ("t2", 1, 25, 25, 100, 100); + +t2.auto...
2007 May 31
0
Branch 'as' - 8 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_string.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c test/trace
...+Check isNaN and isFinite +Infinity: inifinite +-Infinity: inifinite +NaN: inifinite, NaN +0: finite +_level0: inifinite, NaN +true: finite diff --git a/test/trace/isnan.as b/test/trace/isnan.as new file mode 100644 index 0000000..cc7690a --- /dev/null +++ b/test/trace/isnan.as @@ -0,0 +1,9 @@ +// makeswf -v 7 -s 200x150 -r 1 -o isnan.swf isnan.as + +trace ("Check isNaN and isFinite"); +numbers = [ Infinity, -Infinity, NaN, 0, this, true ]; +for (i = 0; i < numbers.length; i++) { + trace (numbers[i] + (isFinite (numbers[i]) ? ": finite" : ": inifinite") + (isNaN (nu...
2007 Nov 20
0
4 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_resource.c test/image test/trace
...000..ded8bd5 Binary files /dev/null and b/test/image/mask-different-parent-8.swf.png differ diff --git a/test/image/mask-different-parent.as b/test/image/mask-different-parent.as new file mode 100644 index 0000000..51f35dc --- /dev/null +++ b/test/image/mask-different-parent.as @@ -0,0 +1,30 @@ +// makeswf -v 7 -s 200x150 -r 1 -o mask-different-parent.swf mask-different-parent.as + +rectangle = function (mc, color, x, y, w, h) +{ + mc.beginFill (color); + mc.moveTo (x, y); + mc.lineTo (x, y + h); + mc.lineTo (x + w, y + h); + mc.lineTo (x + w, y); + mc.lineTo (x, y); + mc.endFill (); +}; + +cr...
2007 Jun 06
0
Branch 'as' - 13 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h
...NaN + +NaN + +NaN + +NaN + +NaN + +NaN + +NaN + +NaN + +NaN + +NaN + +NaN + +NaN + +NaN + +NaN + +NaN + +NaN + +NaN + +NaN + +NaN + +NaN diff --git a/test/trace/charat.as b/test/trace/charat.as new file mode 100644 index 0000000..400372b --- /dev/null +++ b/test/trace/charat.as @@ -0,0 +1,10 @@ +// makeswf -v 7 -s 200x150 -r 1 -o charat.swf charat.as + +trace ("Check charAt and CharCodeAt"); +s = "Gr???? Gott ???????? ?????? ???????? ?????????"; +for (i = -10; i < 100; i++) { + trace (s.charAt (i)); + trace (s.charCodeAt (i)); +}; + +loadMovie ("FSCommand:quit", &qu...
2007 Jul 02
0
[PATCH] Implement CharToAscii + simple testcase
I overhauled it a bit before committing. Some notes: 1) makeswf uses the C preprocessor and defines some useful macros, one of them being __SWF_VERSION__. So if you have code that only compiles in version 5+, you can use someting like: #if __SWF_VERSION__ >= 5 to comment it out for version 4. 2) All strings in Swfdec are valid UTF-8. So if there's some u...
2007 Aug 18
0
8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object_as.h libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h
...t/trace/loadobject-5.swf.trace b/test/trace/loadobject-5.swf.trace new file mode 100644 index 0000000..ba49d21 --- /dev/null +++ b/test/trace/loadobject-5.swf.trace @@ -0,0 +1,46 @@ +Loaded: +Total: +false +Loaded: +Total: +true +Loaded: 0 +Total: +true +Loaded: 0 +Total: +Got: string '// makeswf -v 7 -r 1 -o loadobject-7.swf loadobject.as + +var obj = new Object (); + +obj.load = ASnative (301, 0); + +obj.onData = function (str) { + trace ("Got: " + typeof (str) + " '" + str + "'"); + trace ("Loaded: " + this._bytesLoaded); + trace ("...
2007 Aug 20
0
3 commits - libswfdec/swfdec_as_context.c test/trace
...p 3 = 3 + c 4 = 4 +h c 5 = 5 + pc 6 = 6 +hpc 7 = 7 +h __constructor__ = [type Function] +hp __proto__ = [object Object] diff --git a/test/trace/propflags.as b/test/trace/propflags.as index 34ce251..daca383 100644 --- a/test/trace/propflags.as +++ b/test/trace/propflags.as @@ -1,83 +1,14 @@ -// makeswf -v 7 -r 1 -o test-7.swf test.as +// makeswf -v 7 -r 1 -o propflags-7.swf propflags.as -function hidden_properties (obj) -{ - normal = new Array (); - for (prop in obj) { - normal.push (prop); - } +#include "trace_properties.as" - hidden = new Array (); - ASSetPropFlags (obj, n...
2007 Aug 20
0
8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_string.c libswfdec/swfdec_as_string.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_load_object.c libswfdec/swfdec_loadvars_as.c test/trace
...terve on = lal=lel=luu +onData = [type Function] +onDataReal = [type Function] onLoad = [type Function] test = 2 tyhja = diff --git a/test/trace/loadvars.as b/test/trace/loadvars.as index 778615d..b21ea99 100644 --- a/test/trace/loadvars.as +++ b/test/trace/loadvars.as @@ -1,23 +1,25 @@ // makeswf -v 7 -r 1 -o loadvars-7.swf loadvars.as -//_global.unescape = function () { return "moi"; }; -//_global.escape = function () { return "moi"; }; - var lv = new LoadVars (); trace (lv.onLoad); trace (lv.loaded); +lv.onDataReal = lv.onData; +lv.onData = function (src) { +...
2007 Aug 15
3
2 commits - libswfdec/swfdec_as_object.c test/trace
...@@ -0,0 +1,5 @@ +Check how addProperty affects prototypes +10 +10 +a set +10 diff --git a/test/trace/addProperty-set-prototypes.as b/test/trace/addProperty-set-prototypes.as new file mode 100644 index 0000000..9cf4c38 --- /dev/null +++ b/test/trace/addProperty-set-prototypes.as @@ -0,0 +1,18 @@ +// makeswf -v 7 -s 200x150 -r 1 -o addProperty-set-prototypes.swf addProperty-set-prototypes.as + +trace ("Check how addProperty affects prototypes"); + +o = {name: "a"}; +o.__proto__ = {name: "b", x: 10 }; +o.__proto__.__proto__ = {name: "c"}; +o.__proto__.__proto__.__...
2007 Aug 17
0
3 commits - libswfdec/swfdec_sprite_movie_as.c test/trace
...0644 index 0000000..c970f17 --- /dev/null +++ b/test/trace/forin-delete-7.swf.trace @@ -0,0 +1 @@ +0,1,2,3,4,5,6,7,8,9 diff --git a/test/trace/forin-delete.as b/test/trace/forin-delete.as new file mode 100644 index 0000000..696fdaf --- /dev/null +++ b/test/trace/forin-delete.as @@ -0,0 +1,14 @@ +// makeswf -v 7 -r 1 -o forin-delete-7.swf forin-delete.as + +obj = new Object (); +for (var i = 0; i < 10; i++) { + obj[i] = "something"; +} +a = new Array(); +for (var prop in obj) { + a.push (prop); + delete obj[prop]; +} +trace (a.sort ()); + +loadMovie ("FSCommand:quit", "&...
2007 Aug 15
0
4 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_sprite_movie.c test/trace
....swf.trace @@ -0,0 +1,3 @@ +check if deleting a property added with addProperty works +42 +undefined diff --git a/test/trace/addProperty-delete.as b/test/trace/addProperty-delete.as new file mode 100644 index 0000000..2c8076b --- /dev/null +++ b/test/trace/addProperty-delete.as @@ -0,0 +1,11 @@ +// makeswf -v 7 -s 200x150 -r 1 -o addProperty-delete.swf addProperty-delete.as + +trace ("check if deleting a property added with addProperty works"); + +o = {}; +o.addProperty ("x", function () { return 42; }, null); +trace (o.x); +delete o.x; +trace (o.x); + +loadMovie ("FSCommand:...