search for: assetpropflags

Displaying 20 results from an estimated 48 matches for "assetpropflags".

2007 Aug 24
0
9 commits - configure.ac doc/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_keys.h libswfdec/swfdec_pattern.c libswfdec/swfdec_player.c test/trace
...ec_as_object.c | 17 ++++ libswfdec/swfdec_as_object.h | 5 + libswfdec/swfdec_keys.h | 1 libswfdec/swfdec_pattern.c | 5 + libswfdec/swfdec_player.c | 100 ++++++++++++++++++++++++++- test/trace/ASSetPropFlags-ignore-5.swf |binary test/trace/ASSetPropFlags-ignore-5.swf.trace | 5 + test/trace/ASSetPropFlags-ignore-6.swf |binary test/trace/ASSetPropFlags-ignore-6.swf.trace | 5 + test/trace/ASSetPropFlags-ignore-7.swf |binary test/trace/ASSetPropFlags-ignore-7.swf.trace | 5 +...
2007 Aug 21
0
2 commits - test/trace
...test/trace/propflags-7.swf differ diff --git a/test/trace/trace_properties.as b/test/trace/trace_properties.as index 6256a42..92294a9 100644 --- a/test/trace/trace_properties.as +++ b/test/trace/trace_properties.as @@ -2,81 +2,108 @@ function new_empty_object () { var hash = new Object (); + ASSetPropFlags (hash, null, 0, 7); for (var prop in hash) { delete hash[prop]; } return hash; } +#if __SWF_VERSION__ >= 6 function hasOwnProperty (o, prop) { - if (o.__proto__ == undefined || o.__proto__ == "assdofjkaofjojsafjpojsafa") + if (o.hasOwnProperty != undefined) + re...
2007 Aug 20
0
3 commits - libswfdec/swfdec_as_context.c test/trace
...3 +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, null, 0, 1); - for (prop in obj) { - for (i = 0; i < normal.length; i++) { - if (normal[i] == prop) - break; - } - if (i == normal.length) - hidden.push (prop); - } - ASSetPropFlags (obj, hidden, 1, 0); - - return hidden.sort (); -} - -// loses flags from the propert...
2007 Aug 17
0
4 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h test/trace
...den: 1,3,5,7,__constructor__,__proto__ +Constant: 4,5,6,7 +Permanent: 2,3,6,7,__proto__ diff --git a/test/trace/propflags.as b/test/trace/propflags.as index 25ab56b..34ce251 100644 --- a/test/trace/propflags.as +++ b/test/trace/propflags.as @@ -19,7 +19,7 @@ function hidden_properties (obj) } ASSetPropFlags (obj, hidden, 1, 0); - return hidden; + return hidden.sort (); } // loses flags from the properties that are not permanent @@ -44,7 +44,7 @@ function permanent_properties (obj) ASSetPropFlags (obj, hidden, 1, 0); ASSetPropFlags (obj, constant, 3, 0); - return permanent; + return p...
2007 Aug 22
0
3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c test/trace
...operties.as @@ -1,4 +1,71 @@ -// doesn't work for Flash 5 +#if __SWF_VERSION__ == 5 +// create a _global object, since it doesn't have one, these are ver 6 values +_global = new_empty_object (); +_global.ASSetNative = ASSetNative; +_global.ASSetNativeAccessor = ASSetNativeAccessor; +_global.ASSetPropFlags = ASSetPropFlags; +_global.ASconstructor = ASconstructor; +_global.ASnative = ASnative; +_global.Accessibility = Accessibility; +_global.Array = Array; +_global.AsBroadcaster = AsBroadcaster; +_global.AsSetupError = AsSetupError; +_global.Boolean = Boolean; +_global.Button = Button; +_global.Camera...
2007 Aug 31
0
4 commits - libswfdec/swfdec_as_number.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_player_as.c test/trace
...; +trace_properties (_global.ASnative, "_global", "ASnative"); trace_properties (_global.ASSetNativeAccessor, "_global", "ASSetNativeAccessor"); trace_properties (_global.ASSetNative, "_global", "ASSetNative"); trace_properties (_global.ASSetPropFlags, "_global", "ASSetPropFlags"); diff-tree 9f17806b6f4230e268163b78931fe7a0be53dfe9 (from 88a578f46125d2ef9b9c08d9ed6bf0bc1e161819) Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Fri Aug 31 23:38:59 2007 +0300 Extend asfunction-properties test Test pro...
2007 Aug 26
0
Changes to 'refs/tags/0.5.2'
...case where a decoder couldn't be created due to errors ctually set the background color, don't just claim to have done so (Fixes #12081) remove SWFDEC_KEY_MAX document SwfdecKey Add missing underscore in docs add new test method from gtk-doc add the magic ASSetPropFlags flags comment why we use the NONE extend pattern up libversion add test for the new magic version flags to ASSetPropFlags Merge branch 'master' of ssh://company at git.freedesktop.org/git/swfdec/swfdec update NEWS for 0.5.2 Merge branch 'master' o...
2007 Aug 20
0
Branch 'vivi' - 60 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c
...race ("Check if flags of variables get reset upon addProperty"); + +o = {}; +o.addProperty ("foo", function () { trace ("get"); return 42; }, function () { trace ("set called"); }); +trace ("set:"); +o.foo = 20; +trace ("mark constant:"); +ASSetPropFlags (o, "foo", 4); +o.foo = 20; +trace ("overwrite:"); +o.addProperty ("foo", function () { trace ("get"); return 42; }, function () { trace ("set called"); }); +o.foo = 20; + +o.bar = 10; +ASSetPropFlags (o, "bar", 4); +trace (o.bar); +o.addP...
2007 Oct 25
0
12 commits - libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c test/trace
...st how different functions handle __proto__ and it's propflags"); + +trace ("instanceOf:"); + +var p = { prototype: {} }; +var o = { __proto__: p.prototype }; + +trace (o instanceOf p); +for (var i = 1; i <= 12; i++) { + trace ("o.__proto__: " + Math.pow (2, i)); + ASSetPropFlags (o, "__proto__", Math.pow (2, i), 0); + trace (o instanceOf p); + ASSetPropFlags (o, "__proto__", 0, Math.pow (2, i)); +} +trace ("o.__proto__: deleted"); +delete o.__proto__; +trace (o instanceOf p); + + +trace ("get:"); + +p = { test: true }; +o = { __pro...
2007 Aug 26
0
3 commits - libswfdec/swfdec_as_context.c player/swfplay.c test/trace
libswfdec/swfdec_as_context.c | 3 player/swfplay.c | 2 test/trace/ASSetPropFlags-extended-5.swf |binary test/trace/ASSetPropFlags-extended-5.swf.trace | 8213 +++++++++++++++++++++++++ test/trace/ASSetPropFlags-extended-6.swf |binary test/trace/ASSetPropFlags-extended-6.swf.trace | 8213 +++++++++++++++++++++++++ test/trace/ASSetPropFlags-extended-7.swf |bin...
2007 Aug 15
3
2 commits - libswfdec/swfdec_as_object.c test/trace
libswfdec/swfdec_as_object.c | 62 +++++++++++++++------- test/trace/Makefile.am | 9 +++ test/trace/addProperty-set-prototypes-5.swf |binary test/trace/addProperty-set-prototypes-5.swf.trace | 4 + test/trace/addProperty-set-prototypes-6.swf |binary test/trace/addProperty-set-prototypes-6.swf.trace | 5 +
2007 Nov 27
0
12 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h
...-properties.as index 40a73f5..69bacd5 100644 --- a/test/trace/bevel-filter-properties.as +++ b/test/trace/bevel-filter-properties.as @@ -1,10 +1,10 @@ // makeswf -v 7 -r 1 -o bevel-filter-properties-7.swf bevel-filter-properties.as -// enable flash structure for version < 8 too for this test -ASSetPropFlags (_global, "flash", 0, 4096); - #include "trace_properties.as" +// enable flash structure for version < 8 too for this test +ASSetPropFlags (_global, "flash", 0, 5248); + var a = new flash.filters.BevelFilter (); trace_properties (_global.flash.filters.BevelFi...
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
...to disable them in v5 diff --git a/libswfdec/swfdec_initialize.as b/libswfdec/swfdec_initialize.as index dde8fce..009bbcc 100644 --- a/libswfdec/swfdec_initialize.as +++ b/libswfdec/swfdec_initialize.as @@ -120,4 +120,4 @@ LoadVars.prototype.getBytesTotal = funct return this._bytesTotal; }; -ASSetPropFlags(LoadVars.prototype, null, 1); +ASSetPropFlags(LoadVars.prototype, null, 129); diff --git a/libswfdec/swfdec_initialize.h b/libswfdec/swfdec_initialize.h index c991bc5..15a9916 100644 --- a/libswfdec/swfdec_initialize.h +++ b/libswfdec/swfdec_initialize.h @@ -130,7 +130,7 @@ const unsigned char swfd...
2007 Jul 26
0
17 commits - doc/swfdec-sections.txt libswfdec/compiler.c libswfdec/.gitignore libswfdec/Makefile.am libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c
...ged, 565 insertions(+), 355 deletions(-) New commits: diff-tree c2cef8e7f06bb5916c17839ae4c145241d26130a (from cfdeb2996fef35060746d10091f74a770e236d0a) Author: Benjamin Otte <otte at gnome.org> Date: Thu Jul 26 16:43:21 2007 +0200 rework variable flag handling to be more in line with ASSetPropFlags get rid of the native flag and add the v6+ flag diff --git a/libswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c index ad606ad..5fc3b1a 100644 --- a/libswfdec/swfdec_as_context.c +++ b/libswfdec/swfdec_as_context.c @@ -1033,8 +1033,6 @@ swfdec_as_context_ASSetPropFlags (Swfdec...
2007 Aug 21
0
4 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_string.c libswfdec/swfdec_color_as.c test/trace
...ce/propflags-7.swf and b/test/trace/propflags-7.swf differ diff --git a/test/trace/propflags.as b/test/trace/propflags.as index 944d63e..8387431 100644 --- a/test/trace/propflags.as +++ b/test/trace/propflags.as @@ -2,11 +2,7 @@ #include "trace_properties.as" -var o = new Object (); -ASSetPropFlags (o, null, 0, 7); -for (var prop in o) { - delete o[prop]; -} +var o = new_empty_object (); o[0] = 0; for (var i = 1; i <= 7; i++) { o[i] = i; diff --git a/test/trace/trace_properties.as b/test/trace/trace_properties.as index 92294a9..a93f05c 100644 --- a/test/trace/trace_properties.as +++...
2007 Aug 03
0
Changes to 'refs/tags/0.5.1'
...warn if data is left after a Flash file allow declaring a function as part of ASnative simplify code add scripted setup code implement ASnative add native function for AsBroadcaster rewrite Mouse object using scripts remove now unused files call AsSetPropFlags on AsBroadcaster rework variable flag handling to be more in line with ASSetPropFlags oops, debugging left in implement ASSetPropFlags for strings implement Stage and Stage.scaleMode make swfdec_asnative.h work on its own add swfdec_as_object_add_variable()...
2007 Aug 22
0
5 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_script_function.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
...ec/swfdec_initialize.as b/libswfdec/swfdec_initialize.as index 009bbcc..502942e 100644 --- a/libswfdec/swfdec_initialize.as +++ b/libswfdec/swfdec_initialize.as @@ -69,6 +69,7 @@ Mouse = new Object (); Mouse.show = ASnative (5, 0); Mouse.hide = ASnative (5, 1); AsBroadcaster.initialize (Mouse); +ASSetPropFlags(Mouse, null, 7); /*** STAGE ***/ @@ -120,4 +121,8 @@ LoadVars.prototype.getBytesTotal = funct return this._bytesTotal; }; -ASSetPropFlags(LoadVars.prototype, null, 129); +ASSetPropFlags(LoadVars.prototype, null, 131); + +/*** OH THE HUMANITY ***/ + +o = null; diff --git a/libswfdec/swfde...
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
...event() remove debugging g_print()s rename since we have to do one iteration more This test is completely useless now make this work again add same hack here don't complain when closing the window remove the annoying FIXME for Flash 5 add test for ASSetPropFlags add a SwfdecSystem object to hold system information fix initial copy-paste issues add a "system" property to SwfdecPlayer that holds the player fix copyrights add infrastructure for System.capabilities.Query add swfdec_as_string_escape() function...
2007 Aug 23
0
10 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_object.c test/trace
...es-6.swf.trace @@ -0,0 +1,9 @@ +_global.ASSetNative = function + __proto__ (hp) = _global.Object.__proto__ + constructor (hp) = _global.Object.constructor +_global.ASSetNativeAccessor = function + __proto__ (hp) = _global.Object.__proto__ + constructor (hp) = _global.Object.constructor +_global.ASSetPropFlags = function + __proto__ (hp) = _global.Object.__proto__ + constructor (hp) = _global.Object.constructor diff --git a/test/trace/asfunction-properties-7.swf b/test/trace/asfunction-properties-7.swf new file mode 100644 index 0000000..9f350dc Binary files /dev/null and b/test/trace/asfunction-proper...
2008 Jan 15
0
4 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_types.c test/trace
...s new file mode 100644 index 0000000..b95e67d --- /dev/null +++ b/test/trace/array-movieclip.as @@ -0,0 +1,42 @@ +// makeswf -v 7 -r 1 -o array-movieclip-7.swf array-movieclip.as + +var a = this.createEmptyMovieClip ("a", 0); +a[0] = "b"; +a[1] = "a"; +a.length = 2; + +ASSetPropFlags (a, null, 0, 7); +ASSetPropFlags (Array.prototype, null, 0, 7); +for (var prop in Array.prototype) { + a[prop] = Array.prop; +} + +ASSetNative (Array.prototype, 252, "push,pop,concat,shift,unshift,slice,join,splice,toString,sort,reverse,sortOn", 1); + +var str = ""; +for (var i...