Displaying 20 results from an estimated 44 matches for "createemptymovieclip".
2007 Nov 20
0
4 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_resource.c test/image test/trace
...wf -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 ();
+};
+
+createEmptyMovieClip ("a", 0);
+a.createEmptyMovieClip ("a", 0);
+a.a.createEmptyMovieClip ("a", 0);
+a.a.a.createEmptyMovieClip ("a", 0);
+a._xscale = 50;
+a._yscale = 50;
+a.a._x = 50;
+a.a._y = 50;
+a.a.a._xscale = 200;
+a.a.a._yscale = 200;
+rectangle (a.a.a.a, 0xFF0000, 0, 0...
2007 Nov 28
0
7 commits - configure.ac libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/trace
...el0.a
diff --git a/test/trace/remove-child-onUnload.as b/test/trace/remove-child-onUnload.as
new file mode 100644
index 0000000..8106848
--- /dev/null
+++ b/test/trace/remove-child-onUnload.as
@@ -0,0 +1,13 @@
+// makeswf -v 7 -s 200x150 -r 1 -o remove-child-onUnload.swf remove-child-onUnload.as
+
+createEmptyMovieClip ("a", 0);
+a.createEmptyMovieClip ("a", 0);
+a.createEmptyMovieClip ("b", 1);
+a.b.onUnload = function () { trace (this); trace (this._parent); };
+a.removeMovieClip ();
+trace (a + ": " + a.getDepth ());
+trace (a.a + ": " + a.a.getDepth ());
+trac...
2007 Jun 15
0
Branch 'as' - 2 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_sprite_movie_as.c test/trace
...00x150 -r 1 -o level-property.swf level-property.as
+
+trace (_level0);
+_level0 = "hi";
+trace (_level0);
+delete _level0;
+trace (_level0);
+_global._level0 = "hi";
+trace (_level0);
+this._level0 = "hi";
+trace (_level0);
+delete this._level0;
+trace (_level0);
+x = createEmptyMovieClip ("_level0", 0);
+trace (_level0);
+trace (x);
+
+loadMovie ("FSCommand:quit", "");
diff-tree a5f1d561b1a24c77ba879af7d004729f6b0e7224 (from 51bdd4e30a331ac9d4c21748097323187eed89f9)
Author: Benjamin Otte <otte at gnome.org>
Date: Fri Jun 15 23:33:52 2007 +0200...
2007 Jun 03
1
some patches for swfdec
Here are some patches I made yesterday. They add three actions:
duplicateClip, removeClip and With, one method Math.abs and bug fixes.
All base off 'as' branch. Please have a look if you are going to apply
them because I'm quite new in swfdec development.
BTW, how can I implement createEmptyMovieClip? I have no idea how to
create an SwfdecMovie properly. I also need to add the following. If
you have any idea, please tell me.
gotoAndPlay
_level0 global variable
swapDepths method
lineTo, lineStyle, moveTo
ahh.. those movies created by duplicateClip do not get added as
properties to _root. I saw...
2007 Jul 01
1
implementing MovieClip drawing API
Hi,
I would like to implement MovieClip.{moveTo,lineTo,lineStyle}. I
initially thought I could place an SwfdecShape inside an
SwfdecSpriteMovie created by createEmptyMovieClip then call
swfdec_shape_ counterparts when MovieClip.{moveTo,lineTo,lineStyle}
were called. It wasn't as easy as I had thought. All the functions are
highly tied to swf bitstream, even adding an SwfdecShapeMovie to
SwfdecSpriteMovie.
Do you have any suggestion? Should I just use ming to generat...
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 Jun 23
1
Patches to make blocky.swf playable
...CloneSprite/RemoveSprite patches I already posted earlier for fatal_
because I expected it would take longer to debug, but it didn't. Post
again for the sake of complete series.
Patch 6 is not really great. It should be rewritten for better
performance. Any idea? Ah and you need to comment out
createEmptyMovieClip because it's not good enough for blocky.swf ;-)
--
Duy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-missing-else-statement.patch
Type: text/x-patch
Size: 855 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/swfdec/attachmen...
2008 Jan 02
0
3 commits - libswfdec/swfdec_movie.c test/trace
...+1,4 @@
+$version,a,foreach
+
+a
+
diff --git a/test/trace/movie-enumerate.as b/test/trace/movie-enumerate.as
new file mode 100644
index 0000000..45f5462
--- /dev/null
+++ b/test/trace/movie-enumerate.as
@@ -0,0 +1,21 @@
+// makeswf -v 7 -s 200x150 -r 1 -o movie-enumerate.swf movie-enumerate.as
+
+createEmptyMovieClip ("a", 0);
+a.createEmptyMovieClip ("a", 0);
+function foreach (m) {
+ var a = [];
+ for (var i in m)
+ a.push (i);
+ a.sort ();
+ trace (a);
+ ASSetPropFlags (m, null, 16383);
+ a = [];
+ for (var j in a)
+ a.push (j);
+ a.sort ();
+ trace (a);
+};
+foreach (this)...
2007 Jun 27
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie_as.c
...e
@@ -0,0 +1,5 @@
+10
+0
+0
+10
+20
diff --git a/test/trace/duplicate-names.as b/test/trace/duplicate-names.as
new file mode 100644
index 0000000..b268b5e
--- /dev/null
+++ b/test/trace/duplicate-names.as
@@ -0,0 +1,14 @@
+// makeswf -v 7 -s 200x150 -r 1 -o duplicate-names.swf duplicate-names.as
+
+createEmptyMovieClip ("foo", 10);
+trace (foo.getDepth ());
+createEmptyMovieClip ("foo", 0);
+trace (foo.getDepth ());
+createEmptyMovieClip ("foo", 20);
+trace (foo.getDepth ());
+foo.removeMovieClip ();
+trace (foo.getDepth ());
+foo.removeMovieClip ();
+trace (foo.getDepth ());
+
+load...
2007 Jun 27
0
Branch 'as' - 4 commits - test/trace
...dex 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 = 42;
+ setTarget ("");
+ trace (this.bla);
+ trace (movie.bla);
+}
+foo ();
+trace (bla);
+trace (movie.bla);
+
+loadMovie ("FSCommand:quit", "");
diff --git a/test/trace/defi...
2007 Oct 14
0
4 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_sound.c test/trace
.../
+42
diff --git a/test/trace/getsetproperty-target.as b/test/trace/getsetproperty-target.as
new file mode 100644
index 0000000..cbc2ff0
--- /dev/null
+++ b/test/trace/getsetproperty-target.as
@@ -0,0 +1,34 @@
+// makeswf -v 7 -s 200x150 -r 1 -o getsetproperty-target.swf getsetproperty-target.as
+
+createEmptyMovieClip ("a", 0);
+a.createEmptyMovieClip ("a", 0);
+
+function do_test (x) {
+ // equivalent code:
+ // trace (eval (x)._target);
+ // eval (x)._x = 42;
+ // trace (eval (x)._x);
+ asm {
+ push "x"
+ getvariable
+ dup
+ push 11
+ getproperty
+ trace
+...
2007 Oct 25
0
4 commits - libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h libswfdec/swfdec_sprite_movie.c test/trace
...@@ -0,0 +1 @@
+0
diff --git a/test/trace/settarget-tostring.as b/test/trace/settarget-tostring.as
new file mode 100644
index 0000000..0413718
--- /dev/null
+++ b/test/trace/settarget-tostring.as
@@ -0,0 +1,8 @@
+// makeswf -v 7 -s 200x150 -r 1 -o settarget-tostring.swf settarget-tostring.as
+
+a = createEmptyMovieClip ("name", 0);
+b = createEmptyMovieClip ("name", 1);
+setTarget (b);
+trace (getDepth ());
+
+loadMovie ("fscommand:QUIT", "");
2007 Aug 22
0
Branch 'vivi' - 2 commits - libswfdec/swfdec_movie.c test/trace
...test/trace/remove-depths.as
new file mode 100644
index 0000000..562bdbf
--- /dev/null
+++ b/test/trace/remove-depths.as
@@ -0,0 +1,15 @@
+// makeswf -v 7 -s 200x150 -r 1 -o remove-depths.swf remove-depths.as
+
+depths = [ 0, -16384, -16385, 1000 ];
+for (i = 0; i < depths.length; i++) {
+ bla = createEmptyMovieClip ("foo" + i, depths[i]);
+ bla.depth = bla.getDepth ();
+ bla.onUnload = function () {
+ trace (this.depth + " => " + this.getDepth ());
+ };
+ bla.removeMovieClip ();
+}
+// We print that here so we know the onUnload gets triggered later
+trace ("Check how removin...
2007 Oct 15
0
8 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_sound.c libswfdec/swfdec_sound.h test/trace
....swf newobject-paths.as
+
+function construct (s) {
+ var ret;
+ asm {
+ push "ret", 0, "s"
+ getvariable
+ dup
+ trace
+ new
+ setvariable
+ };
+ return ret;
+};
+
+function Foo () {
+ this.toString = function () {
+ return "hi";
+ };
+};
+
+createEmptyMovieClip ("a", 0);
+a.Bar = Foo;
+
+values = [
+ "Foo",
+ "/:Foo",
+ "/:::Foo",
+ "a.Bar",
+ "a/Bar",
+ "/a/..:a.Bar"
+];
+
+for (i = 0; i < values.length; i++) {
+ trace (construct (values[i]));
+}
+
+loadMovie ("FSCommand...
2007 Jun 10
1
variable scope
...k;
case 1:
klik1.start(0, 1);
break;
case 2:
klik2.start(0, 1);
break;
default:
klik.start(0, 1);
}
someListener = new Object();
someListener.onMouseMove = function () {
_root.createEmptyMovieClip('rectangle', 10000);
borderXcurrent = Math.floor((_xmouse - 13) / CellSize +
(_xmouse > borderXstart)) * CellSize + 13;
borderYcurrent = Math.floor((_ymouse - 13) / CellSize +
(_ymouse > borderYstart)) * CellSize + 13;
if (borderXcurrent > CellSize * w...
2007 Jul 11
0
Branch 'as' - 4 commits - libswfdec/swfdec_color.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c test/trace
...NaN
+NaN
+127
+3.14159265358979
+0
+0
+-179
+179
+180
+-180
+-180
diff --git a/test/trace/rotation2.as b/test/trace/rotation2.as
new file mode 100644
index 0000000..9ac5a5b
--- /dev/null
+++ b/test/trace/rotation2.as
@@ -0,0 +1,30 @@
+// makeswf -v 7 -s 200x150 -r 1 -o rotation2.swf rotation2.as
+
+createEmptyMovieClip ("foo", 0);
+trace (foo._rotation);
+foo._rotation = NaN;
+trace (foo._rotation);
+foo._rotation = Infinity;
+trace (foo._rotation);
+foo._rotation = -Infinity;
+trace (foo._rotation);
+foo._rotation = 12345467890;
+trace (foo._rotation);
+foo._rotation = Math.PI;
+trace (foo._rotation);...
2007 Nov 09
0
10 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_loader.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie_clip_loader.c libswfdec/swfdec_movie.h
...+undefined
+true
diff --git a/test/trace/unloadmovie-simple.as b/test/trace/unloadmovie-simple.as
new file mode 100644
index 0000000..a1df6bf
--- /dev/null
+++ b/test/trace/unloadmovie-simple.as
@@ -0,0 +1,16 @@
+// makeswf -v 7 -s 200x150 -r 1 -o unloadmovie-simple.swf unloadmovie-simple.as
+
+x = createEmptyMovieClip ("a", 1);
+loadMovie ("", a);
+a.x = 42;
+a.createEmptyMovieClip ("a", 1);
+
+onEnterFrame = function () {
+ trace (a);
+ trace (a.x);
+ trace (a.a);
+ trace (a == x);
+ if (!a.a)
+ loadMovie ("fscommand:QUIT", "");
+};
+onEnterFrame ();
co...
2007 Jun 28
0
Branch 'as' - 4 commits - libswfdec/swfdec_debugger.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/image
...ratio = 0;
+ ratio = -1;
}
if (has_name) {
diff-tree 8667de8f3c4c44801a950f58aae4b3a6bd0a5c17 (from 81472f980827d624a88339abd8db0e40c8aaf453)
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Jun 27 19:20:18 2007 +0200
allow creating movies in depths < 16384
createEmptyMovieClip allows this
diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c
index 0b0d463..e157437 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -881,7 +881,6 @@ swfdec_movie_new (SwfdecPlayer *player,
gsize size;
g_return_val_if_fail (SWFDEC_IS_PLAYER (player),...
2007 Nov 10
0
10 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie_clip_loader.c libswfdec/swfdec_movie.h libswfdec/swfdec_resource.c
...+false
diff --git a/test/trace/unloadmovie-recreate.as b/test/trace/unloadmovie-recreate.as
new file mode 100644
index 0000000..2122f62
--- /dev/null
+++ b/test/trace/unloadmovie-recreate.as
@@ -0,0 +1,13 @@
+// makeswf -v 7 -s 200x150 -r 1 -o unloadmovie-recreate.swf unloadmovie-recreate.as
+
+x = createEmptyMovieClip ("b", 1);
+b._name = "a";
+
+x.loadMovie ("");
+
+onEnterFrame = function () {
+ trace (x == a);
+ if (x != a)
+ loadMovie ("fscommand:quit", "");
+};
+onEnterFrame ();
commit 3db49f6d929a0a026a0c6e8ce5596f1d071070de
Author: Benjamin Otte <o...
2007 Jun 28
0
Branch 'as' - 5 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c test/trace
...rite-depths.as
@@ -0,0 +1,17 @@
+// makeswf -v 7 -s 200x150 -r 1 -o removesprite-depths.swf removesprite-depths.as
+
+trace ("Check RemoveSprite action with various depths");
+
+depths = [-2000000, -20000, -10000, -1, 0, 1000000, 2000000 ];
+for (i = 0; i < depths.length; i++) {
+ x = createEmptyMovieClip ("movie" + depths[i], depths[i]);
+ trace (this["movie" + depths[i]] + " @ " + x.getDepth ());
+ asm {
+ push "x"
+ getvariable
+ removemovieclip
+ };
+ trace (this["movie" + depths[i]] + " @ " + x.getDepth ());
+}
+
+loadMovi...