Displaying 20 results from an estimated 20 matches for "ondata".
Did you mean:
nodata
2007 Aug 20
0
3 commits - libswfdec/swfdec_as_context.c test/trace
...a/test/trace/loadvars-6.swf and b/test/trace/loadvars-6.swf differ
diff --git a/test/trace/loadvars-6.swf.trace b/test/trace/loadvars-6.swf.trace
index 093c6d0..3a22913 100644
--- a/test/trace/loadvars-6.swf.trace
+++ b/test/trace/loadvars-6.swf.trace
@@ -1,39 +1,51 @@
[type Function]
undefined
-onData: test=2&moi=terve&tyhja&=taysi&hehe=jotain%20muuta&hehe2=jotain muuta&on=lal=lel=luu
+onData: test=2&hi=hello&empty_value&=empty_name&spa%20ce=spa%20ce&sp ace&spa ce=sp ace&many=equal=signs=in=row&eof=
+was there&eof
+=was there&
fa...
2003 Nov 13
7
modified classes
--
+-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+
| http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy |
| Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" |
+-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+
-------------- next part --------------
A non-text attachment was scrubbed...
Name:
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
...Vars.prototype._bytesLoaded = undefined;
-LoadVars.prototype._bytesTotal = undefined;
LoadVars.prototype.contentType = "application/x-www-form-urlencoded";
LoadVars.prototype.load = ASnative (301, 0);
@@ -94,9 +91,9 @@ LoadVars.prototype.onLoad = function ()
};
LoadVars.prototype.onData = function (src) {
+ this.loaded = true;
if (src != null) {
this.decode (src);
- this.loaded = true;
this.onLoad (true);
} else {
this.onLoad (false);
@@ -123,4 +120,4 @@ LoadVars.prototype.getBytesTotal = funct
return this._bytesTotal;
};
-ASSetPropFlags(LoadVars.pro...
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
...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 ("Total: " + this._bytesTotal);
+};
+
+trace ("Loaded: " + obj._bytesLoaded);
+trace ("Total: "...
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
...a/test/trace/loadvars-6.swf and b/test/trace/loadvars-6.swf differ
diff --git a/test/trace/loadvars-6.swf.trace b/test/trace/loadvars-6.swf.trace
index 093c6d0..3a22913 100644
--- a/test/trace/loadvars-6.swf.trace
+++ b/test/trace/loadvars-6.swf.trace
@@ -1,39 +1,51 @@
[type Function]
undefined
-onData: test=2&moi=terve&tyhja&=taysi&hehe=jotain%20muuta&hehe2=jotain muuta&on=lal=lel=luu
+onData: test=2&hi=hello&empty_value&=empty_name&spa%20ce=spa%20ce&sp ace&spa ce=sp ace&many=equal=signs=in=row&eof=
+was there&eof
+=was there&
fa...
2007 Oct 30
8
Comments on commit 1406 (rakefile changes)
Alex,
The changes to the rakefiles are causing me some problems building on
OS X. I am getting the following:
rake aborted!
undefined method `+'' for nil:NilClass
/Users/sean/Archive/Programming/wxRuby_Dev/wxruby2/rakefile:109
I will now go test on Windows
Sean
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
...ot;decode", true],
+ ["_global.LoadVars.prototype", "getBytesLoaded", true],
+ ["_global.LoadVars.prototype", "getBytesTotal", true],
+ ["_global.LoadVars.prototype", "load", true],
+ ["_global.LoadVars.prototype", "onData", true],
+ ["_global.LoadVars.prototype", "onLoad", true],
+ ["_global.LoadVars.prototype", "send", true],
+ ["_global.LoadVars.prototype", "sendAndLoad", true],
+ ["_global.LoadVars.prototype", "toString", tru...
2005 Dec 23
5
AJAX : Server to Client callback possible ?
hi,
is there a way (with rails) to have live updates triggerred by the
server on the client side?
is there a little javascript lib i didn''t know that can listen to
incoming server orders....
a friend of mine thought about an hidden .swf to make the socket
connection and that can launch javascript instructions into the client
web page.
any working solutions to point me to ?
thanks
2003 Nov 20
5
compile fail
Hi!
I''m using winxp, wxwindows 2.4.2, mingw, msys:
droptarget.o(.data$_ZTV18wxDropTargetHelper+0x20):droptarget.cpp:
undefined reference to `wxDropTargetHelper::OnData(int, int,
wxDragResult)''
textdroptarget.o(.text+0x26a):textdroptarget.cpp: undefined reference to
`wxTextDropTargetHelper::wxTextDropTargetHelper()''
dataobject.o(.text+0x306):dataobject.cpp: undefined reference to
`wxDataObjectHelper::wxDataObjectHelper()''
make: *** [wxru...
2007 Dec 05
0
4 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_policy_loader.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_format.c
...c/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -1612,9 +1612,11 @@ static void
swfdec_movie_load_variables_on_finish (SwfdecAsObject *target,
const char *text)
{
- swfdec_as_object_decode (target, text);
+ if (text != NULL)
+ swfdec_as_object_decode (target, text);
// only call onData for sprite movies
+ // FIXME: is it called even when loading fails?
if (target->context->version >= 6 && SWFDEC_IS_SPRITE_MOVIE (target))
swfdec_as_object_call (target, SWFDEC_AS_STR_onData, 0, NULL, NULL);
}
commit edb43b373fd05f677fea268effca532789aa163c
Author: Pekka L...
2007 Aug 01
0
9 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_frame.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loader_internal.h libswfdec/swfdec_loadertarget.c libswfdec/swfdec_loadertarget.h libswfdec/swfdec_movie.c
...er->error)
- return;
if (dec == NULL) {
if (!swfdec_decoder_can_detect (loader->queue))
return;
diff --git a/libswfdec/swfdec_xml.c b/libswfdec/swfdec_xml.c
index 1db087e..c418ca4 100644
--- a/libswfdec/swfdec_xml.c
+++ b/libswfdec/swfdec_xml.c
@@ -52,43 +52,49 @@ swfdec_xml_ondata (SwfdecXml *xml)
}
static void
-swfdec_xml_loader_target_parse (SwfdecLoaderTarget *target, SwfdecLoader *loader)
+swfdec_xml_loader_target_error (SwfdecLoaderTarget *target, SwfdecLoader *loader)
{
SwfdecXml *xml = SWFDEC_XML (target);
- if (xml->loader != loader || loader->state...
2007 Mar 01
0
11 commits - libswfdec/Makefile.am libswfdec/swfdec_connection.c libswfdec/swfdec_connection.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js.h libswfdec/swfdec_js_net_stream.c
...ot;
+#include "js/jsapi.h"
+#include "js/jsinterp.h"
+
+/*** SWFDEC_LOADER_TARGET ***/
+
+static SwfdecPlayer *
+swfdec_xml_loader_target_get_player (SwfdecLoaderTarget *target)
+{
+ SwfdecXml *xml = SWFDEC_XML (target);
+
+ return xml->player;
+}
+
+static void
+swfdec_xml_ondata (SwfdecXml *xml)
+{
+ JSContext *cx = SWFDEC_SCRIPTABLE (xml)->jscx;
+ JSObject *obj = SWFDEC_SCRIPTABLE (xml)->jsobj;
+ jsval val, fun;
+ JSString *string;
+
+ if (!JS_GetProperty (cx, obj, "onData", &fun))
+ return;
+ if (fun == JSVAL_VOID)
+ return;
+ if (xml->...
2007 Mar 07
0
11 commits - libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h
...wfdecEventList {
GArray * events;
};
+static const char *event_names[] = {
+ "onLoad",
+ "onEnterFrame",
+ "onUnload",
+ "onMouseMove",
+ "onMouseDown",
+ "onMouseUp",
+ "onKeyUp",
+ "onKeyDown",
+ "onData",
+ NULL,
+ "onPress",
+ "onRelease",
+ "onReleaseOutside",
+ "onRollOver",
+ "onRollOut",
+ "onDragOver",
+ "onDragOut",
+ NULL,
+ NULL
+};
+
+const char *
+swfdec_event_type_get_name (SwfdecEventType type)
+{
+...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...C_AS_CONSTANT_STRING ("onMouseMove"),
+ SWFDEC_AS_CONSTANT_STRING ("onMouseDown"),
+ SWFDEC_AS_CONSTANT_STRING ("onMouseUp"),
+ SWFDEC_AS_CONSTANT_STRING ("onKeyUp"),
+ SWFDEC_AS_CONSTANT_STRING ("onKeyDown"),
+ SWFDEC_AS_CONSTANT_STRING ("onData"),
+ SWFDEC_AS_CONSTANT_STRING ("onPress"),
+ SWFDEC_AS_CONSTANT_STRING ("onRelease"),
+ SWFDEC_AS_CONSTANT_STRING ("onReleaseOutside"),
+ SWFDEC_AS_CONSTANT_STRING ("onRollOver"),
+ SWFDEC_AS_CONSTANT_STRING ("onRollOut"),
+ SWFDEC_AS_CO...
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
...Fix a compiler warning when using SWFDEC_AS_CHECK
make gcc not complain about unused variables
Pekka Lampila:
Start work on XML parsing and XMLNode class
XMLNode: Improve toString method, add incomplete appendChild method
Merge branch 'master' into xml
In XML.onData set loaded even if loaded failed. Set XML propflags.
Fix a compile error I caused when merging
Merge branch 'master' into xml
Rename swfdec_xml_node_as.[ch] to swfdec_xml_node.[ch]
Some more XML work. Parsing tags and drafting API.
Merge branch 'master'...
2007 Dec 18
2
Changes to 'refs/tags/0.5.5'
...' into policy
Free the policy loaders
Move handling of BOMs from LoadObject to Loader
Forgot to remove a variable from LoadObject
Change LoadObject to use callback functions, to work better with loadVariables
Allow running loadVariables on all movies, but only call onData for MovieClips
Add a test case for running loadVariables on different targets
Rewrite trace_properties.as to generate and use list of names in _global
Recompile tests using trace_properties.as to use the new code
Fix ASnative functions for the situations where the function i...
2007 Oct 23
0
11 commits - libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_object.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h
...x StyleSheet methods I just broke (spaces inside ASSetNative call)
diff --git a/libswfdec/swfdec_initialize.as b/libswfdec/swfdec_initialize.as
index d7aaf49..578f2e7 100644
--- a/libswfdec/swfdec_initialize.as
+++ b/libswfdec/swfdec_initialize.as
@@ -456,7 +456,7 @@ TextField.StyleSheet.prototype.onData = function (src) {
}
};
-ASSetNative (TextField.StyleSheet.prototype, 113, "7update, 7parseCSSInternal, 7parseCSSFontFamily, 7parseColor", 100);
+ASSetNative (TextField.StyleSheet.prototype, 113, "7update,7parseCSSInternal,7parseCSSFontFamily,7parseColor", 100);
ASSetProp...
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...-1161,6 +1162,18 @@ swfdec_action_get_url (SwfdecAsContext *cx, guint action, const guint8 *data, gu
}
static void
+swfdec_as_interpret_load_variables_on_finish (SwfdecAsObject *target,
+ const char *text)
+{
+ if (text != NULL)
+ swfdec_as_object_decode (target, text);
+
+ // only call onData for sprite movies
+ // FIXME: is it called even when loading fails?
+ swfdec_movie_queue_script (SWFDEC_MOVIE (target), SWFDEC_EVENT_DATA);
+}
+
+static void
swfdec_action_get_url2 (SwfdecAsContext *cx, guint action, const guint8 *data, guint len)
{
const char *target, *url;
@@ -1193,8 +1206...
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
...al.Function
+ prototype (hp) = object
+ __proto__ (hp) = _global.Object.prototype
+ constructor (hp) = _global.TextField.StyleSheet.prototype.getStyleNames
+ load (hp) = function
+ __proto__ (hp) = _global.Function.prototype
+ constructor (hp) = _global.Function
+ onData (hp) = function
+ __proto__ (hp) = _global.Function.prototype
+ constructor (hp) = _global.Function
+ prototype (hp) = object
+ __proto__ (hp) = _global.Object.prototype
+ constructor (hp) = _global.TextField.StyleSheet.prototype.onData
+ onLoad (hp) = function
+...
2007 Nov 26
0
14 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_file_reference.c libswfdec/swfdec_load_object.c libswfdec/swfdec_sprite_movie_as.c libswfdec/swfdec_system_security.c test/trace
...om-7.swf loadobject-bom.as
+
+var files = [
+ "utf-8-bom.txt",
+ "utf-16-be-bom.txt",
+ "utf-16-le-bom.txt",
+ "utf-32-be-bom.txt",
+ "utf-32-le-bom.txt"
+];
+var file_num = 0;
+
+var obj = new Object ();
+
+obj.load = ASnative (301, 0);
+
+obj.onData = function (str) {
+ trace ("Got: " + typeof (str) + " '" + str + "'");
+ trace ("Loaded: " + this._bytesLoaded);
+ trace ("Total: " + this._bytesTotal);
+ trace ("Is loaded: " + obj.loaded);
+
+ file_num++;
+ if (file_num &l...