Displaying 8 results from an estimated 8 matches for "root_act".
2007 Jun 06
0
Branch 'as' - libswfdec/Makefile.am libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_root_sprite.h libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_swf_decoder.h libswfdec/swfdec_tag.c
...de "swfdec_player_internal.h"
-#include "swfdec_root_sprite.h"
 #include "swfdec_script.h"
+#include "swfdec_sprite.h"
 #include "swfdec_swf_decoder.h"
 
 
@@ -216,7 +216,7 @@ swfdec_root_movie_load (SwfdecRootMovie 
 void
 swfdec_root_movie_perform_root_actions (SwfdecRootMovie *root, guint frame)
 {
-  SwfdecRootSprite *sprite;
+  SwfdecSwfDecoder *s;
   GArray *array;
   guint i;
 
@@ -226,12 +226,12 @@ swfdec_root_movie_perform_root_actions (
   if (frame < root->root_actions_performed)
     return;
 
-  sprite = SWFDEC_ROOT_SPRITE (SWFDEC_SP...
2007 Mar 09
0
libswfdec/swfdec_root_sprite.c libswfdec/swfdec_root_sprite.h
...;swfdec_swf_decoder.h"
+
+G_DEFINE_TYPE (SwfdecRootSprite, swfdec_root_sprite, SWFDEC_TYPE_SPRITE)
+
+void
+swfdec_root_sprite_dispose (GObject *object)
+{
+  SwfdecSprite *sprite = SWFDEC_SPRITE (object);
+  SwfdecRootSprite *root = SWFDEC_ROOT_SPRITE (object);
+  guint i,j;
+
+  if (root->root_actions) {
+    for (i = 0; i < sprite->n_frames; i++) {
+      GArray *array = root->root_actions[i];
+      if (array) {
+	for (j = 0; j < array->len; j++) {
+	  SwfdecSpriteAction *action = &g_array_index (array, SwfdecSpriteAction, j);
+
+	  switch (action->type) {
+	    case...
2007 Oct 25
0
6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c
..._advance (SwfdecResource *instance)
-{
-  SwfdecSwfDecoder *s;
-  GArray *array;
-  guint i;
-
-  g_return_if_fail (SWFDEC_IS_RESOURCE (instance));
-
-  s = SWFDEC_SWF_DECODER (instance->decoder);
-  SWFDEC_LOG ("performing actions for frame %u", instance->parse_frame);
-  if (s->root_actions) {
-    array = s->root_actions[instance->parse_frame];
-  } else {
-    array = NULL;
-  }
-  instance->parse_frame++;
-  if (array == NULL)
-    return;
-  for (i = 0; i < array->len; i++) {
-    SwfdecRootAction *action = &g_array_index (array, SwfdecRootAction, i);
-    s...
2007 Jun 18
0
Branch 'as' - 8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_sprite_movie.h libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_swf_decoder.h
...dec_swf_decoder, SWFDEC_TYPE_DECODER)
 
 static void
-swfdec_decoder_dispose (GObject *object)
+swfdec_swf_decoder_dispose (GObject *object)
 {
   SwfdecSwfDecoder *s = SWFDEC_SWF_DECODER (object);
   guint i,j;
@@ -58,7 +58,7 @@ swfdec_decoder_dispose (GObject *object)
       GArray *array = s->root_actions[i];
       if (array) {
 	for (j = 0; j < array->len; j++) {
-	  SwfdecSpriteAction *action = &g_array_index (array, SwfdecSpriteAction, j);
+	  SwfdecRootAction *action = &g_array_index (array, SwfdecRootAction, j);
 
 	  switch (action->type) {
 	    case SWFDEC_ROOT_ACTION_E...
2010 Jan 29
4
Browser related question
Greetings,
How does one monitor if a site is being accessed using browser?
IOW, I just want to know if a user has launched a session thru Firefox.
I basically want to know if a user has tried to access the webserver
and unable to reach it and log such instances.
I am using cron and curl to seperately monitor the link.
Any clues?
Centos 5.2/Gnome/Firefox 3.0.16
Regards
Rajagopal
2007 Mar 07
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_movie.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...68,8 +169,9 @@ swfdec_root_movie_class_init (SwfdecRoot
 }
 
 static void
-swfdec_root_movie_init (SwfdecRootMovie *decoder)
+swfdec_root_movie_init (SwfdecRootMovie *root)
 {
+  root->exports = g_hash_table_new (g_str_hash, g_str_equal);
 }
 
 void
@@ -240,9 +242,22 @@ swfdec_root_movie_perform_root_actions (
 	swfdec_script_execute (action->data, SWFDEC_SCRIPTABLE (root));
 	break;
       case SWFDEC_ROOT_ACTION_EXPORT:
+	{
+	  SwfdecRootExportData *data = action->data;
+	  g_hash_table_insert (root->exports, data->name, data->character);
+	}
 	break;
       default:
 	g_assert_not...
2007 Oct 18
0
18 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_flash_security.c
...ndex e3dd583..109018c 100644
--- a/libswfdec/swfdec_resource.c
+++ b/libswfdec/swfdec_resource.c
@@ -292,7 +292,8 @@ swfdec_resource_advance (SwfdecResource *instance)
     SwfdecRootAction *action = &g_array_index (array, SwfdecRootAction, i);
     switch (action->type) {
       case SWFDEC_ROOT_ACTION_INIT_SCRIPT:
-	swfdec_as_object_run (SWFDEC_AS_OBJECT (instance->movie), action->data);
+	swfdec_as_object_run_with_security (SWFDEC_AS_OBJECT (instance->movie), 
+	    action->data, SWFDEC_SECURITY (instance));
 	break;
       case SWFDEC_ROOT_ACTION_EXPORT:
 	{
diff --git a/libswfd...
2007 Oct 17
0
28 commits - configure.ac debian/changelog debian/control debian/copyright debian/.gitignore debian/libswfdec0.dirs debian/libswfdec0.files debian/libswfdec0.shlibs debian/libswfdec-dev.dirs debian/libswfdec-dev.files debian/rules debian/swf-player.dirs
...:43 2007 +0200
    save results from the FileAttributes tag
diff --git a/libswfdec/swfdec_swf_decoder.h b/libswfdec/swfdec_swf_decoder.h
index 3cd43eb..ab88628 100644
--- a/libswfdec/swfdec_swf_decoder.h
+++ b/libswfdec/swfdec_swf_decoder.h
@@ -82,6 +82,8 @@ struct _SwfdecSwfDecoder
   GArray **		root_actions; 	/* actions to be executed by the root sprite */
   GHashTable *		scripts;      	/* buffer -> script mapping for all scripts */
 
+  gboolean		use_network;	/* allow network or local access */
+  gboolean		has_metadata;	/* TRUE if this file contains metadata */
   gboolean		protection;   	/*...