Displaying 2 results from an estimated 2 matches for "watch_data".
Did you mean:
match_data
2007 Sep 10
0
3 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h
...13,11 +113,14 @@ struct _SwfdecAsVariable {
SwfdecAsValue value; /* value of property */
SwfdecAsFunction * get; /* getter set with swfdec_as_object_add_property */
SwfdecAsFunction * set; /* setter or %NULL */
- SwfdecAsFunction * watch; /* watcher or %NULL */
- SwfdecAsValue * watch_data; /* user data to watcher */
- gint8 watch_recurse; /* times the watch function has been called without returning */
};
+typedef struct {
+ SwfdecAsFunction * watch; /* watcher or %NULL */
+ SwfdecAsValue watch_data; /* user data to watcher */
+ guint refcount; /* refcount - misused for...
2007 Sep 11
0
8 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_strings.c test/trace
...watch in Flash 7
+ * and set a variable using Flash 6 */
+ if (watch && swfdec_as_watch_can_recurse (watch)) {
+ SwfdecAsValue args[4];
+ SWFDEC_AS_VALUE_SET_STRING (&args[0], variable);
+ args[1] = var->value;
+ args[2] = *val;
+ args[3] = watch->watch_data;
+ swfdec_as_watch_ref (watch);
+ swfdec_as_function_call (watch->watch, object, 4, args, &ret);
+ swfdec_as_context_run (object->context);
+ swfdec_as_watch_unref (watch);
+ var = swfdec_as_object_hash_lookup (object, variable);
+ if (var == NULL)
+ return;...