Displaying 12 results from an estimated 12 matches for "removelistener".
2007 Aug 31
5
prototype
Hi,
is there some way to remove all event listeners for the specific
element?
Thanks for help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group,
2007 Jun 10
1
variable scope
...r(borderXcurrent >
borderXstart)), Math.floor((borderYcurrent - 13) / CellSize -
Number(borderYcurrent > borderYstart)));
};
Mouse.addListener(someListener);
}
}
on (release) {
if (_root.playgame) {
_root.rectangle.removeMovieClip();
Mouse.removeListener(someListener);
checkForLegal(Math.floor((borderXstart - 13) / CellSize),
Math.floor((borderYstart - 13) / CellSize), Math.floor((borderXcurrent
- 13) / CellSize - Number(borderXcurrent > borderXstart)),
Math.floor((borderYcurrent - 13) / CellSize - Number(borderYcurrent >
borderYstart...
2007 Feb 22
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_js.c libswfdec/swfdec_js_mouse.c libswfdec/swfdec_listener.c libswfdec/swfdec_listener.h libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...ut == end || (*end != '\0' && !g_ascii_isspace (*end)))
diff-tree f1457b93b4d9cb43650b0e595bbe41096230281f (from c37787b576447a80f90421643ffdf4dfbeae9350)
Author: Benjamin Otte <otte@gnome.org>
Date: Tue Feb 20 15:02:29 2007 +0100
implement Mouse.addListener() and Mouse.removeListener()
diff --git a/libswfdec/swfdec_js_mouse.c b/libswfdec/swfdec_js_mouse.c
index dfea1c2..2a31248 100644
--- a/libswfdec/swfdec_js_mouse.c
+++ b/libswfdec/swfdec_js_mouse.c
@@ -23,9 +23,33 @@
#include "swfdec_js.h"
#include "swfdec_debug.h"
+#include "swfdec_listener.h&q...
2007 Aug 23
0
10 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_object.c test/trace
...uctor (hp) = _global.Object.constructor
+ prototype (hp) = object
+ __proto__ (hp) = _global.Object.prototype
+ constructor (hp) = _global.AsBroadcaster.initialize
+ prototype (hp) = object
+ __proto__ (hp) = _global.Object.prototype
+ constructor (hp) = _global.AsBroadcaster
+ removeListener (hp) = function
+ __proto__ (hp) = _global.Object.__proto__
+ constructor (hp) = _global.Object.constructor
+ prototype (hp) = object
+ __proto__ (hp) = _global.Object.prototype
+ constructor (hp) = _global.AsBroadcaster.removeListener
diff --git a/test/trace/asbroadcaster-proper...
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
..._initialize.as b/libswfdec/swfdec_initialize.as
index 0741314..b153c7a 100644
--- a/libswfdec/swfdec_initialize.as
+++ b/libswfdec/swfdec_initialize.as
@@ -49,9 +49,10 @@ AsBroadcaster.initialize = function (o)
o._listeners = new Array ();
ASSetPropFlags(o, "broadcastMessage,addListener,removeListener,_listeners", 131);
};
-ASSetPropFlags(o, null, 131);
+ASSetPropFlags(AsBroadcaster, null, 131);
/*** MOUSE ***/
+
Mouse = new Object ();
Mouse.show = ASnative (5, 0);
Mouse.hide = ASnative (5, 1);
diff --git a/libswfdec/swfdec_initialize.h b/libswfdec/swfdec_initialize.h
index 6cc7420.....
2007 Jun 10
0
Branch 'as' - 5 commits - libswfdec/swfdec_mouse_as.c libswfdec/swfdec_movie_asprops.c test/trace
...8 ++++++++
10 files changed, 46 insertions(+), 14 deletions(-)
New commits:
diff-tree 7bd2ff52ba93f0405bd99cb4162649e92ba4c1fd (from 5aaf2949c83ea9131fd18ebe35a2cf6c69c45951)
Author: Benjamin Otte <otte at gnome.org>
Date: Sun Jun 10 23:45:56 2007 +0200
Mouse.addListener() and Mouse.removeListener() don't exist in Flash 5
This should be using AsBroadcaster anyway, but since that's not implemented...
diff --git a/libswfdec/swfdec_mouse_as.c b/libswfdec/swfdec_mouse_as.c
index 81187a3..01b6c9d 100644
--- a/libswfdec/swfdec_mouse_as.c
+++ b/libswfdec/swfdec_mouse_as.c
@@ -76,8...
2007 Nov 07
0
36 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h
...r (hp) = _global.Object
+ getProgress (hpn) = function
+ __proto__ (hpn) = _global.Object.__proto__
+ constructor (hp) = _global.Object.constructor
+ loadClip (hpn) = function
+ __proto__ (hpn) = _global.Object.__proto__
+ constructor (hp) = _global.Object.constructor
+ removeListener (hpn) = _global.AsBroadcaster.removeListener
+ unloadClip (hpn) = function
+ __proto__ (hpn) = _global.Object.__proto__
+ constructor (hp) = _global.Object.constructor
+MovieClipLoader.instance = object
+ __constructor__ (hn) = _global.MovieClipLoader
+ __proto__ (hp) = _global.Movie...
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
...ull
+++ b/test/trace/asbroadcaster-override.as
@@ -0,0 +1,31 @@
+// makeswf -v 7 -s 200x150 -r 1 -o asbroadcaster-override.swf asbroadcaster-override.as
+
+trace ("override AsBroadcaster methods");
+
+AsBroadcaster.addListener = function () {
+ trace ("add");
+};
+AsBroadcaster.removeListener = function () {
+ trace ("remove");
+};
+AsBroadcaster.broadcastMessage = function () {
+ trace ("broadcast");
+};
+function test () {
+ emitter = new Object ();
+ AsBroadcaster.initialize (emitter);
+ emitter._listeners[0] = "hi";
+ emitter.addListener (null);
+...
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
...ster.addListener
+ broadcastMessage (hpc) = function
+ __proto__ (hp) = _global.Function.prototype
+ constructor (hp) = _global.Function
+ constructor (hpc) = _global.Object
+ hide (hpc) = function
+ __proto__ (hp) = _global.Function.prototype
+ constructor (hp) = _global.Function
+ removeListener (hpc) = _global.AsBroadcaster.removeListener
+ show (hpc) = function
+ __proto__ (hp) = _global.Function.prototype
+ constructor (hp) = _global.Function
diff --git a/test/trace/moviecliploader-properties-5.swf b/test/trace/moviecliploader-properties-5.swf
index 0cf5dc6..e289095 100644
Binary...
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
...Method if a function doesn't exist
andle quitting in breakpoint while feeding data
make the actions take any gpointer instead of just SwfdecMovies for actions
add SwfdecListener
call _perform_actions after scheduling timeouts
implement Mouse.addListener() and Mouse.removeListener()
handle NULL input when converting args
fix getting the current target, so that it works with scope chains
rework SetVariable, SetProperty and GetProperty
implement getNextHighestDepth ()
add debug warning about missing constructors
implement NetConnection objec...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...Method if a function doesn't exist
andle quitting in breakpoint while feeding data
make the actions take any gpointer instead of just SwfdecMovies for actions
add SwfdecListener
call _perform_actions after scheduling timeouts
implement Mouse.addListener() and Mouse.removeListener()
handle NULL input when converting args
fix getting the current target, so that it works with scope chains
rework SetVariable, SetProperty and GetProperty
implement getNextHighestDepth ()
add debug warning about missing constructors
implement NetConnection objec...
2007 Nov 30
0
36 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_flash_security.c
...e (hp) = function
+ __proto__ (hp) = _global.Function.prototype
+ constructor (hp) = _global.Function
+ browse (hpn) = function
+ __proto__ (hp) = _global.Function.prototype
+ constructor (hp) = _global.Function
+ constructor (hp) = _global.flash.net.FileReferenceList
+ removeListener (hp) = _global.AsBroadcaster.removeListener
+local.a = object
+ __constructor__ (h) = _global.flash.net.FileReferenceList
+ __proto__ (hp) = _global.flash.net.FileReferenceList.prototype
+ _listeners = object
+ __proto__ (hp) = _global.Array.prototype
+ constructor (hp) = _global.Array
+...