/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 3.0.12
 *
 * This file is not intended to be easily readable and contains a number of
 * coding conventions designed to improve portability and efficiency. Do not make
 * changes to this file unless you know what you are doing--modify the SWIG
 * interface file instead.
 * ----------------------------------------------------------------------------- */


#ifndef SWIGTCL
#define SWIGTCL
#endif

/* -----------------------------------------------------------------------------
 *  This section contains generic SWIG labels for method/variable
 *  declarations/attributes, and other compiler dependent labels.
 * ----------------------------------------------------------------------------- */

/* template workaround for compilers that cannot correctly implement the C++ standard */
#ifndef SWIGTEMPLATEDISAMBIGUATOR
# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
#  define SWIGTEMPLATEDISAMBIGUATOR template
# elif defined(__HP_aCC)
/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
#  define SWIGTEMPLATEDISAMBIGUATOR template
# else
#  define SWIGTEMPLATEDISAMBIGUATOR
# endif
#endif

/* inline attribute */
#ifndef SWIGINLINE
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
#   define SWIGINLINE inline
# else
#   define SWIGINLINE
# endif
#endif

/* attribute recognised by some compilers to avoid 'unused' warnings */
#ifndef SWIGUNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define SWIGUNUSED __attribute__ ((__unused__))
#   else
#     define SWIGUNUSED
#   endif
# elif defined(__ICC)
#   define SWIGUNUSED __attribute__ ((__unused__))
# else
#   define SWIGUNUSED
# endif
#endif

#ifndef SWIG_MSC_UNSUPPRESS_4505
# if defined(_MSC_VER)
#   pragma warning(disable : 4505) /* unreferenced local function has been removed */
# endif
#endif

#ifndef SWIGUNUSEDPARM
# ifdef __cplusplus
#   define SWIGUNUSEDPARM(p)
# else
#   define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif

/* internal SWIG method */
#ifndef SWIGINTERN
# define SWIGINTERN static SWIGUNUSED
#endif

/* internal inline SWIG method */
#ifndef SWIGINTERNINLINE
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
#endif

/* exporting methods */
#if defined(__GNUC__)
#  if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
#    ifndef GCC_HASCLASSVISIBILITY
#      define GCC_HASCLASSVISIBILITY
#    endif
#  endif
#endif

#ifndef SWIGEXPORT
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   if defined(STATIC_LINKED)
#     define SWIGEXPORT
#   else
#     define SWIGEXPORT __declspec(dllexport)
#   endif
# else
#   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
#     define SWIGEXPORT __attribute__ ((visibility("default")))
#   else
#     define SWIGEXPORT
#   endif
# endif
#endif

/* calling conventions for Windows */
#ifndef SWIGSTDCALL
# if defined(_WIN32) || defined(__WIN32__)
#   define SWIGSTDCALL __stdcall
# else
#   define SWIGSTDCALL
# endif
#endif

/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
# define _CRT_SECURE_NO_DEPRECATE
#endif

/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
# define _SCL_SECURE_NO_DEPRECATE
#endif

/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
#endif

/* Intel's compiler complains if a variable which was never initialised is
 * cast to void, which is a common idiom which we use to indicate that we
 * are aware a variable isn't used.  So we just silence that warning.
 * See: https://github.com/swig/swig/issues/192 for more discussion.
 */
#ifdef __INTEL_COMPILER
# pragma warning disable 592
#endif


#include <stdio.h>
#include <tcl.h>
#include <errno.h>
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>

/* -----------------------------------------------------------------------------
 * swigrun.swg
 *
 * This file contains generic C API SWIG runtime support for pointer
 * type checking.
 * ----------------------------------------------------------------------------- */

/* This should only be incremented when either the layout of swig_type_info changes,
   or for whatever reason, the runtime changes incompatibly */
#define SWIG_RUNTIME_VERSION "4"

/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
#ifdef SWIG_TYPE_TABLE
# define SWIG_QUOTE_STRING(x) #x
# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
#else
# define SWIG_TYPE_TABLE_NAME
#endif

/*
  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
  creating a static or dynamic library from the SWIG runtime code.
  In 99.9% of the cases, SWIG just needs to declare them as 'static'.

  But only do this if strictly necessary, ie, if you have problems
  with your compiler or suchlike.
*/

#ifndef SWIGRUNTIME
# define SWIGRUNTIME SWIGINTERN
#endif

#ifndef SWIGRUNTIMEINLINE
# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
#endif

/*  Generic buffer size */
#ifndef SWIG_BUFFER_SIZE
# define SWIG_BUFFER_SIZE 1024
#endif

/* Flags for pointer conversions */
#define SWIG_POINTER_DISOWN        0x1
#define SWIG_CAST_NEW_MEMORY       0x2

/* Flags for new pointer objects */
#define SWIG_POINTER_OWN           0x1


/*
   Flags/methods for returning states.

   The SWIG conversion methods, as ConvertPtr, return an integer
   that tells if the conversion was successful or not. And if not,
   an error code can be returned (see swigerrors.swg for the codes).

   Use the following macros/flags to set or process the returning
   states.

   In old versions of SWIG, code such as the following was usually written:

     if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
       // success code
     } else {
       //fail code
     }

   Now you can be more explicit:

    int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
    if (SWIG_IsOK(res)) {
      // success code
    } else {
      // fail code
    }

   which is the same really, but now you can also do

    Type *ptr;
    int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
    if (SWIG_IsOK(res)) {
      // success code
      if (SWIG_IsNewObj(res) {
        ...
	delete *ptr;
      } else {
        ...
      }
    } else {
      // fail code
    }

   I.e., now SWIG_ConvertPtr can return new objects and you can
   identify the case and take care of the deallocation. Of course that
   also requires SWIG_ConvertPtr to return new result values, such as

      int SWIG_ConvertPtr(obj, ptr,...) {
        if (<obj is ok>) {
          if (<need new object>) {
            *ptr = <ptr to new allocated object>;
            return SWIG_NEWOBJ;
          } else {
            *ptr = <ptr to old object>;
            return SWIG_OLDOBJ;
          }
        } else {
          return SWIG_BADOBJ;
        }
      }

   Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
   more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
   SWIG errors code.

   Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
   allows to return the 'cast rank', for example, if you have this

       int food(double)
       int fooi(int);

   and you call

      food(1)   // cast rank '1'  (1 -> 1.0)
      fooi(1)   // cast rank '0'

   just use the SWIG_AddCast()/SWIG_CheckState()
*/

#define SWIG_OK                    (0)
#define SWIG_ERROR                 (-1)
#define SWIG_IsOK(r)               (r >= 0)
#define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)

/* The CastRankLimit says how many bits are used for the cast rank */
#define SWIG_CASTRANKLIMIT         (1 << 8)
/* The NewMask denotes the object was created (using new/malloc) */
#define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
/* The TmpMask is for in/out typemaps that use temporal objects */
#define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
/* Simple returning values */
#define SWIG_BADOBJ                (SWIG_ERROR)
#define SWIG_OLDOBJ                (SWIG_OK)
#define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
#define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
/* Check, add and del mask methods */
#define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
#define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
#define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
#define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
#define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
#define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))

/* Cast-Rank Mode */
#if defined(SWIG_CASTRANK_MODE)
#  ifndef SWIG_TypeRank
#    define SWIG_TypeRank             unsigned long
#  endif
#  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
#    define SWIG_MAXCASTRANK          (2)
#  endif
#  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
#  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
SWIGINTERNINLINE int SWIG_AddCast(int r) {
  return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
}
SWIGINTERNINLINE int SWIG_CheckState(int r) {
  return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
}
#else /* no cast-rank mode */
#  define SWIG_AddCast(r) (r)
#  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
#endif


#include <string.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef void *(*swig_converter_func)(void *, int *);
typedef struct swig_type_info *(*swig_dycast_func)(void **);

/* Structure to store information on one type */
typedef struct swig_type_info {
  const char             *name;			/* mangled name of this type */
  const char             *str;			/* human readable name of this type */
  swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
  struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
  void                   *clientdata;		/* language specific type data */
  int                    owndata;		/* flag if the structure owns the clientdata */
} swig_type_info;

/* Structure to store a type and conversion function used for casting */
typedef struct swig_cast_info {
  swig_type_info         *type;			/* pointer to type that is equivalent to this type */
  swig_converter_func     converter;		/* function to cast the void pointers */
  struct swig_cast_info  *next;			/* pointer to next cast in linked list */
  struct swig_cast_info  *prev;			/* pointer to the previous cast */
} swig_cast_info;

/* Structure used to store module information
 * Each module generates one structure like this, and the runtime collects
 * all of these structures and stores them in a circularly linked list.*/
typedef struct swig_module_info {
  swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
  size_t                 size;		        /* Number of types in this module */
  struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
  swig_type_info         **type_initial;	/* Array of initially generated type structures */
  swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
  void                    *clientdata;		/* Language specific module data */
} swig_module_info;

/*
  Compare two type names skipping the space characters, therefore
  "char*" == "char *" and "Class<int>" == "Class<int >", etc.

  Return 0 when the two name types are equivalent, as in
  strncmp, but skipping ' '.
*/
SWIGRUNTIME int
SWIG_TypeNameComp(const char *f1, const char *l1,
		  const char *f2, const char *l2) {
  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
    while ((*f1 == ' ') && (f1 != l1)) ++f1;
    while ((*f2 == ' ') && (f2 != l2)) ++f2;
    if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
  }
  return (int)((l1 - f1) - (l2 - f2));
}

/*
  Check type equivalence in a name list like <name1>|<name2>|...
  Return 0 if equal, -1 if nb < tb, 1 if nb > tb
*/
SWIGRUNTIME int
SWIG_TypeCmp(const char *nb, const char *tb) {
  int equiv = 1;
  const char* te = tb + strlen(tb);
  const char* ne = nb;
  while (equiv != 0 && *ne) {
    for (nb = ne; *ne; ++ne) {
      if (*ne == '|') break;
    }
    equiv = SWIG_TypeNameComp(nb, ne, tb, te);
    if (*ne) ++ne;
  }
  return equiv;
}

/*
  Check type equivalence in a name list like <name1>|<name2>|...
  Return 0 if not equal, 1 if equal
*/
SWIGRUNTIME int
SWIG_TypeEquiv(const char *nb, const char *tb) {
  return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
}

/*
  Check the typename
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
  if (ty) {
    swig_cast_info *iter = ty->cast;
    while (iter) {
      if (strcmp(iter->type->name, c) == 0) {
        if (iter == ty->cast)
          return iter;
        /* Move iter to the top of the linked list */
        iter->prev->next = iter->next;
        if (iter->next)
          iter->next->prev = iter->prev;
        iter->next = ty->cast;
        iter->prev = 0;
        if (ty->cast) ty->cast->prev = iter;
        ty->cast = iter;
        return iter;
      }
      iter = iter->next;
    }
  }
  return 0;
}

/*
  Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
  if (ty) {
    swig_cast_info *iter = ty->cast;
    while (iter) {
      if (iter->type == from) {
        if (iter == ty->cast)
          return iter;
        /* Move iter to the top of the linked list */
        iter->prev->next = iter->next;
        if (iter->next)
          iter->next->prev = iter->prev;
        iter->next = ty->cast;
        iter->prev = 0;
        if (ty->cast) ty->cast->prev = iter;
        ty->cast = iter;
        return iter;
      }
      iter = iter->next;
    }
  }
  return 0;
}

/*
  Cast a pointer up an inheritance hierarchy
*/
SWIGRUNTIMEINLINE void *
SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
}

/*
   Dynamic pointer casting. Down an inheritance hierarchy
*/
SWIGRUNTIME swig_type_info *
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
  swig_type_info *lastty = ty;
  if (!ty || !ty->dcast) return ty;
  while (ty && (ty->dcast)) {
    ty = (*ty->dcast)(ptr);
    if (ty) lastty = ty;
  }
  return lastty;
}

/*
  Return the name associated with this type
*/
SWIGRUNTIMEINLINE const char *
SWIG_TypeName(const swig_type_info *ty) {
  return ty->name;
}

/*
  Return the pretty name associated with this type,
  that is an unmangled type name in a form presentable to the user.
*/
SWIGRUNTIME const char *
SWIG_TypePrettyName(const swig_type_info *type) {
  /* The "str" field contains the equivalent pretty names of the
     type, separated by vertical-bar characters.  We choose
     to print the last name, as it is often (?) the most
     specific. */
  if (!type) return NULL;
  if (type->str != NULL) {
    const char *last_name = type->str;
    const char *s;
    for (s = type->str; *s; s++)
      if (*s == '|') last_name = s+1;
    return last_name;
  }
  else
    return type->name;
}

/*
   Set the clientdata field for a type
*/
SWIGRUNTIME void
SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
  swig_cast_info *cast = ti->cast;
  /* if (ti->clientdata == clientdata) return; */
  ti->clientdata = clientdata;

  while (cast) {
    if (!cast->converter) {
      swig_type_info *tc = cast->type;
      if (!tc->clientdata) {
	SWIG_TypeClientData(tc, clientdata);
      }
    }
    cast = cast->next;
  }
}
SWIGRUNTIME void
SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
  SWIG_TypeClientData(ti, clientdata);
  ti->owndata = 1;
}

/*
  Search for a swig_type_info structure only by mangled name
  Search is a O(log #types)

  We start searching at module start, and finish searching when start == end.
  Note: if start == end at the beginning of the function, we go all the way around
  the circular list.
*/
SWIGRUNTIME swig_type_info *
SWIG_MangledTypeQueryModule(swig_module_info *start,
                            swig_module_info *end,
		            const char *name) {
  swig_module_info *iter = start;
  do {
    if (iter->size) {
      size_t l = 0;
      size_t r = iter->size - 1;
      do {
	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
	size_t i = (l + r) >> 1;
	const char *iname = iter->types[i]->name;
	if (iname) {
	  int compare = strcmp(name, iname);
	  if (compare == 0) {
	    return iter->types[i];
	  } else if (compare < 0) {
	    if (i) {
	      r = i - 1;
	    } else {
	      break;
	    }
	  } else if (compare > 0) {
	    l = i + 1;
	  }
	} else {
	  break; /* should never happen */
	}
      } while (l <= r);
    }
    iter = iter->next;
  } while (iter != end);
  return 0;
}

/*
  Search for a swig_type_info structure for either a mangled name or a human readable name.
  It first searches the mangled names of the types, which is a O(log #types)
  If a type is not found it then searches the human readable names, which is O(#types).

  We start searching at module start, and finish searching when start == end.
  Note: if start == end at the beginning of the function, we go all the way around
  the circular list.
*/
SWIGRUNTIME swig_type_info *
SWIG_TypeQueryModule(swig_module_info *start,
                     swig_module_info *end,
		     const char *name) {
  /* STEP 1: Search the name field using binary search */
  swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
  if (ret) {
    return ret;
  } else {
    /* STEP 2: If the type hasn't been found, do a complete search
       of the str field (the human readable name) */
    swig_module_info *iter = start;
    do {
      size_t i = 0;
      for (; i < iter->size; ++i) {
	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
	  return iter->types[i];
      }
      iter = iter->next;
    } while (iter != end);
  }

  /* neither found a match */
  return 0;
}

/*
   Pack binary data into a string
*/
SWIGRUNTIME char *
SWIG_PackData(char *c, void *ptr, size_t sz) {
  static const char hex[17] = "0123456789abcdef";
  const unsigned char *u = (unsigned char *) ptr;
  const unsigned char *eu =  u + sz;
  for (; u != eu; ++u) {
    unsigned char uu = *u;
    *(c++) = hex[(uu & 0xf0) >> 4];
    *(c++) = hex[uu & 0xf];
  }
  return c;
}

/*
   Unpack binary data from a string
*/
SWIGRUNTIME const char *
SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
  unsigned char *u = (unsigned char *) ptr;
  const unsigned char *eu = u + sz;
  for (; u != eu; ++u) {
    char d = *(c++);
    unsigned char uu;
    if ((d >= '0') && (d <= '9'))
      uu = (unsigned char)((d - '0') << 4);
    else if ((d >= 'a') && (d <= 'f'))
      uu = (unsigned char)((d - ('a'-10)) << 4);
    else
      return (char *) 0;
    d = *(c++);
    if ((d >= '0') && (d <= '9'))
      uu |= (unsigned char)(d - '0');
    else if ((d >= 'a') && (d <= 'f'))
      uu |= (unsigned char)(d - ('a'-10));
    else
      return (char *) 0;
    *u = uu;
  }
  return c;
}

/*
   Pack 'void *' into a string buffer.
*/
SWIGRUNTIME char *
SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
  char *r = buff;
  if ((2*sizeof(void *) + 2) > bsz) return 0;
  *(r++) = '_';
  r = SWIG_PackData(r,&ptr,sizeof(void *));
  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
  strcpy(r,name);
  return buff;
}

SWIGRUNTIME const char *
SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
  if (*c != '_') {
    if (strcmp(c,"NULL") == 0) {
      *ptr = (void *) 0;
      return name;
    } else {
      return 0;
    }
  }
  return SWIG_UnpackData(++c,ptr,sizeof(void *));
}

SWIGRUNTIME char *
SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
  char *r = buff;
  size_t lname = (name ? strlen(name) : 0);
  if ((2*sz + 2 + lname) > bsz) return 0;
  *(r++) = '_';
  r = SWIG_PackData(r,ptr,sz);
  if (lname) {
    strncpy(r,name,lname+1);
  } else {
    *r = 0;
  }
  return buff;
}

SWIGRUNTIME const char *
SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
  if (*c != '_') {
    if (strcmp(c,"NULL") == 0) {
      memset(ptr,0,sz);
      return name;
    } else {
      return 0;
    }
  }
  return SWIG_UnpackData(++c,ptr,sz);
}

#ifdef __cplusplus
}
#endif

/*  Errors in SWIG */
#define  SWIG_UnknownError    	   -1
#define  SWIG_IOError        	   -2
#define  SWIG_RuntimeError   	   -3
#define  SWIG_IndexError     	   -4
#define  SWIG_TypeError      	   -5
#define  SWIG_DivisionByZero 	   -6
#define  SWIG_OverflowError  	   -7
#define  SWIG_SyntaxError    	   -8
#define  SWIG_ValueError     	   -9
#define  SWIG_SystemError    	   -10
#define  SWIG_AttributeError 	   -11
#define  SWIG_MemoryError    	   -12
#define  SWIG_NullReferenceError   -13



/* -----------------------------------------------------------------------------
 * error manipulation
 * ----------------------------------------------------------------------------- */

SWIGINTERN const char*
SWIG_Tcl_ErrorType(int code) {
  const char* type = 0;
  switch(code) {
  case SWIG_MemoryError:
    type = "MemoryError";
    break;
  case SWIG_IOError:
    type = "IOError";
    break;
  case SWIG_RuntimeError:
    type = "RuntimeError";
    break;
  case SWIG_IndexError:
    type = "IndexError";
    break;
  case SWIG_TypeError:
    type = "TypeError";
    break;
  case SWIG_DivisionByZero:
    type = "ZeroDivisionError";
    break;
  case SWIG_OverflowError:
    type = "OverflowError";
    break;
  case SWIG_SyntaxError:
    type = "SyntaxError";
    break;
  case SWIG_ValueError:
    type = "ValueError";
    break;
  case SWIG_SystemError:
    type = "SystemError";
    break;
  case SWIG_AttributeError:
    type = "AttributeError";
    break;
  default:
    type = "RuntimeError";
  }
  return type;
}


SWIGINTERN void
SWIG_Tcl_SetErrorObj(Tcl_Interp *interp, const char *ctype, Tcl_Obj *obj)
{
  Tcl_ResetResult(interp);
  Tcl_SetObjResult(interp, obj);
  Tcl_SetErrorCode(interp, "SWIG", ctype, NULL);
}

SWIGINTERN void
SWIG_Tcl_SetErrorMsg(Tcl_Interp *interp, const char *ctype, const char *mesg)
{
  Tcl_ResetResult(interp);
  Tcl_SetErrorCode(interp, "SWIG", ctype, NULL);
  Tcl_AppendResult(interp, ctype, " ", mesg, NULL);
  /*
  Tcl_AddErrorInfo(interp, ctype);
  Tcl_AddErrorInfo(interp, " ");
  Tcl_AddErrorInfo(interp, mesg);
  */
}

SWIGINTERNINLINE void
SWIG_Tcl_AddErrorMsg(Tcl_Interp *interp, const char* mesg)
{
  Tcl_AddErrorInfo(interp, mesg);
}



/* -----------------------------------------------------------------------------
 * SWIG API. Portion that goes into the runtime
 * ----------------------------------------------------------------------------- */
#ifdef __cplusplus
extern "C" {
#endif

/* -----------------------------------------------------------------------------
 * Constant declarations
 * ----------------------------------------------------------------------------- */

/* Constant Types */
#define SWIG_TCL_POINTER 4
#define SWIG_TCL_BINARY  5

/* Constant information structure */
typedef struct swig_const_info {
    int type;
    char *name;
    long lvalue;
    double dvalue;
    void   *pvalue;
    swig_type_info **ptype;
} swig_const_info;

typedef int   (*swig_wrapper)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST []);
typedef int   (*swig_wrapper_func)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST []);
typedef char *(*swig_variable_func)(ClientData, Tcl_Interp *, char *, char *, int);
typedef void  (*swig_delete_func)(ClientData);

typedef struct swig_method {
  const char     *name;
  swig_wrapper   method;
} swig_method;

typedef struct swig_attribute {
  const char     *name;
  swig_wrapper   getmethod;
  swig_wrapper   setmethod;
} swig_attribute;

typedef struct swig_class {
  const char         *name;
  swig_type_info   **type;
  swig_wrapper       constructor;
  void              (*destructor)(void *);
  swig_method        *methods;
  swig_attribute     *attributes;
  struct swig_class **bases;
  const char              **base_names;
  swig_module_info   *module;
  Tcl_HashTable       hashtable;
} swig_class;

typedef struct swig_instance {
  Tcl_Obj       *thisptr;
  void          *thisvalue;
  swig_class   *classptr;
  int            destroy;
  Tcl_Command    cmdtok;
} swig_instance;

/* Structure for command table */
typedef struct {
  const char *name;
  int       (*wrapper)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST []);
  ClientData  clientdata;
} swig_command_info;

/* Structure for variable linking table */
typedef struct {
  const char *name;
  void *addr;
  char * (*get)(ClientData, Tcl_Interp *, char *, char *, int);
  char * (*set)(ClientData, Tcl_Interp *, char *, char *, int);
} swig_var_info;


/* -----------------------------------------------------------------------------*
 *  Install a constant object 
 * -----------------------------------------------------------------------------*/

static Tcl_HashTable   swigconstTable;
static int             swigconstTableinit = 0;

SWIGINTERN void
SWIG_Tcl_SetConstantObj(Tcl_Interp *interp, const char* name, Tcl_Obj *obj) {
  int newobj;
  Tcl_ObjSetVar2(interp,Tcl_NewStringObj(name,-1), NULL, obj, TCL_GLOBAL_ONLY);
  Tcl_SetHashValue(Tcl_CreateHashEntry(&swigconstTable, name, &newobj), (ClientData) obj);
}

SWIGINTERN Tcl_Obj *
SWIG_Tcl_GetConstantObj(const char *key) {
  Tcl_HashEntry *entryPtr;
  if (!swigconstTableinit) return 0;
  entryPtr = Tcl_FindHashEntry(&swigconstTable, key);
  if (entryPtr) {
    return (Tcl_Obj *) Tcl_GetHashValue(entryPtr);
  }
  return 0;
}

#ifdef __cplusplus
}
#endif



/* -----------------------------------------------------------------------------
 * tclrun.swg
 *
 * This file contains the runtime support for Tcl modules and includes
 * code for managing global variables and pointer type checking.
 * ----------------------------------------------------------------------------- */

/* Common SWIG API */

/* for raw pointers */
#define SWIG_ConvertPtr(oc, ptr, ty, flags)             SWIG_Tcl_ConvertPtr(interp, oc, ptr, ty, flags)
#define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Tcl_NewPointerObj(ptr, type, flags)

/* for raw packed data */
#define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Tcl_ConvertPacked(interp, obj, ptr, sz, ty)
#define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Tcl_NewPackedObj(ptr, sz, type)

/* for class or struct pointers */
#define SWIG_ConvertInstance(obj, pptr, type, flags)    SWIG_Tcl_ConvertPtr(interp, obj, pptr, type, flags)
#define SWIG_NewInstanceObj(thisvalue, type, flags)     SWIG_Tcl_NewInstanceObj(interp, thisvalue, type, flags)

/* for C or C++ function pointers */
#define SWIG_ConvertFunctionPtr(obj, pptr, type)        SWIG_Tcl_ConvertPtr(interp, obj, pptr, type, 0)
#define SWIG_NewFunctionPtrObj(ptr, type)               SWIG_Tcl_NewPointerObj(ptr, type, 0)

/* for C++ member pointers, ie, member methods */
#define SWIG_ConvertMember(obj, ptr, sz, ty)            SWIG_Tcl_ConvertPacked(interp,obj, ptr, sz, ty)
#define SWIG_NewMemberObj(ptr, sz, type)                SWIG_Tcl_NewPackedObj(ptr, sz, type)


/* Runtime API */

#define SWIG_GetModule(clientdata)                      SWIG_Tcl_GetModule((Tcl_Interp *) (clientdata))	     
#define SWIG_SetModule(clientdata, pointer)          	SWIG_Tcl_SetModule((Tcl_Interp *) (clientdata), pointer)


/* Error manipulation */

#define SWIG_ErrorType(code)                            SWIG_Tcl_ErrorType(code)                                      
#define SWIG_Error(code, msg)            		SWIG_Tcl_SetErrorMsg(interp, SWIG_Tcl_ErrorType(code), msg)
#define SWIG_fail                        		goto fail						    


/* Tcl-specific SWIG API */

#define SWIG_Acquire(ptr)                               SWIG_Tcl_Acquire(ptr)                                     
#define SWIG_MethodCommand                           	SWIG_Tcl_MethodCommand				       
#define SWIG_Disown(ptr)                             	SWIG_Tcl_Disown(ptr)				       
#define SWIG_ConvertPtrFromString(c, ptr, ty, flags) 	SWIG_Tcl_ConvertPtrFromString(interp, c, ptr, ty, flags)  
#define SWIG_MakePtr(c, ptr, ty, flags)              	SWIG_Tcl_MakePtr(c, ptr, ty, flags)		       
#define SWIG_PointerTypeFromString(c)                	SWIG_Tcl_PointerTypeFromString(c)			       
#define SWIG_GetArgs                                 	SWIG_Tcl_GetArgs					       
#define SWIG_GetConstantObj(key)                     	SWIG_Tcl_GetConstantObj(key)			       
#define SWIG_ObjectConstructor                       	SWIG_Tcl_ObjectConstructor				       
#define SWIG_Thisown(ptr)                            	SWIG_Tcl_Thisown(ptr)				       
#define SWIG_ObjectDelete                            	SWIG_Tcl_ObjectDelete				       


#define SWIG_TCL_DECL_ARGS_2(arg1, arg2)                (Tcl_Interp *interp SWIGUNUSED, arg1, arg2)
#define SWIG_TCL_CALL_ARGS_2(arg1, arg2)                (interp, arg1, arg2)
/* -----------------------------------------------------------------------------
 * pointers/data manipulation
 * ----------------------------------------------------------------------------- */

/* For backward compatibility only */
#define SWIG_POINTER_EXCEPTION  0
#define SWIG_GetConstant        SWIG_GetConstantObj
#define SWIG_Tcl_GetConstant    SWIG_Tcl_GetConstantObj

#if TCL_MAJOR_VERSION >= 8 && TCL_MINOR_VERSION >= 5
#define SWIG_TCL_HASHTABLE_INIT {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
#else
#define SWIG_TCL_HASHTABLE_INIT {0}
#endif

#include "assert.h"

#ifdef __cplusplus
extern "C" {
#endif

/* Object support */

SWIGRUNTIME Tcl_HashTable*
SWIG_Tcl_ObjectTable(void) {
  static Tcl_HashTable  swigobjectTable;
  static int            swigobjectTableinit = 0;
  if (!swigobjectTableinit) {
    Tcl_InitHashTable(&swigobjectTable, TCL_ONE_WORD_KEYS);
    swigobjectTableinit = 1;
  }
  return &swigobjectTable;
}

/* Acquire ownership of a pointer */
SWIGRUNTIME void
SWIG_Tcl_Acquire(void *ptr) {
  int newobj;
  Tcl_CreateHashEntry(SWIG_Tcl_ObjectTable(), (char *) ptr, &newobj);
}

SWIGRUNTIME int
SWIG_Tcl_Thisown(void *ptr) {
  if (Tcl_FindHashEntry(SWIG_Tcl_ObjectTable(), (char *) ptr)) {
    return 1;
  }
  return 0;
}

/* Disown a pointer.  Returns 1 if we owned it to begin with */
SWIGRUNTIME int
SWIG_Tcl_Disown(void *ptr) {
  Tcl_HashEntry *entryPtr = Tcl_FindHashEntry(SWIG_Tcl_ObjectTable(), (char *) ptr);
  if (entryPtr) {
    Tcl_DeleteHashEntry(entryPtr);
    return 1;
  }
  return 0;
}

/* Convert a pointer value */
SWIGRUNTIME int
SWIG_Tcl_ConvertPtrFromString(Tcl_Interp *interp, const char *c, void **ptr, swig_type_info *ty, int flags) {
  swig_cast_info *tc;
  /* Pointer values must start with leading underscore */
  while (*c != '_') {
    *ptr = (void *) 0;
    if (strcmp(c,"NULL") == 0) return SWIG_OK;

    /* Empty string: not a pointer */
    if (*c == 0) return SWIG_ERROR; 

    /* Hmmm. It could be an object name. */

    /* Check if this is a command at all. Prevents <c> cget -this         */
    /* from being called when c is not a command, firing the unknown proc */
    if (Tcl_VarEval(interp,"info commands ", c, (char *) NULL) == TCL_OK) {
      Tcl_Obj *result = Tcl_GetObjResult(interp);
      if (*(Tcl_GetStringFromObj(result, NULL)) == 0) {
        /* It's not a command, so it can't be a pointer */
        Tcl_ResetResult(interp);
        return SWIG_ERROR;
      }
    } else {
      /* This will only fail if the argument is multiple words. */
      /* Multiple words are also not commands.                  */
      Tcl_ResetResult(interp);
      return SWIG_ERROR;
    }

    /* Check if this is really a SWIG pointer */
    if (Tcl_VarEval(interp,c," cget -this", (char *) NULL) != TCL_OK) {
      Tcl_ResetResult(interp);
      return SWIG_ERROR;
    }

    c = Tcl_GetStringFromObj(Tcl_GetObjResult(interp), NULL);
  }

  c++;
  c = SWIG_UnpackData(c,ptr,sizeof(void *));
  if (ty) {
    tc = c ? SWIG_TypeCheck(c,ty) : 0;
    if (!tc) {
      return SWIG_ERROR;
    }
    if (flags & SWIG_POINTER_DISOWN) {
      SWIG_Disown((void *) *ptr);
    }
    {
      int newmemory = 0;
      *ptr = SWIG_TypeCast(tc,(void *) *ptr,&newmemory);
      assert(!newmemory); /* newmemory handling not yet implemented */
    }
  }
  return SWIG_OK;
}

/* Convert a pointer value */
SWIGRUNTIMEINLINE int
SWIG_Tcl_ConvertPtr(Tcl_Interp *interp, Tcl_Obj *oc, void **ptr, swig_type_info *ty, int flags) {
  return SWIG_Tcl_ConvertPtrFromString(interp, Tcl_GetStringFromObj(oc,NULL), ptr, ty, flags);
}

/* Convert a pointer value */
SWIGRUNTIME char *
SWIG_Tcl_PointerTypeFromString(char *c) {
  char d;
  /* Pointer values must start with leading underscore. NULL has no type */
  if (*c != '_') {
    return 0;
  }
  c++;
  /* Extract hex value from pointer */
  while ((d = *c)) {
    if (!(((d >= '0') && (d <= '9')) || ((d >= 'a') && (d <= 'f')))) break;
    c++;
  }
  return c;
}

/* Convert a packed value value */
SWIGRUNTIME int
SWIG_Tcl_ConvertPacked(Tcl_Interp *SWIGUNUSEDPARM(interp) , Tcl_Obj *obj, void *ptr, int sz, swig_type_info *ty) {
  swig_cast_info *tc;
  const char  *c;

  if (!obj) goto type_error;
  c = Tcl_GetStringFromObj(obj,NULL);
  /* Pointer values must start with leading underscore */
  if (*c != '_') goto type_error;
  c++;
  c = SWIG_UnpackData(c,ptr,sz);
  if (ty) {
    tc = SWIG_TypeCheck(c,ty);
    if (!tc) goto type_error;
  }
  return SWIG_OK;

 type_error:

  return SWIG_ERROR;
}


/* Take a pointer and convert it to a string */
SWIGRUNTIME void
SWIG_Tcl_MakePtr(char *c, void *ptr, swig_type_info *ty, int SWIGUNUSEDPARM(flags)) {
  if (ptr) {
    *(c++) = '_';
    c = SWIG_PackData(c,&ptr,sizeof(void *));
    strcpy(c,ty->name);
  } else {
    strcpy(c,"NULL");
  }
}

/* Create a new pointer object */
SWIGRUNTIMEINLINE Tcl_Obj *
SWIG_Tcl_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
  Tcl_Obj *robj;
  char result[SWIG_BUFFER_SIZE];
  SWIG_MakePtr(result,ptr,type,flags);
  robj = Tcl_NewStringObj(result,-1);
  return robj;
}

SWIGRUNTIME Tcl_Obj *
SWIG_Tcl_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
  char result[1024];
  char *r = result;
  if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
  *(r++) = '_';
  r = SWIG_PackData(r,ptr,sz);
  strcpy(r,type->name);
  return Tcl_NewStringObj(result,-1);
}

/* -----------------------------------------------------------------------------*
 *  Get type list 
 * -----------------------------------------------------------------------------*/

SWIGRUNTIME swig_module_info * 
SWIG_Tcl_GetModule(Tcl_Interp *interp) {
  const char *data;
  swig_module_info *ret = 0;
  
  /* first check if pointer already created */
  data = Tcl_GetVar(interp, (char *)"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TCL_GLOBAL_ONLY);
  if (data) {
    SWIG_UnpackData(data, &ret, sizeof(swig_type_info **));
  }

  return ret;
}

SWIGRUNTIME void
SWIG_Tcl_SetModule(Tcl_Interp *interp, swig_module_info *module) {
  char buf[SWIG_BUFFER_SIZE];
  char *data;

  /* create a new pointer */
  data = SWIG_PackData(buf, &module, sizeof(swig_type_info **));
  *data = 0;
  Tcl_SetVar(interp, (char *)"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, buf, TCL_GLOBAL_ONLY);
}

/* -----------------------------------------------------------------------------*
 *  Object auxiliaries
 * -----------------------------------------------------------------------------*/


SWIGRUNTIME void
SWIG_Tcl_ObjectDelete(ClientData clientData) {
  swig_instance *si = (swig_instance *) clientData;
  if (!si) return;
  if (si->destroy && SWIG_Disown(si->thisvalue)) {
    if (si->classptr->destructor) {
      (si->classptr->destructor)(si->thisvalue);
    }
  }
  Tcl_DecrRefCount(si->thisptr);
  free(si);
}

/* Function to invoke object methods given an instance */
SWIGRUNTIME int
SWIG_Tcl_MethodCommand(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST _objv[]) {
  char *method,   *attrname;
  swig_instance   *inst = (swig_instance *) clientData;
  swig_method     *meth;
  swig_attribute  *attr;
  Tcl_Obj         *oldarg;
  Tcl_Obj         **objv;
  int              rcode;
  swig_class      *cls;
  swig_class      *cls_stack[64];
  int              cls_stack_bi[64];
  int              cls_stack_top = 0;
  int              numconf = 2;
  int              bi;

  objv = (Tcl_Obj **) _objv;
  if (objc < 2) {
    Tcl_SetResult(interp, (char *) "wrong # args.", TCL_STATIC);
    return TCL_ERROR;
  }
  method = Tcl_GetStringFromObj(objv[1],NULL);
  if (strcmp(method,"-acquire") == 0) {
    inst->destroy = 1;
    SWIG_Acquire(inst->thisvalue);
    return TCL_OK;
  }
  if (strcmp(method,"-disown") == 0) {
    if (inst->destroy) {
      SWIG_Disown(inst->thisvalue);
    }
    inst->destroy = 0;
    return TCL_OK;
  }
  if (strcmp(method,"-delete") == 0) {
    Tcl_DeleteCommandFromToken(interp,inst->cmdtok);
    return TCL_OK;
  }
  cls_stack[cls_stack_top] = inst->classptr;
  cls_stack_bi[cls_stack_top] = -1;
  while (1) {
    Tcl_HashEntry* hashentry;
    bi = cls_stack_bi[cls_stack_top];
    cls = cls_stack[cls_stack_top];
    if (bi != -1) {
      if (!cls->bases[bi] && cls->base_names[bi]) {
        /* lookup and cache the base class */
	swig_type_info *info = SWIG_TypeQueryModule(cls->module, cls->module, cls->base_names[bi]);
	if (info) cls->bases[bi] = (swig_class *) info->clientdata;
      }
      cls = cls->bases[bi];
      if (cls) {
        cls_stack_bi[cls_stack_top]++;
        cls_stack_top++;
        cls_stack[cls_stack_top] = cls;
        cls_stack_bi[cls_stack_top] = -1;
        continue;
      }
    }
    if (!cls) {
      cls_stack_top--;
      if (cls_stack_top < 0) break;
      else continue;
    }
    cls_stack_bi[cls_stack_top]++;

    hashentry = Tcl_FindHashEntry(&(cls->hashtable), method);
    if (hashentry) {
        ClientData cd = Tcl_GetHashValue(hashentry);
        swig_wrapper method_wrapper = (swig_wrapper)cd;
        oldarg = objv[1];
        objv[1] = inst->thisptr;
        Tcl_IncrRefCount(inst->thisptr);
        rcode = (method_wrapper)(clientData,interp,objc,objv);
        objv[1] = oldarg;
        Tcl_DecrRefCount(inst->thisptr);
        return rcode;
    }
    /* Check class methods for a match */
    if (strcmp(method,"cget") == 0) {
      if (objc < 3) {
        Tcl_SetResult(interp, (char *) "wrong # args.", TCL_STATIC);
        return TCL_ERROR;
      }
      attrname = Tcl_GetStringFromObj(objv[2],NULL);
      attr = cls->attributes;
      while (attr && attr->name) {
        if ((strcmp(attr->name, attrname) == 0) && (attr->getmethod)) {
          oldarg = objv[1];
          objv[1] = inst->thisptr;
          Tcl_IncrRefCount(inst->thisptr);
          rcode = (*attr->getmethod)(clientData,interp,2, objv);
          objv[1] = oldarg;
          Tcl_DecrRefCount(inst->thisptr);
          return rcode;
        }
        attr++;
      }
      if (strcmp(attrname, "-this") == 0) {
        Tcl_SetObjResult(interp, Tcl_DuplicateObj(inst->thisptr));
        return TCL_OK;
      }
      if (strcmp(attrname, "-thisown") == 0) {
        if (SWIG_Thisown(inst->thisvalue)) {
          Tcl_SetResult(interp,(char*)"1",TCL_STATIC);
        } else {
          Tcl_SetResult(interp,(char*)"0",TCL_STATIC);
        }
        return TCL_OK;
      }
    } else if (strcmp(method, "configure") == 0) {
      int i;
      if (objc < 4) {
        Tcl_SetResult(interp, (char *) "wrong # args.", TCL_STATIC);
        return TCL_ERROR;
      }
      i = 2;
      while (i < objc) {
        attrname = Tcl_GetStringFromObj(objv[i],NULL);
        attr = cls->attributes;
        while (attr && attr->name) {
          if ((strcmp(attr->name, attrname) == 0) && (attr->setmethod)) {
            oldarg = objv[i];
            objv[i] = inst->thisptr;
            Tcl_IncrRefCount(inst->thisptr);
            rcode = (*attr->setmethod)(clientData,interp,3, &objv[i-1]);
            objv[i] = oldarg;
            Tcl_DecrRefCount(inst->thisptr);
            if (rcode != TCL_OK) return rcode;
            numconf += 2;
          }
          attr++;
        }
        i+=2;
      }
    }
  }
  if (strcmp(method,"configure") == 0) {
    if (numconf >= objc) {
      return TCL_OK;
    } else {
      Tcl_SetResult(interp,(char *) "Invalid attribute name.", TCL_STATIC);
      return TCL_ERROR;
    }
  }
  if (strcmp(method,"cget") == 0) {
    Tcl_SetResult(interp,(char *) "Invalid attribute name.", TCL_STATIC);
    return TCL_ERROR;
  }
  Tcl_SetResult(interp, (char *) "Invalid method. Must be one of: configure cget -acquire -disown -delete", TCL_STATIC);
  cls = inst->classptr;
  bi = 0;
  while (cls) {
    meth = cls->methods;
    while (meth && meth->name) {
      char *cr = (char *) Tcl_GetStringResult(interp);
      size_t meth_len = strlen(meth->name);
      char* where = strchr(cr,':');
      while(where) {
        where = strstr(where, meth->name);
        if(where) {
          if(where[-1] == ' ' && (where[meth_len] == ' ' || where[meth_len]==0)) {
            break;
          } else {
            where++;
          }
        }
      }

      if (!where)
        Tcl_AppendElement(interp, (char *) meth->name);
      meth++;
    }
    cls = inst->classptr->bases[bi++];
  }
  return TCL_ERROR;
}

/* This function takes the current result and turns it into an object command */
SWIGRUNTIME Tcl_Obj *
SWIG_Tcl_NewInstanceObj(Tcl_Interp *interp, void *thisvalue, swig_type_info *type, int flags) {
  Tcl_Obj *robj = SWIG_NewPointerObj(thisvalue, type,0);
  /* Check to see if this pointer belongs to a class or not */
  if (thisvalue && (type->clientdata) && (interp)) {
    Tcl_CmdInfo    ci;
    char          *name;
    name = Tcl_GetStringFromObj(robj,NULL);
    if (!Tcl_GetCommandInfo(interp,name, &ci) || (flags)) {
      swig_instance *newinst = (swig_instance *) malloc(sizeof(swig_instance));
      newinst->thisptr = Tcl_DuplicateObj(robj);
      Tcl_IncrRefCount(newinst->thisptr);
      newinst->thisvalue = thisvalue;
      newinst->classptr = (swig_class *) type->clientdata;
      newinst->destroy = flags;
      newinst->cmdtok = Tcl_CreateObjCommand(interp, Tcl_GetStringFromObj(robj,NULL), (swig_wrapper_func) SWIG_MethodCommand, (ClientData) newinst, (swig_delete_func) SWIG_ObjectDelete);
      if (flags) {
        SWIG_Acquire(thisvalue);
      }
    }
  }
  return robj;
}

/* Function to create objects */
SWIGRUNTIME int
SWIG_Tcl_ObjectConstructor(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  Tcl_Obj          *newObj = 0;
  void             *thisvalue = 0;
  swig_instance   *newinst = 0;
  swig_class      *classptr = (swig_class *) clientData;
  swig_wrapper     cons = 0;
  char             *name = 0;
  int               firstarg = 0;
  int               thisarg = 0;
  int               destroy = 1;

  if (!classptr) {
    Tcl_SetResult(interp, (char *) "swig: internal runtime error. No class object defined.", TCL_STATIC);
    return TCL_ERROR;
  }
  cons = classptr->constructor;
  if (objc > 1) {
    char *s = Tcl_GetStringFromObj(objv[1],NULL);
    if (strcmp(s,"-this") == 0) {
      thisarg = 2;
      cons = 0;
    } else if (strcmp(s,"-args") == 0) {
      firstarg = 1;
    } else if (objc == 2) {
      firstarg = 1;
      name = s;
    } else if (objc >= 3) {
      char *s1;
      name = s;
      s1 = Tcl_GetStringFromObj(objv[2],NULL);
      if (strcmp(s1,"-this") == 0) {
	thisarg = 3;
	cons = 0;
      } else {
	firstarg = 1;
      }
    }
  }
  if (cons) {
    int result;
    result = (*cons)(0, interp, objc-firstarg, &objv[firstarg]);
    if (result != TCL_OK) {
      return result;
    }
    newObj = Tcl_DuplicateObj(Tcl_GetObjResult(interp));
    if (!name) name = Tcl_GetStringFromObj(newObj,NULL);
  } else if (thisarg > 0) {
    if (thisarg < objc) {
      destroy = 0;
      newObj = Tcl_DuplicateObj(objv[thisarg]);
      if (!name) name = Tcl_GetStringFromObj(newObj,NULL);
    } else {
      Tcl_SetResult(interp, (char *) "wrong # args.", TCL_STATIC);
      return TCL_ERROR;
    }
  } else {
    Tcl_SetResult(interp, (char *) "No constructor available.", TCL_STATIC);
    return TCL_ERROR;
  }
  if (SWIG_Tcl_ConvertPtr(interp,newObj, (void **) &thisvalue, *(classptr->type), 0) != SWIG_OK) {
    Tcl_DecrRefCount(newObj);
    return TCL_ERROR;
  }
  newinst = (swig_instance *) malloc(sizeof(swig_instance));
  newinst->thisptr = newObj;
  Tcl_IncrRefCount(newObj);
  newinst->thisvalue = thisvalue;
  newinst->classptr = classptr;
  newinst->destroy = destroy;
  if (destroy) {
    SWIG_Acquire(thisvalue);
  }
  newinst->cmdtok = Tcl_CreateObjCommand(interp,name, (swig_wrapper) SWIG_MethodCommand, (ClientData) newinst, (swig_delete_func) SWIG_ObjectDelete);
  return TCL_OK;
}

/* -----------------------------------------------------------------------------*
 *   Get arguments 
 * -----------------------------------------------------------------------------*/
SWIGRUNTIME int
SWIG_Tcl_GetArgs(Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[], const char *fmt, ...) {
  int        argno = 0, opt = 0;
  long       tempi;
  double     tempd;
  const char *c;
  va_list    ap;
  void      *vptr;
  Tcl_Obj   *obj = 0;
  swig_type_info *ty;

  va_start(ap,fmt);
  for (c = fmt; (*c && (*c != ':') && (*c != ';')); c++,argno++) {
    if (*c == '|') {
      opt = 1;
      c++;
    }
    if (argno >= (objc-1)) {
      if (!opt) {
        Tcl_SetResult(interp, (char *) "Wrong number of arguments ", TCL_STATIC);
        goto argerror;
      } else {
        va_end(ap);
        return TCL_OK;
      }
    }

    vptr = va_arg(ap,void *);
    if (vptr) {
      if (isupper(*c)) {
        obj = SWIG_Tcl_GetConstantObj(Tcl_GetStringFromObj(objv[argno+1],0));
        if (!obj) obj = objv[argno+1];
      } else {
        obj = objv[argno+1];
      }
      switch(*c) {
      case 'i': case 'I':
      case 'l': case 'L':
      case 'h': case 'H':
      case 'b': case 'B':
        if (Tcl_GetLongFromObj(interp,obj,&tempi) != TCL_OK) goto argerror;
        if ((*c == 'i') || (*c == 'I')) *((int *)vptr) = (int)tempi;
        else if ((*c == 'l') || (*c == 'L')) *((long *)vptr) = (long)tempi;
        else if ((*c == 'h') || (*c == 'H')) *((short*)vptr) = (short)tempi;
        else if ((*c == 'b') || (*c == 'B')) *((unsigned char *)vptr) = (unsigned char)tempi;
        break;
      case 'f': case 'F':
      case 'd': case 'D':
        if (Tcl_GetDoubleFromObj(interp,obj,&tempd) != TCL_OK) goto argerror;
        if ((*c == 'f') || (*c == 'F')) *((float *) vptr) = (float)tempd;
        else if ((*c == 'd') || (*c == 'D')) *((double*) vptr) = tempd;
        break;
      case 's': case 'S':
        if (*(c+1) == '#') {
          int *vlptr = (int *) va_arg(ap, void *);
          *((char **) vptr) = Tcl_GetStringFromObj(obj, vlptr);
          c++;
        } else {
          *((char **)vptr) = Tcl_GetStringFromObj(obj,NULL);
        }
        break;
      case 'c': case 'C':
        *((char *)vptr) = *(Tcl_GetStringFromObj(obj,NULL));
        break;
      case 'p': case 'P':
        ty = (swig_type_info *) va_arg(ap, void *);
        if (SWIG_Tcl_ConvertPtr(interp, obj, (void **) vptr, ty, 0) != SWIG_OK) goto argerror;
        break;
      case 'o': case 'O':
        *((Tcl_Obj **)vptr) = objv[argno+1];
        break;
      default:
        break;
      }
    }
  }

  if ((*c != ';') && ((objc-1) > argno)) {
    Tcl_SetResult(interp, (char *) "Wrong # args.", TCL_STATIC);
    goto argerror;
  }
  va_end(ap);
  return TCL_OK;

 argerror:
  {
    char temp[32];
    sprintf(temp,"%d", argno+1);
    c = strchr(fmt,':');
    if (!c) c = strchr(fmt,';');
    if (!c) c = (char *)"";
    Tcl_AppendResult(interp,c," argument ", temp, NULL);
    va_end(ap);
    return TCL_ERROR;
  }
}

#ifdef __cplusplus
}
#endif



#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) 

#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else 



/* -------- TYPES TABLE (BEGIN) -------- */

#define SWIGTYPE_p_Blur_s swig_types[0]
#define SWIGTYPE_p_FILE swig_types[1]
#define SWIGTYPE_p_FilterMatrix_s swig_types[2]
#define SWIGTYPE_p_GradientInterpolationMode swig_types[3]
#define SWIGTYPE_p_GradientSpreadMode swig_types[4]
#define SWIGTYPE_p_SWFCXform swig_types[5]
#define SWIGTYPE_p_SWFColor swig_types[6]
#define SWIGTYPE_p_SWFDBLBitmap swig_types[7]
#define SWIGTYPE_p_SWFFillStyle swig_types[8]
#define SWIGTYPE_p_SWFFilterFmt swig_types[9]
#define SWIGTYPE_p_SWFInput swig_types[10]
#define SWIGTYPE_p_SWFJpegBitmap swig_types[11]
#define SWIGTYPE_p_SWFJpegWithAlpha swig_types[12]
#define SWIGTYPE_p_SWFLineStyle swig_types[13]
#define SWIGTYPE_p_SWFPosition swig_types[14]
#define SWIGTYPE_p_SWFSoundInstance swig_types[15]
#define SWIGTYPE_p_SWFSprite swig_types[16]
#define SWIGTYPE_p_SWFTextFieldAlignment swig_types[17]
#define SWIGTYPE_p_Shadow_s swig_types[18]
#define SWIGTYPE_p_char swig_types[19]
#define SWIGTYPE_p_double swig_types[20]
#define SWIGTYPE_p_f_unsigned_char_p_void__void swig_types[21]
#define SWIGTYPE_p_float swig_types[22]
#define SWIGTYPE_p_floatArray swig_types[23]
#define SWIGTYPE_p_int swig_types[24]
#define SWIGTYPE_p_unsigned_char swig_types[25]
#define SWIGTYPE_p_unsigned_short swig_types[26]
#define SWIGTYPE_p_void swig_types[27]
static swig_type_info *swig_types[29];
static swig_module_info swig_module = {swig_types, 28, 0, 0, 0, 0};
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)

/* -------- TYPES TABLE (END) -------- */

#define SWIG_init    Mingc_Init
#define SWIG_name    "mingc"
#define SWIG_prefix  ""
#define SWIG_version "0.0"

#define SWIGVERSION 0x030012 
#define SWIG_VERSION SWIGVERSION


#define SWIG_as_voidptr(a) (void *)((const void *)(a)) 
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) 



#ifdef __cplusplus
extern "C" {
#endif
#ifdef MAC_TCL
#pragma export on
#endif
SWIGEXPORT int SWIG_init(Tcl_Interp *);
#ifdef MAC_TCL
#pragma export off
#endif
#ifdef __cplusplus
}
#endif

/* Compatibility version for TCL stubs */
#ifndef SWIG_TCL_STUBS_VERSION
#define SWIG_TCL_STUBS_VERSION "8.1"
#endif



  #include "ming.h"

  void error( char *msg ) {};



  static int *new_intp() { 
    return (int *)calloc(1,sizeof(int));
  }
  
  static int *copy_intp(int value) { 
    return (int *)memcpy((int *)calloc(1,sizeof(int)),&value,sizeof(int));
  }

  static void delete_intp(int *obj) { 
    if (obj) free((char*)obj);
  }

  static void intp_assign(int *obj, int value) {
    *obj = value;
  }

  static int intp_value(int *obj) {
    return *obj;
  }


#include <limits.h>
#if !defined(SWIG_NO_LLONG_MAX)
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
#   define LLONG_MAX __LONG_LONG_MAX__
#   define LLONG_MIN (-LLONG_MAX - 1LL)
#   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
# endif
#endif


SWIGINTERN int
SWIG_AsVal_long SWIG_TCL_DECL_ARGS_2(Tcl_Obj *obj, long* val)
{
  long v;
  if (Tcl_GetLongFromObj(0,obj, &v) == TCL_OK) {
    if (val) *val = (long) v;
    return SWIG_OK;
  }
  return SWIG_TypeError;
}


SWIGINTERN int
SWIG_AsVal_int SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj, int *val)
{
  long v;
  int res = SWIG_AsVal_long SWIG_TCL_CALL_ARGS_2(obj, &v);
  if (SWIG_IsOK(res)) {
    if ((v < INT_MIN || v > INT_MAX)) {
      return SWIG_OverflowError;
    } else {
      if (val) *val = (int)(v);
    }
  }  
  return res;
}


SWIGINTERNINLINE Tcl_Obj* 
SWIG_From_long  (long value)
{
  if (((long) INT_MIN <= value) && (value <= (long) INT_MAX)) {
    return Tcl_NewIntObj((int)(value));
  } else {
    return Tcl_NewLongObj(value);
  }
}


SWIGINTERNINLINE Tcl_Obj *
SWIG_From_int  (int value)
{    
  return SWIG_From_long  (value);
}


  static float *new_floatp() { 
    return (float *)calloc(1,sizeof(float));
  }
  
  static float *copy_floatp(float value) { 
    return (float *)memcpy((float *)calloc(1,sizeof(float)),&value,sizeof(float));
  }

  static void delete_floatp(float *obj) { 
    if (obj) free((char*)obj);
  }

  static void floatp_assign(float *obj, float value) {
    *obj = value;
  }

  static float floatp_value(float *obj) {
    return *obj;
  }


#include <float.h>


#include <math.h>


/* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */
#ifndef SWIG_isfinite
/* isfinite() is a macro for C99 */
# if defined(isfinite)
#  define SWIG_isfinite(X) (isfinite(X))
# elif defined __cplusplus && __cplusplus >= 201103L
/* Use a template so that this works whether isfinite() is std::isfinite() or
 * in the global namespace.  The reality seems to vary between compiler
 * versions.
 *
 * Make sure namespace std exists to avoid compiler warnings.
 *
 * extern "C++" is required as this fragment can end up inside an extern "C" { } block
 */
namespace std { }
extern "C++" template<typename T>
inline int SWIG_isfinite_func(T x) {
  using namespace std;
  return isfinite(x);
}
#  define SWIG_isfinite(X) (SWIG_isfinite_func(X))
# elif defined(_MSC_VER)
#  define SWIG_isfinite(X) (_finite(X))
# elif defined(__sun) && defined(__SVR4)
#  include <ieeefp.h>
#  define SWIG_isfinite(X) (finite(X))
# endif
#endif


/* Accept infinite as a valid float value unless we are unable to check if a value is finite */
#ifdef SWIG_isfinite
# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X))
#else
# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX))
#endif


SWIGINTERN int
SWIG_AsVal_double SWIG_TCL_DECL_ARGS_2(Tcl_Obj *obj, double *val)
{
  double v;
  if (Tcl_GetDoubleFromObj(0, obj, &v) == TCL_OK) {
    if (val) *val = v;
    return SWIG_OK;
  }
  return SWIG_TypeError;
}


SWIGINTERN int
SWIG_AsVal_float SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj, float *val)
{
  double v;
  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(obj, &v);
  if (SWIG_IsOK(res)) {
    if (SWIG_Float_Overflow_Check(v)) {
      return SWIG_OverflowError;
    } else {
      if (val) *val = (float)(v);
    }
  }  
  return res;
}


  #define SWIG_From_double   Tcl_NewDoubleObj 


SWIGINTERNINLINE Tcl_Obj *
SWIG_From_float  (float value)
{    
  return SWIG_From_double  (value);
}


typedef float floatArray;


SWIGINTERN int
SWIG_AsVal_unsigned_SS_long SWIG_TCL_DECL_ARGS_2(Tcl_Obj *obj, unsigned long *val) {
  long v;
  if (Tcl_GetLongFromObj(0,obj, &v) == TCL_OK) {
    if (v >= 0) {
      if (val) *val = (unsigned long) v;
      return SWIG_OK;
    }
    /* If v is negative, then this could be a negative number, or an
       unsigned value which doesn't fit in a signed long, so try to
       get it as a string so we can distinguish these cases. */
  }
  {
    int len = 0;
    const char *nptr = Tcl_GetStringFromObj(obj, &len);
    if (nptr && len > 0) {
      char *endptr;
      unsigned long v;
      if (*nptr == '-') return SWIG_OverflowError;
      errno = 0;
      v = strtoul(nptr, &endptr,0);
      if (nptr[0] == '\0' || *endptr != '\0')
	return SWIG_TypeError;
      if (v == ULONG_MAX && errno == ERANGE) {
	errno = 0;
	return SWIG_OverflowError;
      } else {
	if (*endptr == '\0') {
	  if (val) *val = v;
	  return SWIG_OK;
	}
      }
    }
  }
  
  return SWIG_TypeError;
}


#if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
#  define SWIG_LONG_LONG_AVAILABLE
#endif


#include <stdlib.h>
#ifdef _MSC_VER
# ifndef strtoull
#  define strtoull _strtoui64
# endif
# ifndef strtoll
#  define strtoll _strtoi64
# endif
#endif


#ifdef SWIG_LONG_LONG_AVAILABLE
SWIGINTERN int
SWIG_AsVal_unsigned_SS_long_SS_long SWIG_TCL_DECL_ARGS_2(Tcl_Obj *obj, unsigned long long *val)
{
  long v;
  if (Tcl_GetLongFromObj(0,obj, &v) == TCL_OK) {
    if (val) *val = (unsigned long) v;
    return SWIG_OK;
  } else {
    int len = 0;
    const char *nptr = Tcl_GetStringFromObj(obj, &len);
    if (nptr && len > 0) {
      char *endptr;
      unsigned long long v;
      if (*nptr == '-') return SWIG_OverflowError;
      errno = 0;
      v = strtoull(nptr, &endptr,0);
      if (nptr[0] == '\0' || *endptr != '\0')
	return SWIG_TypeError;
      if (v == ULLONG_MAX && errno == ERANGE) {
	errno = 0;
	return SWIG_OverflowError;
      } else {
	if (*endptr == '\0') {
	  if (val) *val = v;
	  return SWIG_OK;
	}
      }
    }
  }
  return SWIG_TypeError;
}
#endif


SWIGINTERNINLINE int
SWIG_AsVal_size_t SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj, size_t *val)
{
  int res = SWIG_TypeError;
#ifdef SWIG_LONG_LONG_AVAILABLE
  if (sizeof(size_t) <= sizeof(unsigned long)) {
#endif
    unsigned long v;
    res = SWIG_AsVal_unsigned_SS_long SWIG_TCL_CALL_ARGS_2(obj, val ? &v : 0);
    if (SWIG_IsOK(res) && val) *val = (size_t)(v);
#ifdef SWIG_LONG_LONG_AVAILABLE
  } else if (sizeof(size_t) <= sizeof(unsigned long long)) {
    unsigned long long v;
    res = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_TCL_CALL_ARGS_2(obj, val ? &v : 0);
    if (SWIG_IsOK(res) && val) *val = (size_t)(v);
  }
#endif
  return res;
}

SWIGINTERN floatArray *new_floatArray(size_t nelements){
    return (float *)calloc(nelements, sizeof(float));
  }
SWIGINTERN void delete_floatArray(floatArray *self){
    free((char*)self);
  }
SWIGINTERN float floatArray_getitem(floatArray *self,size_t index){
    return self[index];
  }
SWIGINTERN void floatArray_setitem(floatArray *self,size_t index,float value){
    self[index] = value;
  }
SWIGINTERN float *floatArray_cast(floatArray *self){
    return self;
  }
SWIGINTERN floatArray *floatArray_frompointer(float *t){
    return (floatArray *)(t);
  }

SWIGINTERN int
SWIG_AsVal_unsigned_SS_char SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj, unsigned char *val)
{
  unsigned long v;
  int res = SWIG_AsVal_unsigned_SS_long SWIG_TCL_CALL_ARGS_2(obj, &v);
  if (SWIG_IsOK(res)) {
    if ((v > UCHAR_MAX)) {
      return SWIG_OverflowError;
    } else {
      if (val) *val = (unsigned char)(v);
    }
  }  
  return res;
}


SWIGINTERN int
SWIG_AsVal_unsigned_SS_short SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj, unsigned short *val)
{
  unsigned long v;
  int res = SWIG_AsVal_unsigned_SS_long SWIG_TCL_CALL_ARGS_2(obj, &v);
  if (SWIG_IsOK(res)) {
    if ((v > USHRT_MAX)) {
      return SWIG_OverflowError;
    } else {
      if (val) *val = (unsigned short)(v);
    }
  }  
  return res;
}


SWIGINTERN int
SWIG_AsCharPtrAndSize(Tcl_Obj *obj, char** cptr, size_t* psize, int *alloc)
{ 
  int len = 0;
  char *cstr = Tcl_GetStringFromObj(obj, &len);
  if (cstr) {
    if (cptr)  *cptr = cstr;
    if (psize) *psize = len + 1;
    if (alloc) *alloc = SWIG_OLDOBJ;
    return SWIG_OK;
  }
  return SWIG_TypeError;
}





SWIGINTERNINLINE Tcl_Obj *
SWIG_FromCharPtrAndSize(const char* carray, size_t size)
{
  return (size < INT_MAX) ? Tcl_NewStringObj(carray, (int)(size)) : NULL;
}


SWIGINTERNINLINE Tcl_Obj * 
SWIG_FromCharPtr(const char *cptr)
{ 
  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
}


#include <stdio.h>
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
# ifndef snprintf
#  define snprintf _snprintf
# endif
#endif


SWIGINTERNINLINE Tcl_Obj* 
SWIG_From_unsigned_SS_long  (unsigned long value)
{
  if (value < (unsigned long) LONG_MAX) {
    return SWIG_From_long  ((long)(value));
  } else {
    char temp[256]; 
    sprintf(temp, "%lu", value);
    return Tcl_NewStringObj(temp,-1);
  }
}


SWIGINTERNINLINE Tcl_Obj *
SWIG_From_unsigned_SS_int  (unsigned int value)
{    
  return SWIG_From_unsigned_SS_long  (value);
}


SWIGINTERN int
SWIG_AsVal_unsigned_SS_int SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj, unsigned int *val)
{
  unsigned long v;
  int res = SWIG_AsVal_unsigned_SS_long SWIG_TCL_CALL_ARGS_2(obj, &v);
  if (SWIG_IsOK(res)) {
    if ((v > UINT_MAX)) {
      return SWIG_OverflowError;
    } else {
      if (val) *val = (unsigned int)(v);
    }
  }  
  return res;
}


SWIGINTERNINLINE Tcl_Obj *
SWIG_From_unsigned_SS_char  (unsigned char value)
{    
  return SWIG_From_unsigned_SS_long  (value);
}

#ifdef __cplusplus
extern "C" {
#endif
SWIGINTERN int
_wrap_new_intp(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  int *result = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,":new_intp ") == TCL_ERROR) SWIG_fail;
  result = (int *)new_intp();
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_int,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_copy_intp(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  int arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  int *result = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:copy_intp value ",(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "copy_intp" "', argument " "1"" of type '" "int""'");
  } 
  arg1 = (int)(val1);
  result = (int *)copy_intp(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_int,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_delete_intp(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  int *arg1 = (int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:delete_intp obj ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_int, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_intp" "', argument " "1"" of type '" "int *""'"); 
  }
  arg1 = (int *)(argp1);
  delete_intp(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_intp_assign(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  int *arg1 = (int *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:intp_assign obj value ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_int, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "intp_assign" "', argument " "1"" of type '" "int *""'"); 
  }
  arg1 = (int *)(argp1);
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "intp_assign" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  intp_assign(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_intp_value(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  int *arg1 = (int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:intp_value obj ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_int, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "intp_value" "', argument " "1"" of type '" "int *""'"); 
  }
  arg1 = (int *)(argp1);
  result = (int)intp_value(arg1);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_new_floatp(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  float *result = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,":new_floatp ") == TCL_ERROR) SWIG_fail;
  result = (float *)new_floatp();
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_float,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_copy_floatp(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  float arg1 ;
  float val1 ;
  int ecode1 = 0 ;
  float *result = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:copy_floatp value ",(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "copy_floatp" "', argument " "1"" of type '" "float""'");
  } 
  arg1 = (float)(val1);
  result = (float *)copy_floatp(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_float,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_delete_floatp(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  float *arg1 = (float *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:delete_floatp obj ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_float, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_floatp" "', argument " "1"" of type '" "float *""'"); 
  }
  arg1 = (float *)(argp1);
  delete_floatp(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_floatp_assign(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  float *arg1 = (float *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:floatp_assign obj value ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_float, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "floatp_assign" "', argument " "1"" of type '" "float *""'"); 
  }
  arg1 = (float *)(argp1);
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "floatp_assign" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  floatp_assign(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_floatp_value(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  float *arg1 = (float *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:floatp_value obj ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_float, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "floatp_value" "', argument " "1"" of type '" "float *""'"); 
  }
  arg1 = (float *)(argp1);
  result = (float)floatp_value(arg1);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_new_floatArray(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  size_t arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  floatArray *result = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:new_floatArray nelements ",(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_floatArray" "', argument " "1"" of type '" "size_t""'");
  } 
  arg1 = (size_t)(val1);
  result = (floatArray *)new_floatArray(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_floatArray,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_delete_floatArray(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  floatArray *arg1 = (floatArray *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:delete_floatArray self ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_floatArray, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_floatArray" "', argument " "1"" of type '" "floatArray *""'"); 
  }
  arg1 = (floatArray *)(argp1);
  delete_floatArray(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_floatArray_getitem(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  floatArray *arg1 = (floatArray *) 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:floatArray_getitem self index ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_floatArray, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "floatArray_getitem" "', argument " "1"" of type '" "floatArray *""'"); 
  }
  arg1 = (floatArray *)(argp1);
  ecode2 = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "floatArray_getitem" "', argument " "2"" of type '" "size_t""'");
  } 
  arg2 = (size_t)(val2);
  result = (float)floatArray_getitem(arg1,arg2);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_floatArray_setitem(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  floatArray *arg1 = (floatArray *) 0 ;
  size_t arg2 ;
  float arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:floatArray_setitem self index value ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_floatArray, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "floatArray_setitem" "', argument " "1"" of type '" "floatArray *""'"); 
  }
  arg1 = (floatArray *)(argp1);
  ecode2 = SWIG_AsVal_size_t SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "floatArray_setitem" "', argument " "2"" of type '" "size_t""'");
  } 
  arg2 = (size_t)(val2);
  ecode3 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "floatArray_setitem" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = (float)(val3);
  floatArray_setitem(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_floatArray_cast(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  floatArray *arg1 = (floatArray *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float *result = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:floatArray_cast self ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_floatArray, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "floatArray_cast" "', argument " "1"" of type '" "floatArray *""'"); 
  }
  arg1 = (floatArray *)(argp1);
  result = (float *)floatArray_cast(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_float,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_floatArray_frompointer(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  float *arg1 = (float *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  floatArray *result = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:floatArray_frompointer t ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_float, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "floatArray_frompointer" "', argument " "1"" of type '" "float *""'"); 
  }
  arg1 = (float *)(argp1);
  result = (floatArray *)floatArray_frompointer(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_floatArray,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN void swig_delete_floatArray(void *obj) {
floatArray *arg1 = (floatArray *) obj;
delete_floatArray(arg1);
}
static swig_method swig_floatArray_methods[] = {
    {"getitem", _wrap_floatArray_getitem}, 
    {"setitem", _wrap_floatArray_setitem}, 
    {"cast", _wrap_floatArray_cast}, 
    {0,0}
};
static swig_attribute swig_floatArray_attributes[] = {
    {0,0,0}
};
static swig_class *swig_floatArray_bases[] = {0};
static const char * swig_floatArray_base_names[] = {0};
static swig_class _wrap_class_floatArray = { "floatArray", &SWIGTYPE_p_floatArray,_wrap_new_floatArray, swig_delete_floatArray, swig_floatArray_methods, swig_floatArray_attributes, swig_floatArray_bases,swig_floatArray_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
SWIGINTERN int
_wrap_Ming_init(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,":Ming_init ") == TCL_ERROR) SWIG_fail;
  result = (int)Ming_init();
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_Ming_cleanup(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  if (SWIG_GetArgs(interp, objc, objv,":Ming_cleanup ") == TCL_ERROR) SWIG_fail;
  Ming_cleanup();
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_Ming_collectGarbage(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  if (SWIG_GetArgs(interp, objc, objv,":Ming_collectGarbage ") == TCL_ERROR) SWIG_fail;
  Ming_collectGarbage();
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_Ming_useConstants(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  int arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:Ming_useConstants flag ",(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Ming_useConstants" "', argument " "1"" of type '" "int""'");
  } 
  arg1 = (int)(val1);
  Ming_useConstants(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_Ming_setCubicThreshold(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  int arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:Ming_setCubicThreshold num ",(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Ming_setCubicThreshold" "', argument " "1"" of type '" "int""'");
  } 
  arg1 = (int)(val1);
  Ming_setCubicThreshold(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_Ming_setScale(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  float arg1 ;
  float val1 ;
  int ecode1 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:Ming_setScale scale ",(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Ming_setScale" "', argument " "1"" of type '" "float""'");
  } 
  arg1 = (float)(val1);
  Ming_setScale(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_Ming_getScale(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,":Ming_getScale ") == TCL_ERROR) SWIG_fail;
  result = (float)Ming_getScale();
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_Ming_useSWFVersion(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  int arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:Ming_useSWFVersion version ",(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Ming_useSWFVersion" "', argument " "1"" of type '" "int""'");
  } 
  arg1 = (int)(val1);
  Ming_useSWFVersion(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_Ming_setSWFCompression(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  int arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:Ming_setSWFCompression level ",(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Ming_setSWFCompression" "', argument " "1"" of type '" "int""'");
  } 
  arg1 = (int)(val1);
  result = (int)Ming_setSWFCompression(arg1);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMatrix_getScaleX(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMatrix arg1 = (SWFMatrix) 0 ;
  int res1 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFMatrix_getScaleX m ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMatrix_getScaleX" "', argument " "1"" of type '" "SWFMatrix""'"); 
  }
  result = (float)SWFMatrix_getScaleX(arg1);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMatrix_getRotate0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMatrix arg1 = (SWFMatrix) 0 ;
  int res1 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFMatrix_getRotate0 m ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMatrix_getRotate0" "', argument " "1"" of type '" "SWFMatrix""'"); 
  }
  result = (float)SWFMatrix_getRotate0(arg1);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMatrix_getRotate1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMatrix arg1 = (SWFMatrix) 0 ;
  int res1 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFMatrix_getRotate1 m ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMatrix_getRotate1" "', argument " "1"" of type '" "SWFMatrix""'"); 
  }
  result = (float)SWFMatrix_getRotate1(arg1);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMatrix_getScaleY(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMatrix arg1 = (SWFMatrix) 0 ;
  int res1 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFMatrix_getScaleY m ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMatrix_getScaleY" "', argument " "1"" of type '" "SWFMatrix""'"); 
  }
  result = (float)SWFMatrix_getScaleY(arg1);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMatrix_getTranslateX(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMatrix arg1 = (SWFMatrix) 0 ;
  int res1 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFMatrix_getTranslateX m ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMatrix_getTranslateX" "', argument " "1"" of type '" "SWFMatrix""'"); 
  }
  result = (int)SWFMatrix_getTranslateX(arg1);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMatrix_getTranslateY(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMatrix arg1 = (SWFMatrix) 0 ;
  int res1 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFMatrix_getTranslateY m ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMatrix_getTranslateY" "', argument " "1"" of type '" "SWFMatrix""'"); 
  }
  result = (int)SWFMatrix_getTranslateY(arg1);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFInput_file(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  FILE *arg1 = (FILE *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SWFInput result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFInput_file f ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFInput_file" "', argument " "1"" of type '" "FILE *""'"); 
  }
  arg1 = (FILE *)(argp1);
  result = newSWFInput_file(arg1);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFInput *)memcpy((SWFInput *)calloc(1,sizeof(SWFInput)),&result,sizeof(SWFInput)), SWIGTYPE_p_SWFInput, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFInput_stream(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  FILE *arg1 = (FILE *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SWFInput result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFInput_stream f ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFInput_stream" "', argument " "1"" of type '" "FILE *""'"); 
  }
  arg1 = (FILE *)(argp1);
  result = newSWFInput_stream(arg1);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFInput *)memcpy((SWFInput *)calloc(1,sizeof(SWFInput)),&result,sizeof(SWFInput)), SWIGTYPE_p_SWFInput, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFInput_buffer(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  unsigned char *arg1 = (unsigned char *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  SWFInput result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:newSWFInput_buffer buffer length ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_unsigned_char, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFInput_buffer" "', argument " "1"" of type '" "unsigned char *""'"); 
  }
  arg1 = (unsigned char *)(argp1);
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFInput_buffer" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  result = newSWFInput_buffer(arg1,arg2);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFInput *)memcpy((SWFInput *)calloc(1,sizeof(SWFInput)),&result,sizeof(SWFInput)), SWIGTYPE_p_SWFInput, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFInput_allocedBuffer(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  unsigned char *arg1 = (unsigned char *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  SWFInput result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:newSWFInput_allocedBuffer buffer length ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_unsigned_char, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFInput_allocedBuffer" "', argument " "1"" of type '" "unsigned char *""'"); 
  }
  arg1 = (unsigned char *)(argp1);
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFInput_allocedBuffer" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  result = newSWFInput_allocedBuffer(arg1,arg2);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFInput *)memcpy((SWFInput *)calloc(1,sizeof(SWFInput)),&result,sizeof(SWFInput)), SWIGTYPE_p_SWFInput, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFInput(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFInput arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFInput input ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFInput,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFInput" "', argument " "1"" of type '" "SWFInput""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "destroySWFInput" "', argument " "1"" of type '" "SWFInput""'");
    } else {
      arg1 = *((SWFInput *)(argp1));
    }
  }
  destroySWFInput(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFInput_length(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFInput arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFInput_length input ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFInput,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFInput_length" "', argument " "1"" of type '" "SWFInput""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFInput_length" "', argument " "1"" of type '" "SWFInput""'");
    } else {
      arg1 = *((SWFInput *)(argp1));
    }
  }
  result = (int)SWFInput_length(arg1);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFInput_rewind(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFInput arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFInput_rewind input ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFInput,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFInput_rewind" "', argument " "1"" of type '" "SWFInput""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFInput_rewind" "', argument " "1"" of type '" "SWFInput""'");
    } else {
      arg1 = *((SWFInput *)(argp1));
    }
  }
  SWFInput_rewind(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFInput_tell(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFInput arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFInput_tell input ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFInput,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFInput_tell" "', argument " "1"" of type '" "SWFInput""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFInput_tell" "', argument " "1"" of type '" "SWFInput""'");
    } else {
      arg1 = *((SWFInput *)(argp1));
    }
  }
  result = (int)SWFInput_tell(arg1);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFInput_seek(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFInput arg1 ;
  long arg2 ;
  int arg3 ;
  void *argp1 ;
  int res1 = 0 ;
  long val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFInput_seek input offset whence ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFInput,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFInput_seek" "', argument " "1"" of type '" "SWFInput""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFInput_seek" "', argument " "1"" of type '" "SWFInput""'");
    } else {
      arg1 = *((SWFInput *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_long SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFInput_seek" "', argument " "2"" of type '" "long""'");
  } 
  arg2 = (long)(val2);
  ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFInput_seek" "', argument " "3"" of type '" "int""'");
  } 
  arg3 = (int)(val3);
  SWFInput_seek(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFInput_eof(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFInput arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFInput_eof input ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFInput,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFInput_eof" "', argument " "1"" of type '" "SWFInput""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFInput_eof" "', argument " "1"" of type '" "SWFInput""'");
    } else {
      arg1 = *((SWFInput *)(argp1));
    }
  }
  result = (int)SWFInput_eof(arg1);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFCharacter_getWidth(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFCharacter arg1 = (SWFCharacter) 0 ;
  int res1 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFCharacter_getWidth character ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFCharacter_getWidth" "', argument " "1"" of type '" "SWFCharacter""'"); 
  }
  result = (float)SWFCharacter_getWidth(arg1);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFCharacter_getHeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFCharacter arg1 = (SWFCharacter) 0 ;
  int res1 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFCharacter_getHeight character ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFCharacter_getHeight" "', argument " "1"" of type '" "SWFCharacter""'"); 
  }
  result = (float)SWFCharacter_getHeight(arg1);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFBitmap_fromInput(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFInput arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  SWFBitmap result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFBitmap_fromInput input ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFInput,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFBitmap_fromInput" "', argument " "1"" of type '" "SWFInput""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "newSWFBitmap_fromInput" "', argument " "1"" of type '" "SWFInput""'");
    } else {
      arg1 = *((SWFInput *)(argp1));
    }
  }
  result = (SWFBitmap)newSWFBitmap_fromInput(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFBitmap(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFBitmap arg1 = (SWFBitmap) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFBitmap bitmap ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFBitmap" "', argument " "1"" of type '" "SWFBitmap""'"); 
  }
  destroySWFBitmap(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFBitmap_getWidth(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFBitmap arg1 = (SWFBitmap) 0 ;
  int res1 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFBitmap_getWidth b ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFBitmap_getWidth" "', argument " "1"" of type '" "SWFBitmap""'"); 
  }
  result = (int)SWFBitmap_getWidth(arg1);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFBitmap_getHeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFBitmap arg1 = (SWFBitmap) 0 ;
  int res1 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFBitmap_getHeight b ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFBitmap_getHeight" "', argument " "1"" of type '" "SWFBitmap""'"); 
  }
  result = (int)SWFBitmap_getHeight(arg1);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFDBLBitmap(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  FILE *arg1 = (FILE *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SWFDBLBitmap result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFDBLBitmap f ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFDBLBitmap" "', argument " "1"" of type '" "FILE *""'"); 
  }
  arg1 = (FILE *)(argp1);
  result = newSWFDBLBitmap(arg1);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFDBLBitmap *)memcpy((SWFDBLBitmap *)calloc(1,sizeof(SWFDBLBitmap)),&result,sizeof(SWFDBLBitmap)), SWIGTYPE_p_SWFDBLBitmap, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFDBLBitmap_fromInput(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFInput arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  SWFDBLBitmap result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFDBLBitmap_fromInput input ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFInput,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFDBLBitmap_fromInput" "', argument " "1"" of type '" "SWFInput""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "newSWFDBLBitmap_fromInput" "', argument " "1"" of type '" "SWFInput""'");
    } else {
      arg1 = *((SWFInput *)(argp1));
    }
  }
  result = newSWFDBLBitmap_fromInput(arg1);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFDBLBitmap *)memcpy((SWFDBLBitmap *)calloc(1,sizeof(SWFDBLBitmap)),&result,sizeof(SWFDBLBitmap)), SWIGTYPE_p_SWFDBLBitmap, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFJpegBitmap(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  FILE *arg1 = (FILE *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SWFJpegBitmap result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFJpegBitmap f ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFJpegBitmap" "', argument " "1"" of type '" "FILE *""'"); 
  }
  arg1 = (FILE *)(argp1);
  result = newSWFJpegBitmap(arg1);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFJpegBitmap *)memcpy((SWFJpegBitmap *)calloc(1,sizeof(SWFJpegBitmap)),&result,sizeof(SWFJpegBitmap)), SWIGTYPE_p_SWFJpegBitmap, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFJpegBitmap_fromInput(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFInput arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  SWFJpegBitmap result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFJpegBitmap_fromInput input ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFInput,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFJpegBitmap_fromInput" "', argument " "1"" of type '" "SWFInput""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "newSWFJpegBitmap_fromInput" "', argument " "1"" of type '" "SWFInput""'");
    } else {
      arg1 = *((SWFInput *)(argp1));
    }
  }
  result = newSWFJpegBitmap_fromInput(arg1);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFJpegBitmap *)memcpy((SWFJpegBitmap *)calloc(1,sizeof(SWFJpegBitmap)),&result,sizeof(SWFJpegBitmap)), SWIGTYPE_p_SWFJpegBitmap, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFJpegWithAlpha(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  FILE *arg1 = (FILE *) 0 ;
  FILE *arg2 = (FILE *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  SWFJpegWithAlpha result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:newSWFJpegWithAlpha f alpha ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFJpegWithAlpha" "', argument " "1"" of type '" "FILE *""'"); 
  }
  arg1 = (FILE *)(argp1);
  res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_FILE, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "newSWFJpegWithAlpha" "', argument " "2"" of type '" "FILE *""'"); 
  }
  arg2 = (FILE *)(argp2);
  result = newSWFJpegWithAlpha(arg1,arg2);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFJpegWithAlpha *)memcpy((SWFJpegWithAlpha *)calloc(1,sizeof(SWFJpegWithAlpha)),&result,sizeof(SWFJpegWithAlpha)), SWIGTYPE_p_SWFJpegWithAlpha, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFJpegWithAlpha_fromInput(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFInput arg1 ;
  SWFInput arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  SWFJpegWithAlpha result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:newSWFJpegWithAlpha_fromInput input alpha ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFInput,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFJpegWithAlpha_fromInput" "', argument " "1"" of type '" "SWFInput""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "newSWFJpegWithAlpha_fromInput" "', argument " "1"" of type '" "SWFInput""'");
    } else {
      arg1 = *((SWFInput *)(argp1));
    }
  }
  {
    res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_SWFInput,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "newSWFJpegWithAlpha_fromInput" "', argument " "2"" of type '" "SWFInput""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "newSWFJpegWithAlpha_fromInput" "', argument " "2"" of type '" "SWFInput""'");
    } else {
      arg2 = *((SWFInput *)(argp2));
    }
  }
  result = newSWFJpegWithAlpha_fromInput(arg1,arg2);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFJpegWithAlpha *)memcpy((SWFJpegWithAlpha *)calloc(1,sizeof(SWFJpegWithAlpha)),&result,sizeof(SWFJpegWithAlpha)), SWIGTYPE_p_SWFJpegWithAlpha, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFGradient(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFGradient result;
  
  if (SWIG_GetArgs(interp, objc, objv,":newSWFGradient ") == TCL_ERROR) SWIG_fail;
  result = (SWFGradient)newSWFGradient();
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFGradient(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFGradient arg1 = (SWFGradient) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFGradient gradient ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFGradient" "', argument " "1"" of type '" "SWFGradient""'"); 
  }
  destroySWFGradient(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFGradient_addEntry(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFGradient arg1 = (SWFGradient) 0 ;
  float arg2 ;
  byte arg3 ;
  byte arg4 ;
  byte arg5 ;
  byte arg6 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  unsigned char val3 ;
  int ecode3 = 0 ;
  unsigned char val4 ;
  int ecode4 = 0 ;
  unsigned char val5 ;
  int ecode5 = 0 ;
  unsigned char val6 ;
  int ecode6 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oooooo:SWFGradient_addEntry gradient ratio r g b a ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFGradient_addEntry" "', argument " "1"" of type '" "SWFGradient""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFGradient_addEntry" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFGradient_addEntry" "', argument " "3"" of type '" "byte""'");
  } 
  arg3 = (byte)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFGradient_addEntry" "', argument " "4"" of type '" "byte""'");
  } 
  arg4 = (byte)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFGradient_addEntry" "', argument " "5"" of type '" "byte""'");
  } 
  arg5 = (byte)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[6], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SWFGradient_addEntry" "', argument " "6"" of type '" "byte""'");
  } 
  arg6 = (byte)(val6);
  SWFGradient_addEntry(arg1,arg2,arg3,arg4,arg5,arg6);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFGradient_setSpreadMode(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFGradient arg1 = (SWFGradient) 0 ;
  GradientSpreadMode arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFGradient_setSpreadMode gradient mode ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFGradient_setSpreadMode" "', argument " "1"" of type '" "SWFGradient""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFGradient_setSpreadMode" "', argument " "2"" of type '" "GradientSpreadMode""'");
  } 
  arg2 = (GradientSpreadMode)(val2);
  SWFGradient_setSpreadMode(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFGradient_setInterpolationMode(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFGradient arg1 = (SWFGradient) 0 ;
  GradientInterpolationMode arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFGradient_setInterpolationMode gradient mode ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFGradient_setInterpolationMode" "', argument " "1"" of type '" "SWFGradient""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFGradient_setInterpolationMode" "', argument " "2"" of type '" "GradientInterpolationMode""'");
  } 
  arg2 = (GradientInterpolationMode)(val2);
  SWFGradient_setInterpolationMode(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFGradient_setFocalPoint(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFGradient arg1 = (SWFGradient) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFGradient_setFocalPoint gradient focalPoint ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFGradient_setFocalPoint" "', argument " "1"" of type '" "SWFGradient""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFGradient_setFocalPoint" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFGradient_setFocalPoint(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFSolidFillStyle(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  byte arg1 ;
  byte arg2 ;
  byte arg3 ;
  byte arg4 ;
  unsigned char val1 ;
  int ecode1 = 0 ;
  unsigned char val2 ;
  int ecode2 = 0 ;
  unsigned char val3 ;
  int ecode3 = 0 ;
  unsigned char val4 ;
  int ecode4 = 0 ;
  SWFFillStyle result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oooo:newSWFSolidFillStyle r g b a ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "newSWFSolidFillStyle" "', argument " "1"" of type '" "byte""'");
  } 
  arg1 = (byte)(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFSolidFillStyle" "', argument " "2"" of type '" "byte""'");
  } 
  arg2 = (byte)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "newSWFSolidFillStyle" "', argument " "3"" of type '" "byte""'");
  } 
  arg3 = (byte)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "newSWFSolidFillStyle" "', argument " "4"" of type '" "byte""'");
  } 
  arg4 = (byte)(val4);
  result = newSWFSolidFillStyle(arg1,arg2,arg3,arg4);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFFillStyle *)memcpy((SWFFillStyle *)calloc(1,sizeof(SWFFillStyle)),&result,sizeof(SWFFillStyle)), SWIGTYPE_p_SWFFillStyle, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFGradientFillStyle(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFGradient arg1 = (SWFGradient) 0 ;
  byte arg2 ;
  int res1 ;
  unsigned char val2 ;
  int ecode2 = 0 ;
  SWFFillStyle result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:newSWFGradientFillStyle gradient radial ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFGradientFillStyle" "', argument " "1"" of type '" "SWFGradient""'"); 
  }
  ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFGradientFillStyle" "', argument " "2"" of type '" "byte""'");
  } 
  arg2 = (byte)(val2);
  result = newSWFGradientFillStyle(arg1,arg2);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFFillStyle *)memcpy((SWFFillStyle *)calloc(1,sizeof(SWFFillStyle)),&result,sizeof(SWFFillStyle)), SWIGTYPE_p_SWFFillStyle, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFBitmapFillStyle(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFCharacter arg1 = (SWFCharacter) 0 ;
  byte arg2 ;
  int res1 ;
  unsigned char val2 ;
  int ecode2 = 0 ;
  SWFFillStyle result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:newSWFBitmapFillStyle bitmap flags ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFBitmapFillStyle" "', argument " "1"" of type '" "SWFCharacter""'"); 
  }
  ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFBitmapFillStyle" "', argument " "2"" of type '" "byte""'");
  } 
  arg2 = (byte)(val2);
  result = newSWFBitmapFillStyle(arg1,arg2);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFFillStyle *)memcpy((SWFFillStyle *)calloc(1,sizeof(SWFFillStyle)),&result,sizeof(SWFFillStyle)), SWIGTYPE_p_SWFFillStyle, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFillStyle_getMatrix(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFillStyle arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  SWFMatrix result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFFillStyle_getMatrix fill ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFFillStyle,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFillStyle_getMatrix" "', argument " "1"" of type '" "SWFFillStyle""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFFillStyle_getMatrix" "', argument " "1"" of type '" "SWFFillStyle""'");
    } else {
      arg1 = *((SWFFillStyle *)(argp1));
    }
  }
  result = (SWFMatrix)SWFFillStyle_getMatrix(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFLineStyle(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  unsigned short arg1 ;
  byte arg2 ;
  byte arg3 ;
  byte arg4 ;
  byte arg5 ;
  unsigned short val1 ;
  int ecode1 = 0 ;
  unsigned char val2 ;
  int ecode2 = 0 ;
  unsigned char val3 ;
  int ecode3 = 0 ;
  unsigned char val4 ;
  int ecode4 = 0 ;
  unsigned char val5 ;
  int ecode5 = 0 ;
  SWFLineStyle result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooo:newSWFLineStyle width r g b a ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_short SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "newSWFLineStyle" "', argument " "1"" of type '" "unsigned short""'");
  } 
  arg1 = (unsigned short)(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFLineStyle" "', argument " "2"" of type '" "byte""'");
  } 
  arg2 = (byte)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "newSWFLineStyle" "', argument " "3"" of type '" "byte""'");
  } 
  arg3 = (byte)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "newSWFLineStyle" "', argument " "4"" of type '" "byte""'");
  } 
  arg4 = (byte)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "newSWFLineStyle" "', argument " "5"" of type '" "byte""'");
  } 
  arg5 = (byte)(val5);
  result = newSWFLineStyle(arg1,arg2,arg3,arg4,arg5);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFLineStyle *)memcpy((SWFLineStyle *)calloc(1,sizeof(SWFLineStyle)),&result,sizeof(SWFLineStyle)), SWIGTYPE_p_SWFLineStyle, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFLineStyle2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  unsigned short arg1 ;
  byte arg2 ;
  byte arg3 ;
  byte arg4 ;
  byte arg5 ;
  int arg6 ;
  float arg7 ;
  unsigned short val1 ;
  int ecode1 = 0 ;
  unsigned char val2 ;
  int ecode2 = 0 ;
  unsigned char val3 ;
  int ecode3 = 0 ;
  unsigned char val4 ;
  int ecode4 = 0 ;
  unsigned char val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  float val7 ;
  int ecode7 = 0 ;
  SWFLineStyle result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooooo:newSWFLineStyle2 width r g b a flags miterLimit ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_short SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "newSWFLineStyle2" "', argument " "1"" of type '" "unsigned short""'");
  } 
  arg1 = (unsigned short)(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFLineStyle2" "', argument " "2"" of type '" "byte""'");
  } 
  arg2 = (byte)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "newSWFLineStyle2" "', argument " "3"" of type '" "byte""'");
  } 
  arg3 = (byte)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "newSWFLineStyle2" "', argument " "4"" of type '" "byte""'");
  } 
  arg4 = (byte)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "newSWFLineStyle2" "', argument " "5"" of type '" "byte""'");
  } 
  arg5 = (byte)(val5);
  ecode6 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[6], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "newSWFLineStyle2" "', argument " "6"" of type '" "int""'");
  } 
  arg6 = (int)(val6);
  ecode7 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[7], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "newSWFLineStyle2" "', argument " "7"" of type '" "float""'");
  } 
  arg7 = (float)(val7);
  result = newSWFLineStyle2(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFLineStyle *)memcpy((SWFLineStyle *)calloc(1,sizeof(SWFLineStyle)),&result,sizeof(SWFLineStyle)), SWIGTYPE_p_SWFLineStyle, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFLineStyle2_filled(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  unsigned short arg1 ;
  SWFFillStyle arg2 ;
  int arg3 ;
  float arg4 ;
  unsigned short val1 ;
  int ecode1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  float val4 ;
  int ecode4 = 0 ;
  SWFLineStyle result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oooo:newSWFLineStyle2_filled width fill flags miterLimit ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_unsigned_SS_short SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "newSWFLineStyle2_filled" "', argument " "1"" of type '" "unsigned short""'");
  } 
  arg1 = (unsigned short)(val1);
  {
    res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_SWFFillStyle,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "newSWFLineStyle2_filled" "', argument " "2"" of type '" "SWFFillStyle""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "newSWFLineStyle2_filled" "', argument " "2"" of type '" "SWFFillStyle""'");
    } else {
      arg2 = *((SWFFillStyle *)(argp2));
    }
  }
  ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "newSWFLineStyle2_filled" "', argument " "3"" of type '" "int""'");
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "newSWFLineStyle2_filled" "', argument " "4"" of type '" "float""'");
  } 
  arg4 = (float)(val4);
  result = newSWFLineStyle2_filled(arg1,arg2,arg3,arg4);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFLineStyle *)memcpy((SWFLineStyle *)calloc(1,sizeof(SWFLineStyle)),&result,sizeof(SWFLineStyle)), SWIGTYPE_p_SWFLineStyle, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFShape(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape result;
  
  if (SWIG_GetArgs(interp, objc, objv,":newSWFShape ") == TCL_ERROR) SWIG_fail;
  result = (SWFShape)newSWFShape();
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFShapeFromBitmap(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFBitmap arg1 = (SWFBitmap) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  SWFShape result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:newSWFShapeFromBitmap bitmap flag ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFShapeFromBitmap" "', argument " "1"" of type '" "SWFBitmap""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFShapeFromBitmap" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  result = (SWFShape)newSWFShapeFromBitmap(arg1,arg2);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFShape(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFShape shape ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFShape" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  destroySWFShape(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_end(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFShape_end shape ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_end" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  SWFShape_end(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_useVersion(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFShape_useVersion shape version ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_useVersion" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFShape_useVersion" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  SWFShape_useVersion(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_getVersion(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  int res1 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFShape_getVersion shape ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_getVersion" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  result = (int)SWFShape_getVersion(arg1);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_setRenderHintingFlags(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFShape_setRenderHintingFlags shape flags ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_setRenderHintingFlags" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFShape_setRenderHintingFlags" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  SWFShape_setRenderHintingFlags(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_movePenTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  double arg2 ;
  double arg3 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFShape_movePenTo shape x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_movePenTo" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFShape_movePenTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_movePenTo" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  SWFShape_movePenTo(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_movePen(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  double arg2 ;
  double arg3 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFShape_movePen shape x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_movePen" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFShape_movePen" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_movePen" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  SWFShape_movePen(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_getPenX(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  int res1 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFShape_getPenX shape ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_getPenX" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  result = (float)SWFShape_getPenX(arg1);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_getPenY(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  int res1 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFShape_getPenY shape ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_getPenY" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  result = (float)SWFShape_getPenY(arg1);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_getPen(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  double *arg2 = (double *) 0 ;
  double *arg3 = (double *) 0 ;
  int res1 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFShape_getPen shape penX penY ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_getPen" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_double, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFShape_getPen" "', argument " "2"" of type '" "double *""'"); 
  }
  arg2 = (double *)(argp2);
  res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_double, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SWFShape_getPen" "', argument " "3"" of type '" "double *""'"); 
  }
  arg3 = (double *)(argp3);
  SWFShape_getPen(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_drawLineTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  double arg2 ;
  double arg3 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFShape_drawLineTo shape x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_drawLineTo" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFShape_drawLineTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_drawLineTo" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  SWFShape_drawLineTo(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_drawLine(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  double arg2 ;
  double arg3 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFShape_drawLine shape dx dy ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_drawLine" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFShape_drawLine" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_drawLine" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  SWFShape_drawLine(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_drawCurveTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  double arg2 ;
  double arg3 ;
  double arg4 ;
  double arg5 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooo:SWFShape_drawCurveTo shape controlx controly anchorx anchory ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_drawCurveTo" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFShape_drawCurveTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_drawCurveTo" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFShape_drawCurveTo" "', argument " "4"" of type '" "double""'");
  } 
  arg4 = (double)(val4);
  ecode5 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFShape_drawCurveTo" "', argument " "5"" of type '" "double""'");
  } 
  arg5 = (double)(val5);
  SWFShape_drawCurveTo(arg1,arg2,arg3,arg4,arg5);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_drawCurve(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  double arg2 ;
  double arg3 ;
  double arg4 ;
  double arg5 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooo:SWFShape_drawCurve shape controldx controldy anchordx anchordy ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_drawCurve" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFShape_drawCurve" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_drawCurve" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFShape_drawCurve" "', argument " "4"" of type '" "double""'");
  } 
  arg4 = (double)(val4);
  ecode5 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFShape_drawCurve" "', argument " "5"" of type '" "double""'");
  } 
  arg5 = (double)(val5);
  SWFShape_drawCurve(arg1,arg2,arg3,arg4,arg5);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_hideLine(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFShape_hideLine shape ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_hideLine" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  SWFShape_hideLine(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_addSolidFillStyle(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  byte arg2 ;
  byte arg3 ;
  byte arg4 ;
  byte arg5 ;
  int res1 ;
  unsigned char val2 ;
  int ecode2 = 0 ;
  unsigned char val3 ;
  int ecode3 = 0 ;
  unsigned char val4 ;
  int ecode4 = 0 ;
  unsigned char val5 ;
  int ecode5 = 0 ;
  SWFFillStyle result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooo:SWFShape_addSolidFillStyle shape r g b a ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_addSolidFillStyle" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFShape_addSolidFillStyle" "', argument " "2"" of type '" "byte""'");
  } 
  arg2 = (byte)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_addSolidFillStyle" "', argument " "3"" of type '" "byte""'");
  } 
  arg3 = (byte)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFShape_addSolidFillStyle" "', argument " "4"" of type '" "byte""'");
  } 
  arg4 = (byte)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFShape_addSolidFillStyle" "', argument " "5"" of type '" "byte""'");
  } 
  arg5 = (byte)(val5);
  result = SWFShape_addSolidFillStyle(arg1,arg2,arg3,arg4,arg5);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFFillStyle *)memcpy((SWFFillStyle *)calloc(1,sizeof(SWFFillStyle)),&result,sizeof(SWFFillStyle)), SWIGTYPE_p_SWFFillStyle, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_addGradientFillStyle(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  SWFGradient arg2 = (SWFGradient) 0 ;
  byte arg3 ;
  int res1 ;
  int res2 ;
  unsigned char val3 ;
  int ecode3 = 0 ;
  SWFFillStyle result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFShape_addGradientFillStyle shape gradient flags ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_addGradientFillStyle" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFShape_addGradientFillStyle" "', argument " "2"" of type '" "SWFGradient""'"); 
  }
  ecode3 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_addGradientFillStyle" "', argument " "3"" of type '" "byte""'");
  } 
  arg3 = (byte)(val3);
  result = SWFShape_addGradientFillStyle(arg1,arg2,arg3);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFFillStyle *)memcpy((SWFFillStyle *)calloc(1,sizeof(SWFFillStyle)),&result,sizeof(SWFFillStyle)), SWIGTYPE_p_SWFFillStyle, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_addBitmapFillStyle(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  SWFBitmap arg2 = (SWFBitmap) 0 ;
  byte arg3 ;
  int res1 ;
  int res2 ;
  unsigned char val3 ;
  int ecode3 = 0 ;
  SWFFillStyle result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFShape_addBitmapFillStyle shape bitmap flags ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_addBitmapFillStyle" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFShape_addBitmapFillStyle" "', argument " "2"" of type '" "SWFBitmap""'"); 
  }
  ecode3 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_addBitmapFillStyle" "', argument " "3"" of type '" "byte""'");
  } 
  arg3 = (byte)(val3);
  result = SWFShape_addBitmapFillStyle(arg1,arg2,arg3);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFFillStyle *)memcpy((SWFFillStyle *)calloc(1,sizeof(SWFFillStyle)),&result,sizeof(SWFFillStyle)), SWIGTYPE_p_SWFFillStyle, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_setLeftFillStyle(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  SWFFillStyle arg2 ;
  int res1 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFShape_setLeftFillStyle shape fill ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_setLeftFillStyle" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  {
    res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_SWFFillStyle,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFShape_setLeftFillStyle" "', argument " "2"" of type '" "SWFFillStyle""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFShape_setLeftFillStyle" "', argument " "2"" of type '" "SWFFillStyle""'");
    } else {
      arg2 = *((SWFFillStyle *)(argp2));
    }
  }
  SWFShape_setLeftFillStyle(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_setRightFillStyle(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  SWFFillStyle arg2 ;
  int res1 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFShape_setRightFillStyle shape fill ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_setRightFillStyle" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  {
    res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_SWFFillStyle,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFShape_setRightFillStyle" "', argument " "2"" of type '" "SWFFillStyle""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFShape_setRightFillStyle" "', argument " "2"" of type '" "SWFFillStyle""'");
    } else {
      arg2 = *((SWFFillStyle *)(argp2));
    }
  }
  SWFShape_setRightFillStyle(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFMorphShape(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMorph result;
  
  if (SWIG_GetArgs(interp, objc, objv,":newSWFMorphShape ") == TCL_ERROR) SWIG_fail;
  result = (SWFMorph)newSWFMorphShape();
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFMorph(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMorph arg1 = (SWFMorph) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFMorph morph ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFMorph" "', argument " "1"" of type '" "SWFMorph""'"); 
  }
  destroySWFMorph(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMorph_getShape1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMorph arg1 = (SWFMorph) 0 ;
  int res1 ;
  SWFShape result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFMorph_getShape1 morph ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMorph_getShape1" "', argument " "1"" of type '" "SWFMorph""'"); 
  }
  result = (SWFShape)SWFMorph_getShape1(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMorph_getShape2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMorph arg1 = (SWFMorph) 0 ;
  int res1 ;
  SWFShape result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFMorph_getShape2 morph ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMorph_getShape2" "', argument " "1"" of type '" "SWFMorph""'"); 
  }
  result = (SWFShape)SWFMorph_getShape2(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFFont_fromFile(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  char *arg1 = (char *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  SWFFont result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFFont_fromFile filename ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_AsCharPtrAndSize(objv[1], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFFont_fromFile" "', argument " "1"" of type '" "char const *""'");
  }
  arg1 = (char *)(buf1);
  result = (SWFFont)newSWFFont_fromFile((char const *)arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return TCL_OK;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFFont(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFont arg1 = (SWFFont) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFFont font ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFFont" "', argument " "1"" of type '" "SWFFont""'"); 
  }
  destroySWFFont(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFont_getStringWidth(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFont arg1 = (SWFFont) 0 ;
  char *arg2 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFFont_getStringWidth font string ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFont_getStringWidth" "', argument " "1"" of type '" "SWFFont""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFFont_getStringWidth" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  result = (float)SWFFont_getStringWidth(arg1,(char const *)arg2);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFont_getUTF8StringWidth(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFont arg1 = (SWFFont) 0 ;
  char *arg2 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFFont_getUTF8StringWidth font string ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFont_getUTF8StringWidth" "', argument " "1"" of type '" "SWFFont""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFFont_getUTF8StringWidth" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  result = (float)SWFFont_getUTF8StringWidth(arg1,(char const *)arg2);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFont_getWideStringWidth(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFont arg1 = (SWFFont) 0 ;
  unsigned short *arg2 = (unsigned short *) 0 ;
  int arg3 ;
  int res1 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFFont_getWideStringWidth font string len ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFont_getWideStringWidth" "', argument " "1"" of type '" "SWFFont""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_unsigned_short, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFFont_getWideStringWidth" "', argument " "2"" of type '" "unsigned short const *""'"); 
  }
  arg2 = (unsigned short *)(argp2);
  ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFFont_getWideStringWidth" "', argument " "3"" of type '" "int""'");
  } 
  arg3 = (int)(val3);
  result = (float)SWFFont_getWideStringWidth(arg1,(unsigned short const *)arg2,arg3);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFont_getAscent(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFont arg1 = (SWFFont) 0 ;
  int res1 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFFont_getAscent font ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFont_getAscent" "', argument " "1"" of type '" "SWFFont""'"); 
  }
  result = (float)SWFFont_getAscent(arg1);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFont_getDescent(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFont arg1 = (SWFFont) 0 ;
  int res1 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFFont_getDescent font ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFont_getDescent" "', argument " "1"" of type '" "SWFFont""'"); 
  }
  result = (float)SWFFont_getDescent(arg1);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFont_getLeading(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFont arg1 = (SWFFont) 0 ;
  int res1 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFFont_getLeading font ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFont_getLeading" "', argument " "1"" of type '" "SWFFont""'"); 
  }
  result = (float)SWFFont_getLeading(arg1);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFont_getName(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFont arg1 = (SWFFont) 0 ;
  int res1 ;
  char *result = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFFont_getName font ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFont_getName" "', argument " "1"" of type '" "SWFFont""'"); 
  }
  result = (char *)SWFFont_getName(arg1);
  Tcl_SetObjResult(interp,SWIG_FromCharPtr((const char *)result));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFont_getGlyphCount(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFont arg1 = (SWFFont) 0 ;
  int res1 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFFont_getGlyphCount font ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFont_getGlyphCount" "', argument " "1"" of type '" "SWFFont""'"); 
  }
  result = (int)SWFFont_getGlyphCount(arg1);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFFontCollection_fromFile(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  char *arg1 = (char *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  SWFFontCollection result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFFontCollection_fromFile filename ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_AsCharPtrAndSize(objv[1], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFFontCollection_fromFile" "', argument " "1"" of type '" "char const *""'");
  }
  arg1 = (char *)(buf1);
  result = (SWFFontCollection)newSWFFontCollection_fromFile((char const *)arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return TCL_OK;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFontCollection_getFontCount(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFontCollection arg1 = (SWFFontCollection) 0 ;
  int res1 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFFontCollection_getFontCount collection ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFontCollection_getFontCount" "', argument " "1"" of type '" "SWFFontCollection""'"); 
  }
  result = (int)SWFFontCollection_getFontCount(arg1);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFontCollection_getFont(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFontCollection arg1 = (SWFFontCollection) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  SWFFont result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFFontCollection_getFont collection index ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFontCollection_getFont" "', argument " "1"" of type '" "SWFFontCollection""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFFontCollection_getFont" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  result = (SWFFont)SWFFontCollection_getFont(arg1,arg2);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFFontCollection(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFontCollection arg1 = (SWFFontCollection) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFFontCollection collection ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFFontCollection" "', argument " "1"" of type '" "SWFFontCollection""'"); 
  }
  destroySWFFontCollection(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFText(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFText result;
  
  if (SWIG_GetArgs(interp, objc, objv,":newSWFText ") == TCL_ERROR) SWIG_fail;
  result = (SWFText)newSWFText();
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFText2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFText result;
  
  if (SWIG_GetArgs(interp, objc, objv,":newSWFText2 ") == TCL_ERROR) SWIG_fail;
  result = (SWFText)newSWFText2();
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFText(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFText arg1 = (SWFText) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFText text ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFText" "', argument " "1"" of type '" "SWFText""'"); 
  }
  destroySWFText(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFText_setFont(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFText arg1 = (SWFText) 0 ;
  void *arg2 = (void *) 0 ;
  int res1 ;
  int res2 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFText_setFont text font ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFText_setFont" "', argument " "1"" of type '" "SWFText""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFText_setFont" "', argument " "2"" of type '" "void *""'"); 
  }
  SWFText_setFont(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFText_setHeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFText arg1 = (SWFText) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFText_setHeight text height ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFText_setHeight" "', argument " "1"" of type '" "SWFText""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFText_setHeight" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFText_setHeight(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFText_setColor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFText arg1 = (SWFText) 0 ;
  byte arg2 ;
  byte arg3 ;
  byte arg4 ;
  byte arg5 ;
  int res1 ;
  unsigned char val2 ;
  int ecode2 = 0 ;
  unsigned char val3 ;
  int ecode3 = 0 ;
  unsigned char val4 ;
  int ecode4 = 0 ;
  unsigned char val5 ;
  int ecode5 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooo:SWFText_setColor text r g b a ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFText_setColor" "', argument " "1"" of type '" "SWFText""'"); 
  }
  ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFText_setColor" "', argument " "2"" of type '" "byte""'");
  } 
  arg2 = (byte)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFText_setColor" "', argument " "3"" of type '" "byte""'");
  } 
  arg3 = (byte)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFText_setColor" "', argument " "4"" of type '" "byte""'");
  } 
  arg4 = (byte)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFText_setColor" "', argument " "5"" of type '" "byte""'");
  } 
  arg5 = (byte)(val5);
  SWFText_setColor(arg1,arg2,arg3,arg4,arg5);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFText_moveTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFText arg1 = (SWFText) 0 ;
  float arg2 ;
  float arg3 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFText_moveTo text x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFText_moveTo" "', argument " "1"" of type '" "SWFText""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFText_moveTo" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  ecode3 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFText_moveTo" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = (float)(val3);
  SWFText_moveTo(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFText_addString(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFText arg1 = (SWFText) 0 ;
  char *arg2 = (char *) 0 ;
  int *arg3 = (int *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFText_addString text string advance ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFText_addString" "', argument " "1"" of type '" "SWFText""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFText_addString" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_int, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SWFText_addString" "', argument " "3"" of type '" "int *""'"); 
  }
  arg3 = (int *)(argp3);
  SWFText_addString(arg1,(char const *)arg2,arg3);
  
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFText_addUTF8String(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFText arg1 = (SWFText) 0 ;
  char *arg2 = (char *) 0 ;
  int *arg3 = (int *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFText_addUTF8String text string advance ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFText_addUTF8String" "', argument " "1"" of type '" "SWFText""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFText_addUTF8String" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_int, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SWFText_addUTF8String" "', argument " "3"" of type '" "int *""'"); 
  }
  arg3 = (int *)(argp3);
  SWFText_addUTF8String(arg1,(char const *)arg2,arg3);
  
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFText_addWideString(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFText arg1 = (SWFText) 0 ;
  unsigned short *arg2 = (unsigned short *) 0 ;
  int arg3 ;
  int *arg4 = (int *) 0 ;
  int res1 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oooo:SWFText_addWideString text string strlen advance ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFText_addWideString" "', argument " "1"" of type '" "SWFText""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_unsigned_short, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFText_addWideString" "', argument " "2"" of type '" "unsigned short const *""'"); 
  }
  arg2 = (unsigned short *)(argp2);
  ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFText_addWideString" "', argument " "3"" of type '" "int""'");
  } 
  arg3 = (int)(val3);
  res4 = SWIG_ConvertPtr(objv[4], &argp4,SWIGTYPE_p_int, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SWFText_addWideString" "', argument " "4"" of type '" "int *""'"); 
  }
  arg4 = (int *)(argp4);
  SWFText_addWideString(arg1,(unsigned short const *)arg2,arg3,arg4);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFText_setSpacing(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFText arg1 = (SWFText) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFText_setSpacing text spacing ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFText_setSpacing" "', argument " "1"" of type '" "SWFText""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFText_setSpacing" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFText_setSpacing(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFText_getStringWidth(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFText arg1 = (SWFText) 0 ;
  char *arg2 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFText_getStringWidth text string ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFText_getStringWidth" "', argument " "1"" of type '" "SWFText""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFText_getStringWidth" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  result = (float)SWFText_getStringWidth(arg1,(char const *)arg2);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFText_getUTF8StringWidth(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFText arg1 = (SWFText) 0 ;
  char *arg2 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFText_getUTF8StringWidth text string ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFText_getUTF8StringWidth" "', argument " "1"" of type '" "SWFText""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFText_getUTF8StringWidth" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  result = (float)SWFText_getUTF8StringWidth(arg1,(char const *)arg2);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFText_getWideStringWidth(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFText arg1 = (SWFText) 0 ;
  unsigned short *arg2 = (unsigned short *) 0 ;
  int res1 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFText_getWideStringWidth text string ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFText_getWideStringWidth" "', argument " "1"" of type '" "SWFText""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_unsigned_short, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFText_getWideStringWidth" "', argument " "2"" of type '" "unsigned short const *""'"); 
  }
  arg2 = (unsigned short *)(argp2);
  result = (float)SWFText_getWideStringWidth(arg1,(unsigned short const *)arg2);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFText_getAscent(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFText arg1 = (SWFText) 0 ;
  int res1 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFText_getAscent text ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFText_getAscent" "', argument " "1"" of type '" "SWFText""'"); 
  }
  result = (float)SWFText_getAscent(arg1);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFText_getDescent(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFText arg1 = (SWFText) 0 ;
  int res1 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFText_getDescent text ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFText_getDescent" "', argument " "1"" of type '" "SWFText""'"); 
  }
  result = (float)SWFText_getDescent(arg1);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFText_getLeading(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFText arg1 = (SWFText) 0 ;
  int res1 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFText_getLeading text ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFText_getLeading" "', argument " "1"" of type '" "SWFText""'"); 
  }
  result = (float)SWFText_getLeading(arg1);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFBrowserFont(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  char *arg1 = (char *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  SWFBrowserFont result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFBrowserFont name ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_AsCharPtrAndSize(objv[1], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFBrowserFont" "', argument " "1"" of type '" "char const *""'");
  }
  arg1 = (char *)(buf1);
  result = (SWFBrowserFont)newSWFBrowserFont((char const *)arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return TCL_OK;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFBrowserFont(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFBrowserFont arg1 = (SWFBrowserFont) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFBrowserFont browserFont ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFBrowserFont" "', argument " "1"" of type '" "SWFBrowserFont""'"); 
  }
  destroySWFBrowserFont(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFontCharacter_addChars(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFontCharacter arg1 = (SWFFontCharacter) 0 ;
  char *arg2 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFFontCharacter_addChars font string ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFontCharacter_addChars" "', argument " "1"" of type '" "SWFFontCharacter""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFFontCharacter_addChars" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  SWFFontCharacter_addChars(arg1,(char const *)arg2);
  
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFontCharacter_addUTF8Chars(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFontCharacter arg1 = (SWFFontCharacter) 0 ;
  char *arg2 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFFontCharacter_addUTF8Chars font string ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFontCharacter_addUTF8Chars" "', argument " "1"" of type '" "SWFFontCharacter""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFFontCharacter_addUTF8Chars" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  SWFFontCharacter_addUTF8Chars(arg1,(char const *)arg2);
  
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFTextField(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField result;
  
  if (SWIG_GetArgs(interp, objc, objv,":newSWFTextField ") == TCL_ERROR) SWIG_fail;
  result = (SWFTextField)newSWFTextField();
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFTextField(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField arg1 = (SWFTextField) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFTextField textField ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFTextField" "', argument " "1"" of type '" "SWFTextField""'"); 
  }
  destroySWFTextField(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFTextField_setFont(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField arg1 = (SWFTextField) 0 ;
  SWFBlock arg2 = (SWFBlock) 0 ;
  int res1 ;
  int res2 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFTextField_setFont field font ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFTextField_setFont" "', argument " "1"" of type '" "SWFTextField""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFTextField_setFont" "', argument " "2"" of type '" "SWFBlock""'"); 
  }
  SWFTextField_setFont(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFTextField_setBounds(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField arg1 = (SWFTextField) 0 ;
  float arg2 ;
  float arg3 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFTextField_setBounds field width height ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFTextField_setBounds" "', argument " "1"" of type '" "SWFTextField""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFTextField_setBounds" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  ecode3 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFTextField_setBounds" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = (float)(val3);
  SWFTextField_setBounds(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFTextField_setFlags(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField arg1 = (SWFTextField) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFTextField_setFlags field flags ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFTextField_setFlags" "', argument " "1"" of type '" "SWFTextField""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFTextField_setFlags" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  SWFTextField_setFlags(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFTextField_setColor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField arg1 = (SWFTextField) 0 ;
  byte arg2 ;
  byte arg3 ;
  byte arg4 ;
  byte arg5 ;
  int res1 ;
  unsigned char val2 ;
  int ecode2 = 0 ;
  unsigned char val3 ;
  int ecode3 = 0 ;
  unsigned char val4 ;
  int ecode4 = 0 ;
  unsigned char val5 ;
  int ecode5 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooo:SWFTextField_setColor field r g b a ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFTextField_setColor" "', argument " "1"" of type '" "SWFTextField""'"); 
  }
  ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFTextField_setColor" "', argument " "2"" of type '" "byte""'");
  } 
  arg2 = (byte)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFTextField_setColor" "', argument " "3"" of type '" "byte""'");
  } 
  arg3 = (byte)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFTextField_setColor" "', argument " "4"" of type '" "byte""'");
  } 
  arg4 = (byte)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFTextField_setColor" "', argument " "5"" of type '" "byte""'");
  } 
  arg5 = (byte)(val5);
  SWFTextField_setColor(arg1,arg2,arg3,arg4,arg5);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFTextField_setVariableName(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField arg1 = (SWFTextField) 0 ;
  char *arg2 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFTextField_setVariableName field name ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFTextField_setVariableName" "', argument " "1"" of type '" "SWFTextField""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFTextField_setVariableName" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  SWFTextField_setVariableName(arg1,(char const *)arg2);
  
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFTextField_addString(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField arg1 = (SWFTextField) 0 ;
  char *arg2 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFTextField_addString field string ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFTextField_addString" "', argument " "1"" of type '" "SWFTextField""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFTextField_addString" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  SWFTextField_addString(arg1,(char const *)arg2);
  
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFTextField_addUTF8String(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField arg1 = (SWFTextField) 0 ;
  char *arg2 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFTextField_addUTF8String field string ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFTextField_addUTF8String" "', argument " "1"" of type '" "SWFTextField""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFTextField_addUTF8String" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  SWFTextField_addUTF8String(arg1,(char const *)arg2);
  
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFTextField_setHeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField arg1 = (SWFTextField) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFTextField_setHeight field height ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFTextField_setHeight" "', argument " "1"" of type '" "SWFTextField""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFTextField_setHeight" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFTextField_setHeight(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFTextField_setFieldHeight(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField arg1 = (SWFTextField) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFTextField_setFieldHeight field height ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFTextField_setFieldHeight" "', argument " "1"" of type '" "SWFTextField""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFTextField_setFieldHeight" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFTextField_setFieldHeight(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFTextField_setLeftMargin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField arg1 = (SWFTextField) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFTextField_setLeftMargin field leftMargin ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFTextField_setLeftMargin" "', argument " "1"" of type '" "SWFTextField""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFTextField_setLeftMargin" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFTextField_setLeftMargin(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFTextField_setRightMargin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField arg1 = (SWFTextField) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFTextField_setRightMargin field rightMargin ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFTextField_setRightMargin" "', argument " "1"" of type '" "SWFTextField""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFTextField_setRightMargin" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFTextField_setRightMargin(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFTextField_setIndentation(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField arg1 = (SWFTextField) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFTextField_setIndentation field indentation ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFTextField_setIndentation" "', argument " "1"" of type '" "SWFTextField""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFTextField_setIndentation" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFTextField_setIndentation(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFTextField_setLineSpacing(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField arg1 = (SWFTextField) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFTextField_setLineSpacing field lineSpacing ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFTextField_setLineSpacing" "', argument " "1"" of type '" "SWFTextField""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFTextField_setLineSpacing" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFTextField_setLineSpacing(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFTextField_setPadding(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField arg1 = (SWFTextField) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFTextField_setPadding field padding ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFTextField_setPadding" "', argument " "1"" of type '" "SWFTextField""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFTextField_setPadding" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFTextField_setPadding(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFTextField_addChars(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField arg1 = (SWFTextField) 0 ;
  char *arg2 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFTextField_addChars field string ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFTextField_addChars" "', argument " "1"" of type '" "SWFTextField""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFTextField_addChars" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  SWFTextField_addChars(arg1,(char const *)arg2);
  
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFTextField_setAlignment(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField arg1 = (SWFTextField) 0 ;
  SWFTextFieldAlignment arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFTextField_setAlignment field alignment ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFTextField_setAlignment" "', argument " "1"" of type '" "SWFTextField""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFTextField_setAlignment" "', argument " "2"" of type '" "SWFTextFieldAlignment""'");
  } 
  arg2 = (SWFTextFieldAlignment)(val2);
  SWFTextField_setAlignment(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFTextField_setLength(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFTextField arg1 = (SWFTextField) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFTextField_setLength field length ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFTextField_setLength" "', argument " "1"" of type '" "SWFTextField""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFTextField_setLength" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  SWFTextField_setLength(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFSoundStream(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  FILE *arg1 = (FILE *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SWFSoundStream result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFSoundStream file ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFSoundStream" "', argument " "1"" of type '" "FILE *""'"); 
  }
  arg1 = (FILE *)(argp1);
  result = (SWFSoundStream)newSWFSoundStream(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFSoundStreamFromFileno(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  int arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  SWFSoundStream result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFSoundStreamFromFileno fd ",(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "newSWFSoundStreamFromFileno" "', argument " "1"" of type '" "int""'");
  } 
  arg1 = (int)(val1);
  result = (SWFSoundStream)newSWFSoundStreamFromFileno(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFSoundStream_fromInput(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFInput arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  SWFSoundStream result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFSoundStream_fromInput input ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFInput,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFSoundStream_fromInput" "', argument " "1"" of type '" "SWFInput""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "newSWFSoundStream_fromInput" "', argument " "1"" of type '" "SWFInput""'");
    } else {
      arg1 = *((SWFInput *)(argp1));
    }
  }
  result = (SWFSoundStream)newSWFSoundStream_fromInput(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFSoundStream(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFSoundStream arg1 = (SWFSoundStream) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFSoundStream soundStream ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFSoundStream" "', argument " "1"" of type '" "SWFSoundStream""'"); 
  }
  destroySWFSoundStream(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFSoundStream_getDuration(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFSoundStream arg1 = (SWFSoundStream) 0 ;
  int res1 ;
  unsigned int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFSoundStream_getDuration SWFSoundStream ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFSoundStream_getDuration" "', argument " "1"" of type '" "SWFSoundStream""'"); 
  }
  result = (unsigned int)SWFSoundStream_getDuration(arg1);
  Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_int((unsigned int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFSoundStream_setInitialMp3Delay(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFSoundStream arg1 = (SWFSoundStream) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFSoundStream_setInitialMp3Delay soundStream delay ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFSoundStream_setInitialMp3Delay" "', argument " "1"" of type '" "SWFSoundStream""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFSoundStream_setInitialMp3Delay" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  SWFSoundStream_setInitialMp3Delay(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFSound(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  FILE *arg1 = (FILE *) 0 ;
  byte arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned char val2 ;
  int ecode2 = 0 ;
  SWFSound result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:newSWFSound file flags ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFSound" "', argument " "1"" of type '" "FILE *""'"); 
  }
  arg1 = (FILE *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFSound" "', argument " "2"" of type '" "byte""'");
  } 
  arg2 = (byte)(val2);
  result = (SWFSound)newSWFSound(arg1,arg2);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFSoundFromFileno(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  int arg1 ;
  byte arg2 ;
  int val1 ;
  int ecode1 = 0 ;
  unsigned char val2 ;
  int ecode2 = 0 ;
  SWFSound result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:newSWFSoundFromFileno fd flags ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "newSWFSoundFromFileno" "', argument " "1"" of type '" "int""'");
  } 
  arg1 = (int)(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFSoundFromFileno" "', argument " "2"" of type '" "byte""'");
  } 
  arg2 = (byte)(val2);
  result = (SWFSound)newSWFSoundFromFileno(arg1,arg2);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFSound_fromInput(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFInput arg1 ;
  byte arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  unsigned char val2 ;
  int ecode2 = 0 ;
  SWFSound result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:newSWFSound_fromInput input flags ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFInput,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFSound_fromInput" "', argument " "1"" of type '" "SWFInput""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "newSWFSound_fromInput" "', argument " "1"" of type '" "SWFInput""'");
    } else {
      arg1 = *((SWFInput *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFSound_fromInput" "', argument " "2"" of type '" "byte""'");
  } 
  arg2 = (byte)(val2);
  result = (SWFSound)newSWFSound_fromInput(arg1,arg2);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFSound_fromSoundStream(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFSoundStream arg1 = (SWFSoundStream) 0 ;
  int res1 ;
  SWFSound result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFSound_fromSoundStream stream ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFSound_fromSoundStream" "', argument " "1"" of type '" "SWFSoundStream""'"); 
  }
  result = (SWFSound)newSWFSound_fromSoundStream(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFSound(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFSound arg1 = (SWFSound) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFSound sound ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFSound" "', argument " "1"" of type '" "SWFSound""'"); 
  }
  destroySWFSound(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFSound_setInitialMp3Delay(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFSound arg1 = (SWFSound) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFSound_setInitialMp3Delay sound delay ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFSound_setInitialMp3Delay" "', argument " "1"" of type '" "SWFSound""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFSound_setInitialMp3Delay" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  SWFSound_setInitialMp3Delay(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFSoundInstance_setLoopInPoint(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFSoundInstance arg1 ;
  unsigned int arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFSoundInstance_setLoopInPoint instance point ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFSoundInstance,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFSoundInstance_setLoopInPoint" "', argument " "1"" of type '" "SWFSoundInstance""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFSoundInstance_setLoopInPoint" "', argument " "1"" of type '" "SWFSoundInstance""'");
    } else {
      arg1 = *((SWFSoundInstance *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFSoundInstance_setLoopInPoint" "', argument " "2"" of type '" "unsigned int""'");
  } 
  arg2 = (unsigned int)(val2);
  SWFSoundInstance_setLoopInPoint(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFSoundInstance_setLoopOutPoint(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFSoundInstance arg1 ;
  unsigned int arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFSoundInstance_setLoopOutPoint instance point ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFSoundInstance,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFSoundInstance_setLoopOutPoint" "', argument " "1"" of type '" "SWFSoundInstance""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFSoundInstance_setLoopOutPoint" "', argument " "1"" of type '" "SWFSoundInstance""'");
    } else {
      arg1 = *((SWFSoundInstance *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFSoundInstance_setLoopOutPoint" "', argument " "2"" of type '" "unsigned int""'");
  } 
  arg2 = (unsigned int)(val2);
  SWFSoundInstance_setLoopOutPoint(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFSoundInstance_setLoopCount(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFSoundInstance arg1 ;
  int arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFSoundInstance_setLoopCount instance count ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFSoundInstance,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFSoundInstance_setLoopCount" "', argument " "1"" of type '" "SWFSoundInstance""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFSoundInstance_setLoopCount" "', argument " "1"" of type '" "SWFSoundInstance""'");
    } else {
      arg1 = *((SWFSoundInstance *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFSoundInstance_setLoopCount" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  SWFSoundInstance_setLoopCount(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFSoundInstance_setNoMultiple(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFSoundInstance arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFSoundInstance_setNoMultiple instance ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFSoundInstance,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFSoundInstance_setNoMultiple" "', argument " "1"" of type '" "SWFSoundInstance""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFSoundInstance_setNoMultiple" "', argument " "1"" of type '" "SWFSoundInstance""'");
    } else {
      arg1 = *((SWFSoundInstance *)(argp1));
    }
  }
  SWFSoundInstance_setNoMultiple(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFCXform(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  int arg1 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  float arg5 ;
  float arg6 ;
  float arg7 ;
  float arg8 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  float val5 ;
  int ecode5 = 0 ;
  float val6 ;
  int ecode6 = 0 ;
  float val7 ;
  int ecode7 = 0 ;
  float val8 ;
  int ecode8 = 0 ;
  SWFCXform result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oooooooo:newSWFCXform rAdd gAdd bAdd aAdd rMult gMult bMult aMult ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "newSWFCXform" "', argument " "1"" of type '" "int""'");
  } 
  arg1 = (int)(val1);
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFCXform" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "newSWFCXform" "', argument " "3"" of type '" "int""'");
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "newSWFCXform" "', argument " "4"" of type '" "int""'");
  } 
  arg4 = (int)(val4);
  ecode5 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "newSWFCXform" "', argument " "5"" of type '" "float""'");
  } 
  arg5 = (float)(val5);
  ecode6 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[6], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "newSWFCXform" "', argument " "6"" of type '" "float""'");
  } 
  arg6 = (float)(val6);
  ecode7 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[7], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "newSWFCXform" "', argument " "7"" of type '" "float""'");
  } 
  arg7 = (float)(val7);
  ecode8 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[8], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "newSWFCXform" "', argument " "8"" of type '" "float""'");
  } 
  arg8 = (float)(val8);
  result = newSWFCXform(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFCXform *)memcpy((SWFCXform *)calloc(1,sizeof(SWFCXform)),&result,sizeof(SWFCXform)), SWIGTYPE_p_SWFCXform, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFAddCXform(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  int arg1 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  SWFCXform result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oooo:newSWFAddCXform rAdd gAdd bAdd aAdd ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "newSWFAddCXform" "', argument " "1"" of type '" "int""'");
  } 
  arg1 = (int)(val1);
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFAddCXform" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "newSWFAddCXform" "', argument " "3"" of type '" "int""'");
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "newSWFAddCXform" "', argument " "4"" of type '" "int""'");
  } 
  arg4 = (int)(val4);
  result = newSWFAddCXform(arg1,arg2,arg3,arg4);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFCXform *)memcpy((SWFCXform *)calloc(1,sizeof(SWFCXform)),&result,sizeof(SWFCXform)), SWIGTYPE_p_SWFCXform, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFMultCXform(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  float arg1 ;
  float arg2 ;
  float arg3 ;
  float arg4 ;
  float val1 ;
  int ecode1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  float val4 ;
  int ecode4 = 0 ;
  SWFCXform result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oooo:newSWFMultCXform rMult gMult bMult aMult ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "newSWFMultCXform" "', argument " "1"" of type '" "float""'");
  } 
  arg1 = (float)(val1);
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFMultCXform" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  ecode3 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "newSWFMultCXform" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = (float)(val3);
  ecode4 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "newSWFMultCXform" "', argument " "4"" of type '" "float""'");
  } 
  arg4 = (float)(val4);
  result = newSWFMultCXform(arg1,arg2,arg3,arg4);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFCXform *)memcpy((SWFCXform *)calloc(1,sizeof(SWFCXform)),&result,sizeof(SWFCXform)), SWIGTYPE_p_SWFCXform, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFCXform(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFCXform arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFCXform cXform ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFCXform,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFCXform" "', argument " "1"" of type '" "SWFCXform""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "destroySWFCXform" "', argument " "1"" of type '" "SWFCXform""'");
    } else {
      arg1 = *((SWFCXform *)(argp1));
    }
  }
  destroySWFCXform(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFCXform_setColorAdd(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFCXform arg1 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  int arg5 ;
  void *argp1 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooo:SWFCXform_setColorAdd cXform rAdd gAdd bAdd aAdd ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFCXform,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFCXform_setColorAdd" "', argument " "1"" of type '" "SWFCXform""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFCXform_setColorAdd" "', argument " "1"" of type '" "SWFCXform""'");
    } else {
      arg1 = *((SWFCXform *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFCXform_setColorAdd" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFCXform_setColorAdd" "', argument " "3"" of type '" "int""'");
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFCXform_setColorAdd" "', argument " "4"" of type '" "int""'");
  } 
  arg4 = (int)(val4);
  ecode5 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFCXform_setColorAdd" "', argument " "5"" of type '" "int""'");
  } 
  arg5 = (int)(val5);
  SWFCXform_setColorAdd(arg1,arg2,arg3,arg4,arg5);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFCXform_setColorMult(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFCXform arg1 ;
  float arg2 ;
  float arg3 ;
  float arg4 ;
  float arg5 ;
  void *argp1 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  float val4 ;
  int ecode4 = 0 ;
  float val5 ;
  int ecode5 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooo:SWFCXform_setColorMult cXform rMult gMult bMult aMult ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFCXform,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFCXform_setColorMult" "', argument " "1"" of type '" "SWFCXform""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFCXform_setColorMult" "', argument " "1"" of type '" "SWFCXform""'");
    } else {
      arg1 = *((SWFCXform *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFCXform_setColorMult" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  ecode3 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFCXform_setColorMult" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = (float)(val3);
  ecode4 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFCXform_setColorMult" "', argument " "4"" of type '" "float""'");
  } 
  arg4 = (float)(val4);
  ecode5 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFCXform_setColorMult" "', argument " "5"" of type '" "float""'");
  } 
  arg5 = (float)(val5);
  SWFCXform_setColorMult(arg1,arg2,arg3,arg4,arg5);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFAction(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  char *arg1 = (char *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  SWFAction result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFAction script ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_AsCharPtrAndSize(objv[1], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFAction" "', argument " "1"" of type '" "char const *""'");
  }
  arg1 = (char *)(buf1);
  result = (SWFAction)newSWFAction((char const *)arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return TCL_OK;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFAction_fromFile(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  char *arg1 = (char *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  SWFAction result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFAction_fromFile filename ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_AsCharPtrAndSize(objv[1], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFAction_fromFile" "', argument " "1"" of type '" "char const *""'");
  }
  arg1 = (char *)(buf1);
  result = (SWFAction)newSWFAction_fromFile((char const *)arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return TCL_OK;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFAction_compile(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFAction arg1 = (SWFAction) 0 ;
  int arg2 ;
  int *arg3 = (int *) 0 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFAction_compile action swfVersion length ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFAction_compile" "', argument " "1"" of type '" "SWFAction""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFAction_compile" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_int, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SWFAction_compile" "', argument " "3"" of type '" "int *""'"); 
  }
  arg3 = (int *)(argp3);
  result = (int)SWFAction_compile(arg1,arg2,arg3);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFAction(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFAction arg1 = (SWFAction) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFAction action ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFAction" "', argument " "1"" of type '" "SWFAction""'"); 
  }
  destroySWFAction(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFAction_getByteCode(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFAction arg1 = (SWFAction) 0 ;
  int *arg2 = (int *) 0 ;
  int res1 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  byte *result = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFAction_getByteCode action length ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFAction_getByteCode" "', argument " "1"" of type '" "SWFAction""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_int, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFAction_getByteCode" "', argument " "2"" of type '" "int *""'"); 
  }
  arg2 = (int *)(argp2);
  result = (byte *)SWFAction_getByteCode(arg1,arg2);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFInitAction(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFAction arg1 = (SWFAction) 0 ;
  int res1 ;
  SWFInitAction result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFInitAction action ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFInitAction" "', argument " "1"" of type '" "SWFAction""'"); 
  }
  result = (SWFInitAction)newSWFInitAction(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFInitAction_withId(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFAction arg1 = (SWFAction) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  SWFInitAction result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:newSWFInitAction_withId action id ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFInitAction_withId" "', argument " "1"" of type '" "SWFAction""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFInitAction_withId" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  result = (SWFInitAction)newSWFInitAction_withId(arg1,arg2);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFButton(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButton result;
  
  if (SWIG_GetArgs(interp, objc, objv,":newSWFButton ") == TCL_ERROR) SWIG_fail;
  result = (SWFButton)newSWFButton();
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFButton(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButton arg1 = (SWFButton) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFButton button ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFButton" "', argument " "1"" of type '" "SWFButton""'"); 
  }
  destroySWFButton(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButton_addCharacter(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButton arg1 = (SWFButton) 0 ;
  SWFCharacter arg2 = (SWFCharacter) 0 ;
  byte arg3 ;
  int res1 ;
  int res2 ;
  unsigned char val3 ;
  int ecode3 = 0 ;
  SWFButtonRecord result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFButton_addCharacter SWFButton SWFCharacter flags ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButton_addCharacter" "', argument " "1"" of type '" "SWFButton""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFButton_addCharacter" "', argument " "2"" of type '" "SWFCharacter""'"); 
  }
  ecode3 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFButton_addCharacter" "', argument " "3"" of type '" "byte""'");
  } 
  arg3 = (byte)(val3);
  result = (SWFButtonRecord)SWFButton_addCharacter(arg1,arg2,arg3);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButton_addAction(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButton arg1 = (SWFButton) 0 ;
  SWFAction arg2 = (SWFAction) 0 ;
  int arg3 ;
  int res1 ;
  int res2 ;
  int val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFButton_addAction button action flags ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButton_addAction" "', argument " "1"" of type '" "SWFButton""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFButton_addAction" "', argument " "2"" of type '" "SWFAction""'"); 
  }
  ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFButton_addAction" "', argument " "3"" of type '" "int""'");
  } 
  arg3 = (int)(val3);
  SWFButton_addAction(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButton_addSound(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButton arg1 = (SWFButton) 0 ;
  SWFSound arg2 = (SWFSound) 0 ;
  byte arg3 ;
  int res1 ;
  int res2 ;
  unsigned char val3 ;
  int ecode3 = 0 ;
  SWFSoundInstance result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFButton_addSound button action flags ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButton_addSound" "', argument " "1"" of type '" "SWFButton""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFButton_addSound" "', argument " "2"" of type '" "SWFSound""'"); 
  }
  ecode3 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFButton_addSound" "', argument " "3"" of type '" "byte""'");
  } 
  arg3 = (byte)(val3);
  result = SWFButton_addSound(arg1,arg2,arg3);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFSoundInstance *)memcpy((SWFSoundInstance *)calloc(1,sizeof(SWFSoundInstance)),&result,sizeof(SWFSoundInstance)), SWIGTYPE_p_SWFSoundInstance, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButton_setMenu(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButton arg1 = (SWFButton) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFButton_setMenu button flag ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButton_setMenu" "', argument " "1"" of type '" "SWFButton""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFButton_setMenu" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  SWFButton_setMenu(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButton_setScalingGrid(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButton arg1 = (SWFButton) 0 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  int arg5 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooo:SWFButton_setScalingGrid b x y w h ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButton_setScalingGrid" "', argument " "1"" of type '" "SWFButton""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFButton_setScalingGrid" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFButton_setScalingGrid" "', argument " "3"" of type '" "int""'");
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFButton_setScalingGrid" "', argument " "4"" of type '" "int""'");
  } 
  arg4 = (int)(val4);
  ecode5 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFButton_setScalingGrid" "', argument " "5"" of type '" "int""'");
  } 
  arg5 = (int)(val5);
  SWFButton_setScalingGrid(arg1,arg2,arg3,arg4,arg5);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButton_removeScalingGrid(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButton arg1 = (SWFButton) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFButton_removeScalingGrid b ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButton_removeScalingGrid" "', argument " "1"" of type '" "SWFButton""'"); 
  }
  SWFButton_removeScalingGrid(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButtonRecord_setDepth(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButtonRecord arg1 = (SWFButtonRecord) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFButtonRecord_setDepth b depth ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButtonRecord_setDepth" "', argument " "1"" of type '" "SWFButtonRecord""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFButtonRecord_setDepth" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  SWFButtonRecord_setDepth(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButtonRecord_addFilter(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButtonRecord arg1 = (SWFButtonRecord) 0 ;
  SWFFilter arg2 = (SWFFilter) 0 ;
  int res1 ;
  int res2 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFButtonRecord_addFilter b f ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButtonRecord_addFilter" "', argument " "1"" of type '" "SWFButtonRecord""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFButtonRecord_addFilter" "', argument " "2"" of type '" "SWFFilter""'"); 
  }
  SWFButtonRecord_addFilter(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButtonRecord_setBlendMode(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButtonRecord arg1 = (SWFButtonRecord) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFButtonRecord_setBlendMode b mode ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButtonRecord_setBlendMode" "', argument " "1"" of type '" "SWFButtonRecord""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFButtonRecord_setBlendMode" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  SWFButtonRecord_setBlendMode(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButtonRecord_move(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButtonRecord arg1 = (SWFButtonRecord) 0 ;
  double arg2 ;
  double arg3 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFButtonRecord_move record x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButtonRecord_move" "', argument " "1"" of type '" "SWFButtonRecord""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFButtonRecord_move" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFButtonRecord_move" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  SWFButtonRecord_move(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButtonRecord_moveTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButtonRecord arg1 = (SWFButtonRecord) 0 ;
  double arg2 ;
  double arg3 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFButtonRecord_moveTo record x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButtonRecord_moveTo" "', argument " "1"" of type '" "SWFButtonRecord""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFButtonRecord_moveTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFButtonRecord_moveTo" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  SWFButtonRecord_moveTo(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButtonRecord_rotate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButtonRecord arg1 = (SWFButtonRecord) 0 ;
  double arg2 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFButtonRecord_rotate record deg ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButtonRecord_rotate" "', argument " "1"" of type '" "SWFButtonRecord""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFButtonRecord_rotate" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFButtonRecord_rotate(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButtonRecord_rotateTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButtonRecord arg1 = (SWFButtonRecord) 0 ;
  double arg2 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFButtonRecord_rotateTo record deg ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButtonRecord_rotateTo" "', argument " "1"" of type '" "SWFButtonRecord""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFButtonRecord_rotateTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFButtonRecord_rotateTo(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButtonRecord_scale(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButtonRecord arg1 = (SWFButtonRecord) 0 ;
  double arg2 ;
  double arg3 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFButtonRecord_scale record scaleX scaleY ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButtonRecord_scale" "', argument " "1"" of type '" "SWFButtonRecord""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFButtonRecord_scale" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFButtonRecord_scale" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  SWFButtonRecord_scale(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButtonRecord_scaleTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButtonRecord arg1 = (SWFButtonRecord) 0 ;
  double arg2 ;
  double arg3 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFButtonRecord_scaleTo record scaleX scaleY ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButtonRecord_scaleTo" "', argument " "1"" of type '" "SWFButtonRecord""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFButtonRecord_scaleTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFButtonRecord_scaleTo" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  SWFButtonRecord_scaleTo(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButtonRecord_skewX(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButtonRecord arg1 = (SWFButtonRecord) 0 ;
  double arg2 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFButtonRecord_skewX record skewX ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButtonRecord_skewX" "', argument " "1"" of type '" "SWFButtonRecord""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFButtonRecord_skewX" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFButtonRecord_skewX(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButtonRecord_skewXTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButtonRecord arg1 = (SWFButtonRecord) 0 ;
  double arg2 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFButtonRecord_skewXTo record skewX ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButtonRecord_skewXTo" "', argument " "1"" of type '" "SWFButtonRecord""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFButtonRecord_skewXTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFButtonRecord_skewXTo(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButtonRecord_skewY(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButtonRecord arg1 = (SWFButtonRecord) 0 ;
  double arg2 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFButtonRecord_skewY record skewY ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButtonRecord_skewY" "', argument " "1"" of type '" "SWFButtonRecord""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFButtonRecord_skewY" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFButtonRecord_skewY(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFButtonRecord_skewYTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFButtonRecord arg1 = (SWFButtonRecord) 0 ;
  double arg2 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFButtonRecord_skewYTo record skewY ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFButtonRecord_skewYTo" "', argument " "1"" of type '" "SWFButtonRecord""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFButtonRecord_skewYTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFButtonRecord_skewYTo(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFVideoStream_fromFile(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  FILE *arg1 = (FILE *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SWFVideoStream result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFVideoStream_fromFile f ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_FILE, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFVideoStream_fromFile" "', argument " "1"" of type '" "FILE *""'"); 
  }
  arg1 = (FILE *)(argp1);
  result = (SWFVideoStream)newSWFVideoStream_fromFile(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFVideoStream_fromInput(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFInput arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  SWFVideoStream result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFVideoStream_fromInput input ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFInput,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFVideoStream_fromInput" "', argument " "1"" of type '" "SWFInput""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "newSWFVideoStream_fromInput" "', argument " "1"" of type '" "SWFInput""'");
    } else {
      arg1 = *((SWFInput *)(argp1));
    }
  }
  result = (SWFVideoStream)newSWFVideoStream_fromInput(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFVideoStream(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFVideoStream result;
  
  if (SWIG_GetArgs(interp, objc, objv,":newSWFVideoStream ") == TCL_ERROR) SWIG_fail;
  result = (SWFVideoStream)newSWFVideoStream();
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFVideoStream_setDimension(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFVideoStream arg1 = (SWFVideoStream) 0 ;
  int arg2 ;
  int arg3 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFVideoStream_setDimension stream width height ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFVideoStream_setDimension" "', argument " "1"" of type '" "SWFVideoStream""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFVideoStream_setDimension" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFVideoStream_setDimension" "', argument " "3"" of type '" "int""'");
  } 
  arg3 = (int)(val3);
  SWFVideoStream_setDimension(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFVideoStream_getNumFrames(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFVideoStream arg1 = (SWFVideoStream) 0 ;
  int res1 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFVideoStream_getNumFrames stream ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFVideoStream_getNumFrames" "', argument " "1"" of type '" "SWFVideoStream""'"); 
  }
  result = (int)SWFVideoStream_getNumFrames(arg1);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFVideoStream_hasAudio(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFVideoStream arg1 = (SWFVideoStream) 0 ;
  int res1 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFVideoStream_hasAudio stream ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFVideoStream_hasAudio" "', argument " "1"" of type '" "SWFVideoStream""'"); 
  }
  result = (int)SWFVideoStream_hasAudio(arg1);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFVideoStream_setFrameMode(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFVideoStream arg1 = (SWFVideoStream) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFVideoStream_setFrameMode stream mode ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFVideoStream_setFrameMode" "', argument " "1"" of type '" "SWFVideoStream""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFVideoStream_setFrameMode" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  result = (int)SWFVideoStream_setFrameMode(arg1,arg2);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFVideoStream_nextFrame(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFVideoStream arg1 = (SWFVideoStream) 0 ;
  int res1 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFVideoStream_nextFrame stream ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFVideoStream_nextFrame" "', argument " "1"" of type '" "SWFVideoStream""'"); 
  }
  result = (int)SWFVideoStream_nextFrame(arg1);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFVideoStream_seek(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFVideoStream arg1 = (SWFVideoStream) 0 ;
  int arg2 ;
  int arg3 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFVideoStream_seek stream frame whence ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFVideoStream_seek" "', argument " "1"" of type '" "SWFVideoStream""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFVideoStream_seek" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFVideoStream_seek" "', argument " "3"" of type '" "int""'");
  } 
  arg3 = (int)(val3);
  result = (int)SWFVideoStream_seek(arg1,arg2,arg3);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFVideoStream(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFVideoStream arg1 = (SWFVideoStream) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFVideoStream stream ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFVideoStream" "', argument " "1"" of type '" "SWFVideoStream""'"); 
  }
  destroySWFVideoStream(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFSprite(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFSprite result;
  
  if (SWIG_GetArgs(interp, objc, objv,":newSWFSprite ") == TCL_ERROR) SWIG_fail;
  result = newSWFSprite();
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFSprite *)memcpy((SWFSprite *)calloc(1,sizeof(SWFSprite)),&result,sizeof(SWFSprite)), SWIGTYPE_p_SWFSprite, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFSprite(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFSprite arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFSprite sprite ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFSprite,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFSprite" "', argument " "1"" of type '" "SWFSprite""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "destroySWFSprite" "', argument " "1"" of type '" "SWFSprite""'");
    } else {
      arg1 = *((SWFSprite *)(argp1));
    }
  }
  destroySWFSprite(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFSprite_addBlock(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFSprite arg1 ;
  SWFBlock arg2 = (SWFBlock) 0 ;
  void *argp1 ;
  int res1 = 0 ;
  int res2 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFSprite_addBlock sprite block ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFSprite,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFSprite_addBlock" "', argument " "1"" of type '" "SWFSprite""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFSprite_addBlock" "', argument " "1"" of type '" "SWFSprite""'");
    } else {
      arg1 = *((SWFSprite *)(argp1));
    }
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFSprite_addBlock" "', argument " "2"" of type '" "SWFBlock""'"); 
  }
  SWFSprite_addBlock(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFPosition(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMatrix arg1 = (SWFMatrix) 0 ;
  int res1 ;
  SWFPosition result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFPosition matrix ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFPosition" "', argument " "1"" of type '" "SWFMatrix""'"); 
  }
  result = newSWFPosition(arg1);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFPosition *)memcpy((SWFPosition *)calloc(1,sizeof(SWFPosition)),&result,sizeof(SWFPosition)), SWIGTYPE_p_SWFPosition, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFPosition(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFPosition position ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFPosition" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "destroySWFPosition" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  destroySWFPosition(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_skewX(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  double arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFPosition_skewX position x ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_skewX" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_skewX" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFPosition_skewX" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFPosition_skewX(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_skewXTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  double arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFPosition_skewXTo position x ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_skewXTo" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_skewXTo" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFPosition_skewXTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFPosition_skewXTo(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_skewY(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  double arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFPosition_skewY position y ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_skewY" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_skewY" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFPosition_skewY" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFPosition_skewY(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_skewYTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  double arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFPosition_skewYTo position y ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_skewYTo" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_skewYTo" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFPosition_skewYTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFPosition_skewYTo(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_scaleX(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  double arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFPosition_scaleX position x ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_scaleX" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_scaleX" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFPosition_scaleX" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFPosition_scaleX(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_scaleXTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  double arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFPosition_scaleXTo position x ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_scaleXTo" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_scaleXTo" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFPosition_scaleXTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFPosition_scaleXTo(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_scaleY(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  double arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFPosition_scaleY position y ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_scaleY" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_scaleY" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFPosition_scaleY" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFPosition_scaleY(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_scaleYTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  double arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFPosition_scaleYTo position y ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_scaleYTo" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_scaleYTo" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFPosition_scaleYTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFPosition_scaleYTo(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_scaleXY(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  double arg2 ;
  double arg3 ;
  void *argp1 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFPosition_scaleXY position x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_scaleXY" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_scaleXY" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFPosition_scaleXY" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFPosition_scaleXY" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  SWFPosition_scaleXY(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_scaleXYTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  double arg2 ;
  double arg3 ;
  void *argp1 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFPosition_scaleXYTo position x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_scaleXYTo" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_scaleXYTo" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFPosition_scaleXYTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFPosition_scaleXYTo" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  SWFPosition_scaleXYTo(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_getMatrix(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  SWFMatrix result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFPosition_getMatrix p ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_getMatrix" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_getMatrix" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  result = (SWFMatrix)SWFPosition_getMatrix(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_setMatrix(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  double arg2 ;
  double arg3 ;
  double arg4 ;
  double arg5 ;
  double arg6 ;
  double arg7 ;
  void *argp1 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooooo:SWFPosition_setMatrix p a b c d x y ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_setMatrix" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_setMatrix" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFPosition_setMatrix" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFPosition_setMatrix" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFPosition_setMatrix" "', argument " "4"" of type '" "double""'");
  } 
  arg4 = (double)(val4);
  ecode5 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFPosition_setMatrix" "', argument " "5"" of type '" "double""'");
  } 
  arg5 = (double)(val5);
  ecode6 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[6], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SWFPosition_setMatrix" "', argument " "6"" of type '" "double""'");
  } 
  arg6 = (double)(val6);
  ecode7 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[7], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SWFPosition_setMatrix" "', argument " "7"" of type '" "double""'");
  } 
  arg7 = (double)(val7);
  SWFPosition_setMatrix(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_rotate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  double arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFPosition_rotate position degrees ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_rotate" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_rotate" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFPosition_rotate" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFPosition_rotate(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_rotateTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  double arg2 ;
  void *argp1 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFPosition_rotateTo position degrees ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_rotateTo" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_rotateTo" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFPosition_rotateTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFPosition_rotateTo(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_move(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  double arg2 ;
  double arg3 ;
  void *argp1 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFPosition_move position x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_move" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_move" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFPosition_move" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFPosition_move" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  SWFPosition_move(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_moveTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  double arg2 ;
  double arg3 ;
  void *argp1 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFPosition_moveTo position x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_moveTo" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_moveTo" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFPosition_moveTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFPosition_moveTo" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  SWFPosition_moveTo(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_getRotation(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  double result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFPosition_getRotation position ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_getRotation" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_getRotation" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  result = (double)SWFPosition_getRotation(arg1);
  Tcl_SetObjResult(interp,SWIG_From_double((double)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_getX(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  double result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFPosition_getX position ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_getX" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_getX" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  result = (double)SWFPosition_getX(arg1);
  Tcl_SetObjResult(interp,SWIG_From_double((double)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_getY(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  double result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFPosition_getY position ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_getY" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_getY" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  result = (double)SWFPosition_getY(arg1);
  Tcl_SetObjResult(interp,SWIG_From_double((double)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_getXY(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  double *arg2 = (double *) 0 ;
  double *arg3 = (double *) 0 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFPosition_getXY position outX outY ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_getXY" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_getXY" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_double, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFPosition_getXY" "', argument " "2"" of type '" "double *""'"); 
  }
  arg2 = (double *)(argp2);
  res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_double, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SWFPosition_getXY" "', argument " "3"" of type '" "double *""'"); 
  }
  arg3 = (double *)(argp3);
  SWFPosition_getXY(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_getXScale(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  double result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFPosition_getXScale position ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_getXScale" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_getXScale" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  result = (double)SWFPosition_getXScale(arg1);
  Tcl_SetObjResult(interp,SWIG_From_double((double)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_getYScale(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  double result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFPosition_getYScale position ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_getYScale" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_getYScale" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  result = (double)SWFPosition_getYScale(arg1);
  Tcl_SetObjResult(interp,SWIG_From_double((double)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_getXYScale(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  double *arg2 = (double *) 0 ;
  double *arg3 = (double *) 0 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFPosition_getXYScale position outXScale outYScale ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_getXYScale" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_getXYScale" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_double, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFPosition_getXYScale" "', argument " "2"" of type '" "double *""'"); 
  }
  arg2 = (double *)(argp2);
  res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_double, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SWFPosition_getXYScale" "', argument " "3"" of type '" "double *""'"); 
  }
  arg3 = (double *)(argp3);
  SWFPosition_getXYScale(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_getXSkew(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  double result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFPosition_getXSkew position ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_getXSkew" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_getXSkew" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  result = (double)SWFPosition_getXSkew(arg1);
  Tcl_SetObjResult(interp,SWIG_From_double((double)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_getYSkew(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  double result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFPosition_getYSkew position ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_getYSkew" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_getYSkew" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  result = (double)SWFPosition_getYSkew(arg1);
  Tcl_SetObjResult(interp,SWIG_From_double((double)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFPosition_getXYSkew(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPosition arg1 ;
  double *arg2 = (double *) 0 ;
  double *arg3 = (double *) 0 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFPosition_getXYSkew position outXSkew outYSkew ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFPosition,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFPosition_getXYSkew" "', argument " "1"" of type '" "SWFPosition""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFPosition_getXYSkew" "', argument " "1"" of type '" "SWFPosition""'");
    } else {
      arg1 = *((SWFPosition *)(argp1));
    }
  }
  res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_double, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFPosition_getXYSkew" "', argument " "2"" of type '" "double *""'"); 
  }
  arg2 = (double *)(argp2);
  res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_double, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SWFPosition_getXYSkew" "', argument " "3"" of type '" "double *""'"); 
  }
  arg3 = (double *)(argp3);
  SWFPosition_getXYSkew(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_getCharacter(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  int res1 ;
  SWFCharacter result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFDisplayItem_getCharacter item ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_getCharacter" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  result = (SWFCharacter)SWFDisplayItem_getCharacter(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_endMask(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFDisplayItem_endMask item ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_endMask" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  SWFDisplayItem_endMask(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_move(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  double arg2 ;
  double arg3 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFDisplayItem_move item x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_move" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFDisplayItem_move" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFDisplayItem_move" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  SWFDisplayItem_move(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_moveTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  double arg2 ;
  double arg3 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFDisplayItem_moveTo item x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_moveTo" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFDisplayItem_moveTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFDisplayItem_moveTo" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  SWFDisplayItem_moveTo(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_rotate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  double arg2 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFDisplayItem_rotate item degrees ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_rotate" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFDisplayItem_rotate" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFDisplayItem_rotate(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_rotateTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  double arg2 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFDisplayItem_rotateTo item degrees ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_rotateTo" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFDisplayItem_rotateTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFDisplayItem_rotateTo(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_scale(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  double arg2 ;
  double arg3 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFDisplayItem_scale item xScale yScale ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_scale" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFDisplayItem_scale" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFDisplayItem_scale" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  SWFDisplayItem_scale(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_scaleTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  double arg2 ;
  double arg3 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFDisplayItem_scaleTo item xScale yScale ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_scaleTo" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFDisplayItem_scaleTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFDisplayItem_scaleTo" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  SWFDisplayItem_scaleTo(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_skewX(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  double arg2 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFDisplayItem_skewX item x ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_skewX" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFDisplayItem_skewX" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFDisplayItem_skewX(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_skewXTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  double arg2 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFDisplayItem_skewXTo item x ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_skewXTo" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFDisplayItem_skewXTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFDisplayItem_skewXTo(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_skewY(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  double arg2 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFDisplayItem_skewY item y ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_skewY" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFDisplayItem_skewY" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFDisplayItem_skewY(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_skewYTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  double arg2 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFDisplayItem_skewYTo item y ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_skewYTo" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFDisplayItem_skewYTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFDisplayItem_skewYTo(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_getPosition(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  double *arg2 = (double *) 0 ;
  double *arg3 = (double *) 0 ;
  int res1 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFDisplayItem_getPosition item x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_getPosition" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_double, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFDisplayItem_getPosition" "', argument " "2"" of type '" "double *""'"); 
  }
  arg2 = (double *)(argp2);
  res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_double, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SWFDisplayItem_getPosition" "', argument " "3"" of type '" "double *""'"); 
  }
  arg3 = (double *)(argp3);
  SWFDisplayItem_getPosition(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_getRotation(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  double *arg2 = (double *) 0 ;
  int res1 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFDisplayItem_getRotation item degrees ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_getRotation" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_double, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFDisplayItem_getRotation" "', argument " "2"" of type '" "double *""'"); 
  }
  arg2 = (double *)(argp2);
  SWFDisplayItem_getRotation(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_getScale(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  double *arg2 = (double *) 0 ;
  double *arg3 = (double *) 0 ;
  int res1 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFDisplayItem_getScale item xScale yScale ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_getScale" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_double, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFDisplayItem_getScale" "', argument " "2"" of type '" "double *""'"); 
  }
  arg2 = (double *)(argp2);
  res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_double, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SWFDisplayItem_getScale" "', argument " "3"" of type '" "double *""'"); 
  }
  arg3 = (double *)(argp3);
  SWFDisplayItem_getScale(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_getSkew(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  double *arg2 = (double *) 0 ;
  double *arg3 = (double *) 0 ;
  int res1 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFDisplayItem_getSkew item xSkew ySkew ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_getSkew" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_double, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFDisplayItem_getSkew" "', argument " "2"" of type '" "double *""'"); 
  }
  arg2 = (double *)(argp2);
  res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_double, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SWFDisplayItem_getSkew" "', argument " "3"" of type '" "double *""'"); 
  }
  arg3 = (double *)(argp3);
  SWFDisplayItem_getSkew(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_getMatrix(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  int res1 ;
  SWFMatrix result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFDisplayItem_getMatrix item ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_getMatrix" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  result = (SWFMatrix)SWFDisplayItem_getMatrix(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_setMatrix(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  double arg2 ;
  double arg3 ;
  double arg4 ;
  double arg5 ;
  double arg6 ;
  double arg7 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooooo:SWFDisplayItem_setMatrix i a b c d x y ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_setMatrix" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFDisplayItem_setMatrix" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFDisplayItem_setMatrix" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFDisplayItem_setMatrix" "', argument " "4"" of type '" "double""'");
  } 
  arg4 = (double)(val4);
  ecode5 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFDisplayItem_setMatrix" "', argument " "5"" of type '" "double""'");
  } 
  arg5 = (double)(val5);
  ecode6 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[6], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SWFDisplayItem_setMatrix" "', argument " "6"" of type '" "double""'");
  } 
  arg6 = (double)(val6);
  ecode7 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[7], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SWFDisplayItem_setMatrix" "', argument " "7"" of type '" "double""'");
  } 
  arg7 = (double)(val7);
  SWFDisplayItem_setMatrix(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_getDepth(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  int res1 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFDisplayItem_getDepth item ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_getDepth" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  result = (int)SWFDisplayItem_getDepth(arg1);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_setDepth(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFDisplayItem_setDepth item depth ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_setDepth" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFDisplayItem_setDepth" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  SWFDisplayItem_setDepth(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_remove(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFDisplayItem_remove item ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_remove" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  SWFDisplayItem_remove(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_setName(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  char *arg2 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFDisplayItem_setName item name ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_setName" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFDisplayItem_setName" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  SWFDisplayItem_setName(arg1,(char const *)arg2);
  
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_setMaskLevel(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFDisplayItem_setMaskLevel item masklevel ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_setMaskLevel" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFDisplayItem_setMaskLevel" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  SWFDisplayItem_setMaskLevel(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_setRatio(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFDisplayItem_setRatio item ratio ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_setRatio" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFDisplayItem_setRatio" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFDisplayItem_setRatio(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_setCXform(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  SWFCXform arg2 ;
  int res1 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFDisplayItem_setCXform item cXform ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_setCXform" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  {
    res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_SWFCXform,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFDisplayItem_setCXform" "', argument " "2"" of type '" "SWFCXform""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFDisplayItem_setCXform" "', argument " "2"" of type '" "SWFCXform""'");
    } else {
      arg2 = *((SWFCXform *)(argp2));
    }
  }
  SWFDisplayItem_setCXform(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_setColorAdd(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  int arg5 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooo:SWFDisplayItem_setColorAdd item r g b a ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_setColorAdd" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFDisplayItem_setColorAdd" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFDisplayItem_setColorAdd" "', argument " "3"" of type '" "int""'");
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFDisplayItem_setColorAdd" "', argument " "4"" of type '" "int""'");
  } 
  arg4 = (int)(val4);
  ecode5 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFDisplayItem_setColorAdd" "', argument " "5"" of type '" "int""'");
  } 
  arg5 = (int)(val5);
  SWFDisplayItem_setColorAdd(arg1,arg2,arg3,arg4,arg5);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_setColorMult(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  float arg2 ;
  float arg3 ;
  float arg4 ;
  float arg5 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  float val4 ;
  int ecode4 = 0 ;
  float val5 ;
  int ecode5 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooo:SWFDisplayItem_setColorMult item r g b a ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_setColorMult" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFDisplayItem_setColorMult" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  ecode3 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFDisplayItem_setColorMult" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = (float)(val3);
  ecode4 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFDisplayItem_setColorMult" "', argument " "4"" of type '" "float""'");
  } 
  arg4 = (float)(val4);
  ecode5 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFDisplayItem_setColorMult" "', argument " "5"" of type '" "float""'");
  } 
  arg5 = (float)(val5);
  SWFDisplayItem_setColorMult(arg1,arg2,arg3,arg4,arg5);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_addAction(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  SWFAction arg2 = (SWFAction) 0 ;
  int arg3 ;
  int res1 ;
  int res2 ;
  int val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFDisplayItem_addAction item action flags ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_addAction" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFDisplayItem_addAction" "', argument " "2"" of type '" "SWFAction""'"); 
  }
  ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFDisplayItem_addAction" "', argument " "3"" of type '" "int""'");
  } 
  arg3 = (int)(val3);
  SWFDisplayItem_addAction(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_cacheAsBitmap(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFDisplayItem_cacheAsBitmap item flag ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_cacheAsBitmap" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFDisplayItem_cacheAsBitmap" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  SWFDisplayItem_cacheAsBitmap(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_setBlendMode(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFDisplayItem_setBlendMode item mode ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_setBlendMode" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFDisplayItem_setBlendMode" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  SWFDisplayItem_setBlendMode(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFFill(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFillStyle arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  SWFFill result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFFill fillstyle ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFFillStyle,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFFill" "', argument " "1"" of type '" "SWFFillStyle""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "newSWFFill" "', argument " "1"" of type '" "SWFFillStyle""'");
    } else {
      arg1 = *((SWFFillStyle *)(argp1));
    }
  }
  result = (SWFFill)newSWFFill(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFFill(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFill arg1 = (SWFFill) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFFill fill ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFFill" "', argument " "1"" of type '" "SWFFill""'"); 
  }
  destroySWFFill(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFill_getFillStyle(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFill arg1 = (SWFFill) 0 ;
  int res1 ;
  SWFFillStyle result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFFill_getFillStyle fill ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFill_getFillStyle" "', argument " "1"" of type '" "SWFFill""'"); 
  }
  result = SWFFill_getFillStyle(arg1);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFFillStyle *)memcpy((SWFFillStyle *)calloc(1,sizeof(SWFFillStyle)),&result,sizeof(SWFFillStyle)), SWIGTYPE_p_SWFFillStyle, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFill_skewX(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFill arg1 = (SWFFill) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFFill_skewX fill x ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFill_skewX" "', argument " "1"" of type '" "SWFFill""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFFill_skewX" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFFill_skewX(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFill_skewXTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFill arg1 = (SWFFill) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFFill_skewXTo fill x ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFill_skewXTo" "', argument " "1"" of type '" "SWFFill""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFFill_skewXTo" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFFill_skewXTo(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFill_skewY(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFill arg1 = (SWFFill) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFFill_skewY fill y ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFill_skewY" "', argument " "1"" of type '" "SWFFill""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFFill_skewY" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFFill_skewY(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFill_skewYTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFill arg1 = (SWFFill) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFFill_skewYTo fill y ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFill_skewYTo" "', argument " "1"" of type '" "SWFFill""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFFill_skewYTo" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFFill_skewYTo(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFill_scaleX(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFill arg1 = (SWFFill) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFFill_scaleX fill x ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFill_scaleX" "', argument " "1"" of type '" "SWFFill""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFFill_scaleX" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFFill_scaleX(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFill_scaleXTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFill arg1 = (SWFFill) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFFill_scaleXTo fill x ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFill_scaleXTo" "', argument " "1"" of type '" "SWFFill""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFFill_scaleXTo" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFFill_scaleXTo(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFill_scaleY(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFill arg1 = (SWFFill) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFFill_scaleY fill y ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFill_scaleY" "', argument " "1"" of type '" "SWFFill""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFFill_scaleY" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFFill_scaleY(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFill_scaleYTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFill arg1 = (SWFFill) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFFill_scaleYTo fill y ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFill_scaleYTo" "', argument " "1"" of type '" "SWFFill""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFFill_scaleYTo" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFFill_scaleYTo(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFill_scaleXY(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFill arg1 = (SWFFill) 0 ;
  float arg2 ;
  float arg3 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFFill_scaleXY fill x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFill_scaleXY" "', argument " "1"" of type '" "SWFFill""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFFill_scaleXY" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  ecode3 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFFill_scaleXY" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = (float)(val3);
  SWFFill_scaleXY(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFill_scaleXYTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFill arg1 = (SWFFill) 0 ;
  float arg2 ;
  float arg3 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFFill_scaleXYTo fill x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFill_scaleXYTo" "', argument " "1"" of type '" "SWFFill""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFFill_scaleXYTo" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  ecode3 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFFill_scaleXYTo" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = (float)(val3);
  SWFFill_scaleXYTo(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFill_rotate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFill arg1 = (SWFFill) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFFill_rotate fill degrees ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFill_rotate" "', argument " "1"" of type '" "SWFFill""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFFill_rotate" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFFill_rotate(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFill_rotateTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFill arg1 = (SWFFill) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFFill_rotateTo fill degrees ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFill_rotateTo" "', argument " "1"" of type '" "SWFFill""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFFill_rotateTo" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFFill_rotateTo(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFill_move(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFill arg1 = (SWFFill) 0 ;
  float arg2 ;
  float arg3 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFFill_move fill x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFill_move" "', argument " "1"" of type '" "SWFFill""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFFill_move" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  ecode3 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFFill_move" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = (float)(val3);
  SWFFill_move(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFill_moveTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFill arg1 = (SWFFill) 0 ;
  float arg2 ;
  float arg3 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFFill_moveTo fill x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFill_moveTo" "', argument " "1"" of type '" "SWFFill""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFFill_moveTo" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  ecode3 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFFill_moveTo" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = (float)(val3);
  SWFFill_moveTo(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFFill_setMatrix(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFill arg1 = (SWFFill) 0 ;
  float arg2 ;
  float arg3 ;
  float arg4 ;
  float arg5 ;
  float arg6 ;
  float arg7 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  float val4 ;
  int ecode4 = 0 ;
  float val5 ;
  int ecode5 = 0 ;
  float val6 ;
  int ecode6 = 0 ;
  float val7 ;
  int ecode7 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooooo:SWFFill_setMatrix fill a b c d x y ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFFill_setMatrix" "', argument " "1"" of type '" "SWFFill""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFFill_setMatrix" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  ecode3 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFFill_setMatrix" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = (float)(val3);
  ecode4 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFFill_setMatrix" "', argument " "4"" of type '" "float""'");
  } 
  arg4 = (float)(val4);
  ecode5 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFFill_setMatrix" "', argument " "5"" of type '" "float""'");
  } 
  arg5 = (float)(val5);
  ecode6 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[6], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SWFFill_setMatrix" "', argument " "6"" of type '" "float""'");
  } 
  arg6 = (float)(val6);
  ecode7 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[7], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SWFFill_setMatrix" "', argument " "7"" of type '" "float""'");
  } 
  arg7 = (float)(val7);
  SWFFill_setMatrix(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_setLine(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  unsigned short arg2 ;
  byte arg3 ;
  byte arg4 ;
  byte arg5 ;
  byte arg6 ;
  int res1 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  unsigned char val3 ;
  int ecode3 = 0 ;
  unsigned char val4 ;
  int ecode4 = 0 ;
  unsigned char val5 ;
  int ecode5 = 0 ;
  unsigned char val6 ;
  int ecode6 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oooooo:SWFShape_setLine shape width r g b a ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_setLine" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFShape_setLine" "', argument " "2"" of type '" "unsigned short""'");
  } 
  arg2 = (unsigned short)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_setLine" "', argument " "3"" of type '" "byte""'");
  } 
  arg3 = (byte)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFShape_setLine" "', argument " "4"" of type '" "byte""'");
  } 
  arg4 = (byte)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFShape_setLine" "', argument " "5"" of type '" "byte""'");
  } 
  arg5 = (byte)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[6], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SWFShape_setLine" "', argument " "6"" of type '" "byte""'");
  } 
  arg6 = (byte)(val6);
  SWFShape_setLine(arg1,arg2,arg3,arg4,arg5,arg6);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_setLine2Filled(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  unsigned short arg2 ;
  SWFFillStyle arg3 ;
  int arg4 ;
  float arg5 ;
  int res1 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  float val5 ;
  int ecode5 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooo:SWFShape_setLine2Filled shape width fill flags miterLimit ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_setLine2Filled" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFShape_setLine2Filled" "', argument " "2"" of type '" "unsigned short""'");
  } 
  arg2 = (unsigned short)(val2);
  {
    res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_SWFFillStyle,  0 );
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SWFShape_setLine2Filled" "', argument " "3"" of type '" "SWFFillStyle""'"); 
    }  
    if (!argp3) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SWFShape_setLine2Filled" "', argument " "3"" of type '" "SWFFillStyle""'");
    } else {
      arg3 = *((SWFFillStyle *)(argp3));
    }
  }
  ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFShape_setLine2Filled" "', argument " "4"" of type '" "int""'");
  } 
  arg4 = (int)(val4);
  ecode5 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFShape_setLine2Filled" "', argument " "5"" of type '" "float""'");
  } 
  arg5 = (float)(val5);
  SWFShape_setLine2Filled(arg1,arg2,arg3,arg4,arg5);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_setLine2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  unsigned short arg2 ;
  byte arg3 ;
  byte arg4 ;
  byte arg5 ;
  byte arg6 ;
  int arg7 ;
  float arg8 ;
  int res1 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  unsigned char val3 ;
  int ecode3 = 0 ;
  unsigned char val4 ;
  int ecode4 = 0 ;
  unsigned char val5 ;
  int ecode5 = 0 ;
  unsigned char val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  float val8 ;
  int ecode8 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oooooooo:SWFShape_setLine2 shape width r g b a flags miterLimit ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_setLine2" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFShape_setLine2" "', argument " "2"" of type '" "unsigned short""'");
  } 
  arg2 = (unsigned short)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_setLine2" "', argument " "3"" of type '" "byte""'");
  } 
  arg3 = (byte)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFShape_setLine2" "', argument " "4"" of type '" "byte""'");
  } 
  arg4 = (byte)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFShape_setLine2" "', argument " "5"" of type '" "byte""'");
  } 
  arg5 = (byte)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[6], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SWFShape_setLine2" "', argument " "6"" of type '" "byte""'");
  } 
  arg6 = (byte)(val6);
  ecode7 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[7], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SWFShape_setLine2" "', argument " "7"" of type '" "int""'");
  } 
  arg7 = (int)(val7);
  ecode8 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[8], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SWFShape_setLine2" "', argument " "8"" of type '" "float""'");
  } 
  arg8 = (float)(val8);
  SWFShape_setLine2(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_addSolidFill(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  byte arg2 ;
  byte arg3 ;
  byte arg4 ;
  byte arg5 ;
  int res1 ;
  unsigned char val2 ;
  int ecode2 = 0 ;
  unsigned char val3 ;
  int ecode3 = 0 ;
  unsigned char val4 ;
  int ecode4 = 0 ;
  unsigned char val5 ;
  int ecode5 = 0 ;
  SWFFill result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooo:SWFShape_addSolidFill shape r g b a ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_addSolidFill" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFShape_addSolidFill" "', argument " "2"" of type '" "byte""'");
  } 
  arg2 = (byte)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_addSolidFill" "', argument " "3"" of type '" "byte""'");
  } 
  arg3 = (byte)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFShape_addSolidFill" "', argument " "4"" of type '" "byte""'");
  } 
  arg4 = (byte)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFShape_addSolidFill" "', argument " "5"" of type '" "byte""'");
  } 
  arg5 = (byte)(val5);
  result = (SWFFill)SWFShape_addSolidFill(arg1,arg2,arg3,arg4,arg5);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_addGradientFill(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  SWFGradient arg2 = (SWFGradient) 0 ;
  byte arg3 ;
  int res1 ;
  int res2 ;
  unsigned char val3 ;
  int ecode3 = 0 ;
  SWFFill result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFShape_addGradientFill shape gradient flags ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_addGradientFill" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFShape_addGradientFill" "', argument " "2"" of type '" "SWFGradient""'"); 
  }
  ecode3 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_addGradientFill" "', argument " "3"" of type '" "byte""'");
  } 
  arg3 = (byte)(val3);
  result = (SWFFill)SWFShape_addGradientFill(arg1,arg2,arg3);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_addBitmapFill(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  SWFBitmap arg2 = (SWFBitmap) 0 ;
  byte arg3 ;
  int res1 ;
  int res2 ;
  unsigned char val3 ;
  int ecode3 = 0 ;
  SWFFill result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFShape_addBitmapFill shape bitmap flags ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_addBitmapFill" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFShape_addBitmapFill" "', argument " "2"" of type '" "SWFBitmap""'"); 
  }
  ecode3 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_addBitmapFill" "', argument " "3"" of type '" "byte""'");
  } 
  arg3 = (byte)(val3);
  result = (SWFFill)SWFShape_addBitmapFill(arg1,arg2,arg3);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_setLeftFill(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  SWFFill arg2 = (SWFFill) 0 ;
  int res1 ;
  int res2 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFShape_setLeftFill shape fill ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_setLeftFill" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFShape_setLeftFill" "', argument " "2"" of type '" "SWFFill""'"); 
  }
  SWFShape_setLeftFill(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_setRightFill(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  SWFFill arg2 = (SWFFill) 0 ;
  int res1 ;
  int res2 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFShape_setRightFill shape fill ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_setRightFill" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFShape_setRightFill" "', argument " "2"" of type '" "SWFFill""'"); 
  }
  SWFShape_setRightFill(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_drawArc(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  double arg2 ;
  double arg3 ;
  double arg4 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oooo:SWFShape_drawArc shape r startAngle endAngle ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_drawArc" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFShape_drawArc" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_drawArc" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFShape_drawArc" "', argument " "4"" of type '" "double""'");
  } 
  arg4 = (double)(val4);
  SWFShape_drawArc(arg1,arg2,arg3,arg4);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_drawCircle(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  double arg2 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFShape_drawCircle shape r ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_drawCircle" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFShape_drawCircle" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  SWFShape_drawCircle(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_drawGlyph(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  SWFFont arg2 = (SWFFont) 0 ;
  unsigned short arg3 ;
  int res1 ;
  int res2 ;
  unsigned short val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFShape_drawGlyph shape font c ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_drawGlyph" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFShape_drawGlyph" "', argument " "2"" of type '" "SWFFont""'"); 
  }
  ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_drawGlyph" "', argument " "3"" of type '" "unsigned short""'");
  } 
  arg3 = (unsigned short)(val3);
  SWFShape_drawGlyph(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_drawSizedGlyph(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  SWFFont arg2 = (SWFFont) 0 ;
  unsigned short arg3 ;
  int arg4 ;
  int res1 ;
  int res2 ;
  unsigned short val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oooo:SWFShape_drawSizedGlyph shape font c size ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_drawSizedGlyph" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFShape_drawSizedGlyph" "', argument " "2"" of type '" "SWFFont""'"); 
  }
  ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_drawSizedGlyph" "', argument " "3"" of type '" "unsigned short""'");
  } 
  arg3 = (unsigned short)(val3);
  ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFShape_drawSizedGlyph" "', argument " "4"" of type '" "int""'");
  } 
  arg4 = (int)(val4);
  SWFShape_drawSizedGlyph(arg1,arg2,arg3,arg4);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_drawCubic(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  double arg2 ;
  double arg3 ;
  double arg4 ;
  double arg5 ;
  double arg6 ;
  double arg7 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooooo:SWFShape_drawCubic shape bx by cx cy dx dy ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_drawCubic" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFShape_drawCubic" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_drawCubic" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFShape_drawCubic" "', argument " "4"" of type '" "double""'");
  } 
  arg4 = (double)(val4);
  ecode5 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFShape_drawCubic" "', argument " "5"" of type '" "double""'");
  } 
  arg5 = (double)(val5);
  ecode6 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[6], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SWFShape_drawCubic" "', argument " "6"" of type '" "double""'");
  } 
  arg6 = (double)(val6);
  ecode7 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[7], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SWFShape_drawCubic" "', argument " "7"" of type '" "double""'");
  } 
  arg7 = (double)(val7);
  result = (int)SWFShape_drawCubic(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_drawCubicTo(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  double arg2 ;
  double arg3 ;
  double arg4 ;
  double arg5 ;
  double arg6 ;
  double arg7 ;
  int res1 ;
  double val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  double val5 ;
  int ecode5 = 0 ;
  double val6 ;
  int ecode6 = 0 ;
  double val7 ;
  int ecode7 = 0 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooooo:SWFShape_drawCubicTo shape bx by cx cy dx dy ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_drawCubicTo" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFShape_drawCubicTo" "', argument " "2"" of type '" "double""'");
  } 
  arg2 = (double)(val2);
  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFShape_drawCubicTo" "', argument " "3"" of type '" "double""'");
  } 
  arg3 = (double)(val3);
  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFShape_drawCubicTo" "', argument " "4"" of type '" "double""'");
  } 
  arg4 = (double)(val4);
  ecode5 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SWFShape_drawCubicTo" "', argument " "5"" of type '" "double""'");
  } 
  arg5 = (double)(val5);
  ecode6 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[6], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SWFShape_drawCubicTo" "', argument " "6"" of type '" "double""'");
  } 
  arg6 = (double)(val6);
  ecode7 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[7], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SWFShape_drawCubicTo" "', argument " "7"" of type '" "double""'");
  } 
  arg7 = (double)(val7);
  result = (int)SWFShape_drawCubicTo(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFShape_drawCharacterBounds(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShape arg1 = (SWFShape) 0 ;
  SWFCharacter arg2 = (SWFCharacter) 0 ;
  int res1 ;
  int res2 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFShape_drawCharacterBounds shape character ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFShape_drawCharacterBounds" "', argument " "1"" of type '" "SWFShape""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFShape_drawCharacterBounds" "', argument " "2"" of type '" "SWFCharacter""'"); 
  }
  SWFShape_drawCharacterBounds(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFMovieClip(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovieClip result;
  
  if (SWIG_GetArgs(interp, objc, objv,":newSWFMovieClip ") == TCL_ERROR) SWIG_fail;
  result = (SWFMovieClip)newSWFMovieClip();
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFMovieClip(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovieClip arg1 = (SWFMovieClip) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFMovieClip movieClip ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFMovieClip" "', argument " "1"" of type '" "SWFMovieClip""'"); 
  }
  destroySWFMovieClip(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovieClip_setNumberOfFrames(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovieClip arg1 = (SWFMovieClip) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovieClip_setNumberOfFrames clip frames ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovieClip_setNumberOfFrames" "', argument " "1"" of type '" "SWFMovieClip""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFMovieClip_setNumberOfFrames" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  SWFMovieClip_setNumberOfFrames(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovieClip_nextFrame(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovieClip arg1 = (SWFMovieClip) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFMovieClip_nextFrame clip ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovieClip_nextFrame" "', argument " "1"" of type '" "SWFMovieClip""'"); 
  }
  SWFMovieClip_nextFrame(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovieClip_labelFrame(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovieClip arg1 = (SWFMovieClip) 0 ;
  char *arg2 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovieClip_labelFrame clip label ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovieClip_labelFrame" "', argument " "1"" of type '" "SWFMovieClip""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovieClip_labelFrame" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  SWFMovieClip_labelFrame(arg1,(char const *)arg2);
  
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovieClip_add(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovieClip arg1 = (SWFMovieClip) 0 ;
  SWFBlock arg2 = (SWFBlock) 0 ;
  int res1 ;
  int res2 ;
  SWFDisplayItem result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovieClip_add clip block ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovieClip_add" "', argument " "1"" of type '" "SWFMovieClip""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovieClip_add" "', argument " "2"" of type '" "SWFBlock""'"); 
  }
  result = (SWFDisplayItem)SWFMovieClip_add(arg1,arg2);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovieClip_remove(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovieClip arg1 = (SWFMovieClip) 0 ;
  SWFDisplayItem arg2 = (SWFDisplayItem) 0 ;
  int res1 ;
  int res2 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovieClip_remove clip item ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovieClip_remove" "', argument " "1"" of type '" "SWFMovieClip""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovieClip_remove" "', argument " "2"" of type '" "SWFDisplayItem""'"); 
  }
  SWFMovieClip_remove(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovieClip_setSoundStreamAt(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovieClip arg1 = (SWFMovieClip) 0 ;
  SWFSoundStream arg2 = (SWFSoundStream) 0 ;
  float arg3 ;
  float arg4 ;
  int res1 ;
  int res2 ;
  float val3 ;
  int ecode3 = 0 ;
  float val4 ;
  int ecode4 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oooo:SWFMovieClip_setSoundStreamAt clip sound rate skipSound ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovieClip_setSoundStreamAt" "', argument " "1"" of type '" "SWFMovieClip""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovieClip_setSoundStreamAt" "', argument " "2"" of type '" "SWFSoundStream""'"); 
  }
  ecode3 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFMovieClip_setSoundStreamAt" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = (float)(val3);
  ecode4 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFMovieClip_setSoundStreamAt" "', argument " "4"" of type '" "float""'");
  } 
  arg4 = (float)(val4);
  SWFMovieClip_setSoundStreamAt(arg1,arg2,arg3,arg4);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovieClip_setSoundStream(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovieClip arg1 = (SWFMovieClip) 0 ;
  SWFSoundStream arg2 = (SWFSoundStream) 0 ;
  float arg3 ;
  int res1 ;
  int res2 ;
  float val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFMovieClip_setSoundStream clip sound rate ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovieClip_setSoundStream" "', argument " "1"" of type '" "SWFMovieClip""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovieClip_setSoundStream" "', argument " "2"" of type '" "SWFSoundStream""'"); 
  }
  ecode3 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFMovieClip_setSoundStream" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = (float)(val3);
  SWFMovieClip_setSoundStream(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovieClip_startSound(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovieClip arg1 = (SWFMovieClip) 0 ;
  SWFSound arg2 = (SWFSound) 0 ;
  int res1 ;
  int res2 ;
  SWFSoundInstance result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovieClip_startSound clip sound ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovieClip_startSound" "', argument " "1"" of type '" "SWFMovieClip""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovieClip_startSound" "', argument " "2"" of type '" "SWFSound""'"); 
  }
  result = SWFMovieClip_startSound(arg1,arg2);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFSoundInstance *)memcpy((SWFSoundInstance *)calloc(1,sizeof(SWFSoundInstance)),&result,sizeof(SWFSoundInstance)), SWIGTYPE_p_SWFSoundInstance, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovieClip_stopSound(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovieClip arg1 = (SWFMovieClip) 0 ;
  SWFSound arg2 = (SWFSound) 0 ;
  int res1 ;
  int res2 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovieClip_stopSound clip sound ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovieClip_stopSound" "', argument " "1"" of type '" "SWFMovieClip""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovieClip_stopSound" "', argument " "2"" of type '" "SWFSound""'"); 
  }
  SWFMovieClip_stopSound(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFPrebuiltClip(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFPrebuiltClip arg1 = (SWFPrebuiltClip) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFPrebuiltClip clip ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFPrebuiltClip" "', argument " "1"" of type '" "SWFPrebuiltClip""'"); 
  }
  destroySWFPrebuiltClip(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFPrebuiltClip_fromFile(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  char *arg1 = (char *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  SWFPrebuiltClip result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFPrebuiltClip_fromFile filename ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_AsCharPtrAndSize(objv[1], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFPrebuiltClip_fromFile" "', argument " "1"" of type '" "char const *""'");
  }
  arg1 = (char *)(buf1);
  result = (SWFPrebuiltClip)newSWFPrebuiltClip_fromFile((char const *)arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return TCL_OK;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFPrebuiltClip_fromInput(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFInput arg1 ;
  void *argp1 ;
  int res1 = 0 ;
  SWFPrebuiltClip result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFPrebuiltClip_fromInput input ",(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFInput,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFPrebuiltClip_fromInput" "', argument " "1"" of type '" "SWFInput""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "newSWFPrebuiltClip_fromInput" "', argument " "1"" of type '" "SWFInput""'");
    } else {
      arg1 = *((SWFInput *)(argp1));
    }
  }
  result = (SWFPrebuiltClip)newSWFPrebuiltClip_fromInput(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFBinaryData(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  unsigned char *arg1 = (unsigned char *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  SWFBinaryData result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:newSWFBinaryData blob length ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_unsigned_char, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newSWFBinaryData" "', argument " "1"" of type '" "unsigned char *""'"); 
  }
  arg1 = (unsigned char *)(argp1);
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFBinaryData" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  result = (SWFBinaryData)newSWFBinaryData(arg1,arg2);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFMovie(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie result;
  
  if (SWIG_GetArgs(interp, objc, objv,":newSWFMovie ") == TCL_ERROR) SWIG_fail;
  result = (SWFMovie)newSWFMovie();
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFMovieWithVersion(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  int arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  SWFMovie result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newSWFMovieWithVersion version ",(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "newSWFMovieWithVersion" "', argument " "1"" of type '" "int""'");
  } 
  arg1 = (int)(val1);
  result = (SWFMovie)newSWFMovieWithVersion(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFMovie(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFMovie movie ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFMovie" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  destroySWFMovie(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_setRate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  float arg2 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovie_setRate movie rate ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_setRate" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFMovie_setRate" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  SWFMovie_setRate(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_getRate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  int res1 ;
  float result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFMovie_getRate movie ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_getRate" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  result = (float)SWFMovie_getRate(arg1);
  Tcl_SetObjResult(interp,SWIG_From_float((float)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_setDimension(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  float arg2 ;
  float arg3 ;
  int res1 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFMovie_setDimension movie x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_setDimension" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFMovie_setDimension" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  ecode3 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFMovie_setDimension" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = (float)(val3);
  SWFMovie_setDimension(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_setNumberOfFrames(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovie_setNumberOfFrames movie frames ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_setNumberOfFrames" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFMovie_setNumberOfFrames" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  SWFMovie_setNumberOfFrames(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_addExport(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  SWFBlock arg2 = (SWFBlock) 0 ;
  char *arg3 = (char *) 0 ;
  int res1 ;
  int res2 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFMovie_addExport movie block name ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_addExport" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovie_addExport" "', argument " "2"" of type '" "SWFBlock""'"); 
  }
  res3 = SWIG_AsCharPtrAndSize(objv[3], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SWFMovie_addExport" "', argument " "3"" of type '" "char const *""'");
  }
  arg3 = (char *)(buf3);
  SWFMovie_addExport(arg1,arg2,(char const *)arg3);
  
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return TCL_OK;
fail:
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_setBackground(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  byte arg2 ;
  byte arg3 ;
  byte arg4 ;
  int res1 ;
  unsigned char val2 ;
  int ecode2 = 0 ;
  unsigned char val3 ;
  int ecode3 = 0 ;
  unsigned char val4 ;
  int ecode4 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oooo:SWFMovie_setBackground movie r g b ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_setBackground" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFMovie_setBackground" "', argument " "2"" of type '" "byte""'");
  } 
  arg2 = (byte)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFMovie_setBackground" "', argument " "3"" of type '" "byte""'");
  } 
  arg3 = (byte)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SWFMovie_setBackground" "', argument " "4"" of type '" "byte""'");
  } 
  arg4 = (byte)(val4);
  SWFMovie_setBackground(arg1,arg2,arg3,arg4);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_setSoundStream(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  SWFSoundStream arg2 = (SWFSoundStream) 0 ;
  int res1 ;
  int res2 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovie_setSoundStream movie sound ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_setSoundStream" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovie_setSoundStream" "', argument " "2"" of type '" "SWFSoundStream""'"); 
  }
  SWFMovie_setSoundStream(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_setSoundStreamAt(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  SWFSoundStream arg2 = (SWFSoundStream) 0 ;
  float arg3 ;
  int res1 ;
  int res2 ;
  float val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFMovie_setSoundStreamAt movie stream skip ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_setSoundStreamAt" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovie_setSoundStreamAt" "', argument " "2"" of type '" "SWFSoundStream""'"); 
  }
  ecode3 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFMovie_setSoundStreamAt" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = (float)(val3);
  SWFMovie_setSoundStreamAt(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_startSound(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  SWFSound arg2 = (SWFSound) 0 ;
  int res1 ;
  int res2 ;
  SWFSoundInstance result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovie_startSound movie sound ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_startSound" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovie_startSound" "', argument " "2"" of type '" "SWFSound""'"); 
  }
  result = SWFMovie_startSound(arg1,arg2);
  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((SWFSoundInstance *)memcpy((SWFSoundInstance *)calloc(1,sizeof(SWFSoundInstance)),&result,sizeof(SWFSoundInstance)), SWIGTYPE_p_SWFSoundInstance, SWIG_POINTER_OWN | 0 ));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_stopSound(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  SWFSound arg2 = (SWFSound) 0 ;
  int res1 ;
  int res2 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovie_stopSound movie sound ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_stopSound" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovie_stopSound" "', argument " "2"" of type '" "SWFSound""'"); 
  }
  SWFMovie_stopSound(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_add(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  SWFBlock arg2 = (SWFBlock) 0 ;
  int res1 ;
  int res2 ;
  SWFDisplayItem result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovie_add movie block ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_add" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovie_add" "', argument " "2"" of type '" "SWFBlock""'"); 
  }
  result = (SWFDisplayItem)SWFMovie_add(arg1,arg2);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_remove(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  SWFDisplayItem arg2 = (SWFDisplayItem) 0 ;
  int res1 ;
  int res2 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovie_remove movie item ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_remove" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovie_remove" "', argument " "2"" of type '" "SWFDisplayItem""'"); 
  }
  SWFMovie_remove(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_nextFrame(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFMovie_nextFrame movie ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_nextFrame" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  SWFMovie_nextFrame(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_labelFrame(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  char *arg2 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovie_labelFrame movie label ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_labelFrame" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovie_labelFrame" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  SWFMovie_labelFrame(arg1,(char const *)arg2);
  
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_output(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  SWFByteOutputMethod arg2 = (SWFByteOutputMethod) 0 ;
  void *arg3 = (void *) 0 ;
  int res1 ;
  int res3 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFMovie_output movie method data ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_output" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  {
    int res = SWIG_ConvertFunctionPtr(objv[2], (void**)(&arg2), SWIGTYPE_p_f_unsigned_char_p_void__void);
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), "in method '" "SWFMovie_output" "', argument " "2"" of type '" "SWFByteOutputMethod""'"); 
    }
  }
  res3 = SWIG_ConvertPtr(objv[3],SWIG_as_voidptrptr(&arg3), 0, 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SWFMovie_output" "', argument " "3"" of type '" "void *""'"); 
  }
  result = (int)SWFMovie_output(arg1,arg2,arg3);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_save(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  char *arg2 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovie_save movie filename ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_save" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovie_save" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  result = (int)SWFMovie_save(arg1,(char const *)arg2);
  Tcl_SetObjResult(interp,SWIG_From_int((int)(result)));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_protect(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  char *arg2 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovie_protect movie password ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_protect" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovie_protect" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  SWFMovie_protect(arg1,(char const *)arg2);
  
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_setNetworkAccess(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovie_setNetworkAccess movie flag ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_setNetworkAccess" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFMovie_setNetworkAccess" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  SWFMovie_setNetworkAccess(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_addMetadata(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  char *arg2 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovie_addMetadata movie xml ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_addMetadata" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovie_addMetadata" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  SWFMovie_addMetadata(arg1,(char const *)arg2);
  
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_setScriptLimits(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  int arg2 ;
  int arg3 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFMovie_setScriptLimits movie maxRecursion timeout ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_setScriptLimits" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFMovie_setScriptLimits" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFMovie_setScriptLimits" "', argument " "3"" of type '" "int""'");
  } 
  arg3 = (int)(val3);
  SWFMovie_setScriptLimits(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_setTabIndex(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  int arg2 ;
  int arg3 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFMovie_setTabIndex movie depth i ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_setTabIndex" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFMovie_setTabIndex" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SWFMovie_setTabIndex" "', argument " "3"" of type '" "int""'");
  } 
  arg3 = (int)(val3);
  SWFMovie_setTabIndex(arg1,arg2,arg3);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_importFont(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  SWFFontCharacter result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFMovie_importFont movie filename name ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_importFont" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovie_importFont" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  res3 = SWIG_AsCharPtrAndSize(objv[3], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SWFMovie_importFont" "', argument " "3"" of type '" "char const *""'");
  }
  arg3 = (char *)(buf3);
  result = (SWFFontCharacter)SWFMovie_importFont(arg1,(char const *)arg2,(char const *)arg3);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_addFont(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  SWFFont arg2 = (SWFFont) 0 ;
  int res1 ;
  int res2 ;
  SWFFontCharacter result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovie_addFont movie font ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_addFont" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovie_addFont" "', argument " "2"" of type '" "SWFFont""'"); 
  }
  result = (SWFFontCharacter)SWFMovie_addFont(arg1,arg2);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_importCharacter(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  SWFCharacter result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFMovie_importCharacter movie filename name ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_importCharacter" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovie_importCharacter" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  res3 = SWIG_AsCharPtrAndSize(objv[3], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SWFMovie_importCharacter" "', argument " "3"" of type '" "char const *""'");
  }
  arg3 = (char *)(buf3);
  result = (SWFCharacter)SWFMovie_importCharacter(arg1,(char const *)arg2,(char const *)arg3);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_assignSymbol(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  SWFCharacter arg2 = (SWFCharacter) 0 ;
  char *arg3 = (char *) 0 ;
  int res1 ;
  int res2 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFMovie_assignSymbol m character name ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_assignSymbol" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovie_assignSymbol" "', argument " "2"" of type '" "SWFCharacter""'"); 
  }
  res3 = SWIG_AsCharPtrAndSize(objv[3], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SWFMovie_assignSymbol" "', argument " "3"" of type '" "char const *""'");
  }
  arg3 = (char *)(buf3);
  SWFMovie_assignSymbol(arg1,arg2,(char const *)arg3);
  
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return TCL_OK;
fail:
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_defineScene(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  unsigned int arg2 ;
  char *arg3 = (char *) 0 ;
  int res1 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:SWFMovie_defineScene m offset name ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_defineScene" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFMovie_defineScene" "', argument " "2"" of type '" "unsigned int""'");
  } 
  arg2 = (unsigned int)(val2);
  res3 = SWIG_AsCharPtrAndSize(objv[3], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SWFMovie_defineScene" "', argument " "3"" of type '" "char const *""'");
  }
  arg3 = (char *)(buf3);
  SWFMovie_defineScene(arg1,arg2,(char const *)arg3);
  
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return TCL_OK;
fail:
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_namedAnchor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  char *arg2 = (char *) 0 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFMovie_namedAnchor movie label ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_namedAnchor" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFMovie_namedAnchor" "', argument " "2"" of type '" "char const *""'");
  }
  arg2 = (char *)(buf2);
  SWFMovie_namedAnchor(arg1,(char const *)arg2);
  
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_OK;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFMovie_writeExports(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFMovie arg1 = (SWFMovie) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFMovie_writeExports movie ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFMovie_writeExports" "', argument " "1"" of type '" "SWFMovie""'"); 
  }
  SWFMovie_writeExports(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFColor_red_set(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  struct SWFColor *arg1 = (struct SWFColor *) 0 ;
  unsigned char arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned char val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFColor_red_set self red ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_SWFColor, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFColor_red_set" "', argument " "1"" of type '" "struct SWFColor *""'"); 
  }
  arg1 = (struct SWFColor *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFColor_red_set" "', argument " "2"" of type '" "unsigned char""'");
  } 
  arg2 = (unsigned char)(val2);
  if (arg1) (arg1)->red = arg2;
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFColor_red_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  struct SWFColor *arg1 = (struct SWFColor *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned char result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFColor_red_get self ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_SWFColor, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFColor_red_get" "', argument " "1"" of type '" "struct SWFColor *""'"); 
  }
  arg1 = (struct SWFColor *)(argp1);
  result = (unsigned char) ((arg1)->red);
  Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_char((unsigned char)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFColor_green_set(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  struct SWFColor *arg1 = (struct SWFColor *) 0 ;
  unsigned char arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned char val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFColor_green_set self green ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_SWFColor, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFColor_green_set" "', argument " "1"" of type '" "struct SWFColor *""'"); 
  }
  arg1 = (struct SWFColor *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFColor_green_set" "', argument " "2"" of type '" "unsigned char""'");
  } 
  arg2 = (unsigned char)(val2);
  if (arg1) (arg1)->green = arg2;
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFColor_green_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  struct SWFColor *arg1 = (struct SWFColor *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned char result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFColor_green_get self ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_SWFColor, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFColor_green_get" "', argument " "1"" of type '" "struct SWFColor *""'"); 
  }
  arg1 = (struct SWFColor *)(argp1);
  result = (unsigned char) ((arg1)->green);
  Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_char((unsigned char)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFColor_blue_set(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  struct SWFColor *arg1 = (struct SWFColor *) 0 ;
  unsigned char arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned char val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFColor_blue_set self blue ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_SWFColor, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFColor_blue_set" "', argument " "1"" of type '" "struct SWFColor *""'"); 
  }
  arg1 = (struct SWFColor *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFColor_blue_set" "', argument " "2"" of type '" "unsigned char""'");
  } 
  arg2 = (unsigned char)(val2);
  if (arg1) (arg1)->blue = arg2;
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFColor_blue_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  struct SWFColor *arg1 = (struct SWFColor *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned char result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFColor_blue_get self ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_SWFColor, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFColor_blue_get" "', argument " "1"" of type '" "struct SWFColor *""'"); 
  }
  arg1 = (struct SWFColor *)(argp1);
  result = (unsigned char) ((arg1)->blue);
  Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_char((unsigned char)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFColor_alpha_set(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  struct SWFColor *arg1 = (struct SWFColor *) 0 ;
  unsigned char arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned char val2 ;
  int ecode2 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFColor_alpha_set self alpha ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_SWFColor, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFColor_alpha_set" "', argument " "1"" of type '" "struct SWFColor *""'"); 
  }
  arg1 = (struct SWFColor *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SWFColor_alpha_set" "', argument " "2"" of type '" "unsigned char""'");
  } 
  arg2 = (unsigned char)(val2);
  if (arg1) (arg1)->alpha = arg2;
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFColor_alpha_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  struct SWFColor *arg1 = (struct SWFColor *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned char result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:SWFColor_alpha_get self ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_SWFColor, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFColor_alpha_get" "', argument " "1"" of type '" "struct SWFColor *""'"); 
  }
  arg1 = (struct SWFColor *)(argp1);
  result = (unsigned char) ((arg1)->alpha);
  Tcl_SetObjResult(interp,SWIG_From_unsigned_SS_char((unsigned char)(result)));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_new_SWFColor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  struct SWFColor *result = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,":new_SWFColor ") == TCL_ERROR) SWIG_fail;
  result = (struct SWFColor *)calloc(1, sizeof(struct SWFColor));
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_SWFColor,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_delete_SWFColor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  struct SWFColor *arg1 = (struct SWFColor *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:delete_SWFColor self ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_SWFColor, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SWFColor" "', argument " "1"" of type '" "struct SWFColor *""'"); 
  }
  arg1 = (struct SWFColor *)(argp1);
  free((char *) arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN void swig_delete_SWFColor(void *obj) {
struct SWFColor *arg1 = (struct SWFColor *) obj;
free((char *) arg1);
}
static swig_method swig_SWFColor_methods[] = {
    {0,0}
};
static swig_attribute swig_SWFColor_attributes[] = {
    { "-red",_wrap_SWFColor_red_get, _wrap_SWFColor_red_set},
    { "-green",_wrap_SWFColor_green_get, _wrap_SWFColor_green_set},
    { "-blue",_wrap_SWFColor_blue_get, _wrap_SWFColor_blue_set},
    { "-alpha",_wrap_SWFColor_alpha_get, _wrap_SWFColor_alpha_set},
    {0,0,0}
};
static swig_class *swig_SWFColor_bases[] = {0};
static const char * swig_SWFColor_base_names[] = {0};
static swig_class _wrap_class_SWFColor = { "SWFColor", &SWIGTYPE_p_SWFColor,_wrap_new_SWFColor, swig_delete_SWFColor, swig_SWFColor_methods, swig_SWFColor_attributes, swig_SWFColor_bases,swig_SWFColor_base_names, &swig_module, SWIG_TCL_HASHTABLE_INIT };
SWIGINTERN int
_wrap_newSWFShadow(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  float arg1 ;
  float arg2 ;
  float arg3 ;
  float val1 ;
  int ecode1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  SWFShadow result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:newSWFShadow angle distance strength ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "newSWFShadow" "', argument " "1"" of type '" "float""'");
  } 
  arg1 = (float)(val1);
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFShadow" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  ecode3 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "newSWFShadow" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = (float)(val3);
  result = (SWFShadow)newSWFShadow(arg1,arg2,arg3);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Shadow_s,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFShadow(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFShadow arg1 = (SWFShadow) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFShadow s ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Shadow_s, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFShadow" "', argument " "1"" of type '" "SWFShadow""'"); 
  }
  arg1 = (SWFShadow)(argp1);
  destroySWFShadow(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFBlur(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  float arg1 ;
  float arg2 ;
  int arg3 ;
  float val1 ;
  int ecode1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  SWFBlur result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:newSWFBlur blurX blurY passes ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "newSWFBlur" "', argument " "1"" of type '" "float""'");
  } 
  arg1 = (float)(val1);
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFBlur" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "newSWFBlur" "', argument " "3"" of type '" "int""'");
  } 
  arg3 = (int)(val3);
  result = (SWFBlur)newSWFBlur(arg1,arg2,arg3);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_Blur_s,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFBlur(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFBlur arg1 = (SWFBlur) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFBlur b ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Blur_s, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFBlur" "', argument " "1"" of type '" "SWFBlur""'"); 
  }
  arg1 = (SWFBlur)(argp1);
  destroySWFBlur(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newSWFFilterMatrix(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  int arg1 ;
  int arg2 ;
  float *arg3 = (float *) 0 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  SWFFilterMatrix result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooo:newSWFFilterMatrix cols rows vals ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "newSWFFilterMatrix" "', argument " "1"" of type '" "int""'");
  } 
  arg1 = (int)(val1);
  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newSWFFilterMatrix" "', argument " "2"" of type '" "int""'");
  } 
  arg2 = (int)(val2);
  res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_float, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "newSWFFilterMatrix" "', argument " "3"" of type '" "float *""'"); 
  }
  arg3 = (float *)(argp3);
  result = (SWFFilterMatrix)newSWFFilterMatrix(arg1,arg2,arg3);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_FilterMatrix_s,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFFilterMatrix(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFilterMatrix arg1 = (SWFFilterMatrix) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFFilterMatrix m ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_FilterMatrix_s, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFFilterMatrix" "', argument " "1"" of type '" "SWFFilterMatrix""'"); 
  }
  arg1 = (SWFFilterMatrix)(argp1);
  destroySWFFilterMatrix(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_destroySWFFilter(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFilter arg1 = (SWFFilter) 0 ;
  int res1 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:destroySWFFilter filter ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroySWFFilter" "', argument " "1"" of type '" "SWFFilter""'"); 
  }
  destroySWFFilter(arg1);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newColorMatrixFilter(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFilterMatrix arg1 = (SWFFilterMatrix) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SWFFilter result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newColorMatrixFilter matrix ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_FilterMatrix_s, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newColorMatrixFilter" "', argument " "1"" of type '" "SWFFilterMatrix""'"); 
  }
  arg1 = (SWFFilterMatrix)(argp1);
  result = (SWFFilter)newColorMatrixFilter(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newConvolutionFilter(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFFilterMatrix arg1 = (SWFFilterMatrix) 0 ;
  float arg2 ;
  float arg3 ;
  SWFColor arg4 ;
  int arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  SWFFilter result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooo:newConvolutionFilter matrix divisor bias color flags ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_FilterMatrix_s, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newConvolutionFilter" "', argument " "1"" of type '" "SWFFilterMatrix""'"); 
  }
  arg1 = (SWFFilterMatrix)(argp1);
  ecode2 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "newConvolutionFilter" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = (float)(val2);
  ecode3 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "newConvolutionFilter" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = (float)(val3);
  {
    res4 = SWIG_ConvertPtr(objv[4], &argp4, SWIGTYPE_p_SWFColor,  0 );
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "newConvolutionFilter" "', argument " "4"" of type '" "SWFColor""'"); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "newConvolutionFilter" "', argument " "4"" of type '" "SWFColor""'");
    } else {
      arg4 = *((SWFColor *)(argp4));
    }
  }
  ecode5 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "newConvolutionFilter" "', argument " "5"" of type '" "int""'");
  } 
  arg5 = (int)(val5);
  result = (SWFFilter)newConvolutionFilter(arg1,arg2,arg3,arg4,arg5);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newGradientBevelFilter(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFGradient arg1 = (SWFGradient) 0 ;
  SWFBlur arg2 = (SWFBlur) 0 ;
  SWFShadow arg3 = (SWFShadow) 0 ;
  int arg4 ;
  int res1 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  SWFFilter result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oooo:newGradientBevelFilter gradient blur shadow flags ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newGradientBevelFilter" "', argument " "1"" of type '" "SWFGradient""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Blur_s, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "newGradientBevelFilter" "', argument " "2"" of type '" "SWFBlur""'"); 
  }
  arg2 = (SWFBlur)(argp2);
  res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_Shadow_s, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "newGradientBevelFilter" "', argument " "3"" of type '" "SWFShadow""'"); 
  }
  arg3 = (SWFShadow)(argp3);
  ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "newGradientBevelFilter" "', argument " "4"" of type '" "int""'");
  } 
  arg4 = (int)(val4);
  result = (SWFFilter)newGradientBevelFilter(arg1,arg2,arg3,arg4);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newGradientGlowFilter(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFGradient arg1 = (SWFGradient) 0 ;
  SWFBlur arg2 = (SWFBlur) 0 ;
  SWFShadow arg3 = (SWFShadow) 0 ;
  int arg4 ;
  int res1 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  SWFFilter result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oooo:newGradientGlowFilter gradient blur shadow flags ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newGradientGlowFilter" "', argument " "1"" of type '" "SWFGradient""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Blur_s, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "newGradientGlowFilter" "', argument " "2"" of type '" "SWFBlur""'"); 
  }
  arg2 = (SWFBlur)(argp2);
  res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_Shadow_s, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "newGradientGlowFilter" "', argument " "3"" of type '" "SWFShadow""'"); 
  }
  arg3 = (SWFShadow)(argp3);
  ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "newGradientGlowFilter" "', argument " "4"" of type '" "int""'");
  } 
  arg4 = (int)(val4);
  result = (SWFFilter)newGradientGlowFilter(arg1,arg2,arg3,arg4);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newBevelFilter(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFColor arg1 ;
  SWFColor arg2 ;
  SWFBlur arg3 = (SWFBlur) 0 ;
  SWFShadow arg4 = (SWFShadow) 0 ;
  int arg5 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  SWFFilter result;
  
  if (SWIG_GetArgs(interp, objc, objv,"ooooo:newBevelFilter shadowColor highlightColor blur shadow flags ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFColor,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newBevelFilter" "', argument " "1"" of type '" "SWFColor""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "newBevelFilter" "', argument " "1"" of type '" "SWFColor""'");
    } else {
      arg1 = *((SWFColor *)(argp1));
    }
  }
  {
    res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_SWFColor,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "newBevelFilter" "', argument " "2"" of type '" "SWFColor""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "newBevelFilter" "', argument " "2"" of type '" "SWFColor""'");
    } else {
      arg2 = *((SWFColor *)(argp2));
    }
  }
  res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_Blur_s, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "newBevelFilter" "', argument " "3"" of type '" "SWFBlur""'"); 
  }
  arg3 = (SWFBlur)(argp3);
  res4 = SWIG_ConvertPtr(objv[4], &argp4,SWIGTYPE_p_Shadow_s, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "newBevelFilter" "', argument " "4"" of type '" "SWFShadow""'"); 
  }
  arg4 = (SWFShadow)(argp4);
  ecode5 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "newBevelFilter" "', argument " "5"" of type '" "int""'");
  } 
  arg5 = (int)(val5);
  result = (SWFFilter)newBevelFilter(arg1,arg2,arg3,arg4,arg5);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newGlowFilter(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFColor arg1 ;
  SWFBlur arg2 = (SWFBlur) 0 ;
  float arg3 ;
  int arg4 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  SWFFilter result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oooo:newGlowFilter color blur strength flags ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFColor,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newGlowFilter" "', argument " "1"" of type '" "SWFColor""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "newGlowFilter" "', argument " "1"" of type '" "SWFColor""'");
    } else {
      arg1 = *((SWFColor *)(argp1));
    }
  }
  res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Blur_s, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "newGlowFilter" "', argument " "2"" of type '" "SWFBlur""'"); 
  }
  arg2 = (SWFBlur)(argp2);
  ecode3 = SWIG_AsVal_float SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "newGlowFilter" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = (float)(val3);
  ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "newGlowFilter" "', argument " "4"" of type '" "int""'");
  } 
  arg4 = (int)(val4);
  result = (SWFFilter)newGlowFilter(arg1,arg2,arg3,arg4);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newBlurFilter(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFBlur arg1 = (SWFBlur) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SWFFilter result;
  
  if (SWIG_GetArgs(interp, objc, objv,"o:newBlurFilter blur ",(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_Blur_s, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newBlurFilter" "', argument " "1"" of type '" "SWFBlur""'"); 
  }
  arg1 = (SWFBlur)(argp1);
  result = (SWFFilter)newBlurFilter(arg1);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_newDropShadowFilter(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFColor arg1 ;
  SWFBlur arg2 = (SWFBlur) 0 ;
  SWFShadow arg3 = (SWFShadow) 0 ;
  int arg4 ;
  void *argp1 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  SWFFilter result;
  
  if (SWIG_GetArgs(interp, objc, objv,"oooo:newDropShadowFilter color blur shadow flags ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  {
    res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_SWFColor,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "newDropShadowFilter" "', argument " "1"" of type '" "SWFColor""'"); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "newDropShadowFilter" "', argument " "1"" of type '" "SWFColor""'");
    } else {
      arg1 = *((SWFColor *)(argp1));
    }
  }
  res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_Blur_s, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "newDropShadowFilter" "', argument " "2"" of type '" "SWFBlur""'"); 
  }
  arg2 = (SWFBlur)(argp2);
  res3 = SWIG_ConvertPtr(objv[3], &argp3,SWIGTYPE_p_Shadow_s, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "newDropShadowFilter" "', argument " "3"" of type '" "SWFShadow""'"); 
  }
  arg3 = (SWFShadow)(argp3);
  ecode4 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "newDropShadowFilter" "', argument " "4"" of type '" "int""'");
  } 
  arg4 = (int)(val4);
  result = (SWFFilter)newDropShadowFilter(arg1,arg2,arg3,arg4);
  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_void,0));
  return TCL_OK;
fail:
  return TCL_ERROR;
}


SWIGINTERN int
_wrap_SWFDisplayItem_addFilter(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
  SWFDisplayItem arg1 = (SWFDisplayItem) 0 ;
  SWFFilter arg2 = (SWFFilter) 0 ;
  int res1 ;
  int res2 ;
  
  if (SWIG_GetArgs(interp, objc, objv,"oo:SWFDisplayItem_addFilter item filter ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
  res1 = SWIG_ConvertPtr(objv[1],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SWFDisplayItem_addFilter" "', argument " "1"" of type '" "SWFDisplayItem""'"); 
  }
  res2 = SWIG_ConvertPtr(objv[2],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SWFDisplayItem_addFilter" "', argument " "2"" of type '" "SWFFilter""'"); 
  }
  SWFDisplayItem_addFilter(arg1,arg2);
  
  return TCL_OK;
fail:
  return TCL_ERROR;
}



static swig_command_info swig_commands[] = {
    { SWIG_prefix "new_intp", (swig_wrapper_func) _wrap_new_intp, NULL},
    { SWIG_prefix "copy_intp", (swig_wrapper_func) _wrap_copy_intp, NULL},
    { SWIG_prefix "delete_intp", (swig_wrapper_func) _wrap_delete_intp, NULL},
    { SWIG_prefix "intp_assign", (swig_wrapper_func) _wrap_intp_assign, NULL},
    { SWIG_prefix "intp_value", (swig_wrapper_func) _wrap_intp_value, NULL},
    { SWIG_prefix "new_floatp", (swig_wrapper_func) _wrap_new_floatp, NULL},
    { SWIG_prefix "copy_floatp", (swig_wrapper_func) _wrap_copy_floatp, NULL},
    { SWIG_prefix "delete_floatp", (swig_wrapper_func) _wrap_delete_floatp, NULL},
    { SWIG_prefix "floatp_assign", (swig_wrapper_func) _wrap_floatp_assign, NULL},
    { SWIG_prefix "floatp_value", (swig_wrapper_func) _wrap_floatp_value, NULL},
    { SWIG_prefix "new_floatArray", (swig_wrapper_func) _wrap_new_floatArray, NULL},
    { SWIG_prefix "delete_floatArray", (swig_wrapper_func) _wrap_delete_floatArray, NULL},
    { SWIG_prefix "floatArray_getitem", (swig_wrapper_func) _wrap_floatArray_getitem, NULL},
    { SWIG_prefix "floatArray_setitem", (swig_wrapper_func) _wrap_floatArray_setitem, NULL},
    { SWIG_prefix "floatArray_cast", (swig_wrapper_func) _wrap_floatArray_cast, NULL},
    { SWIG_prefix "floatArray_frompointer", (swig_wrapper_func) _wrap_floatArray_frompointer, NULL},
    { SWIG_prefix "floatArray", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_floatArray},
    { SWIG_prefix "Ming_init", (swig_wrapper_func) _wrap_Ming_init, NULL},
    { SWIG_prefix "Ming_cleanup", (swig_wrapper_func) _wrap_Ming_cleanup, NULL},
    { SWIG_prefix "Ming_collectGarbage", (swig_wrapper_func) _wrap_Ming_collectGarbage, NULL},
    { SWIG_prefix "Ming_useConstants", (swig_wrapper_func) _wrap_Ming_useConstants, NULL},
    { SWIG_prefix "Ming_setCubicThreshold", (swig_wrapper_func) _wrap_Ming_setCubicThreshold, NULL},
    { SWIG_prefix "Ming_setScale", (swig_wrapper_func) _wrap_Ming_setScale, NULL},
    { SWIG_prefix "Ming_getScale", (swig_wrapper_func) _wrap_Ming_getScale, NULL},
    { SWIG_prefix "Ming_useSWFVersion", (swig_wrapper_func) _wrap_Ming_useSWFVersion, NULL},
    { SWIG_prefix "Ming_setSWFCompression", (swig_wrapper_func) _wrap_Ming_setSWFCompression, NULL},
    { SWIG_prefix "SWFMatrix_getScaleX", (swig_wrapper_func) _wrap_SWFMatrix_getScaleX, NULL},
    { SWIG_prefix "SWFMatrix_getRotate0", (swig_wrapper_func) _wrap_SWFMatrix_getRotate0, NULL},
    { SWIG_prefix "SWFMatrix_getRotate1", (swig_wrapper_func) _wrap_SWFMatrix_getRotate1, NULL},
    { SWIG_prefix "SWFMatrix_getScaleY", (swig_wrapper_func) _wrap_SWFMatrix_getScaleY, NULL},
    { SWIG_prefix "SWFMatrix_getTranslateX", (swig_wrapper_func) _wrap_SWFMatrix_getTranslateX, NULL},
    { SWIG_prefix "SWFMatrix_getTranslateY", (swig_wrapper_func) _wrap_SWFMatrix_getTranslateY, NULL},
    { SWIG_prefix "newSWFInput_file", (swig_wrapper_func) _wrap_newSWFInput_file, NULL},
    { SWIG_prefix "newSWFInput_stream", (swig_wrapper_func) _wrap_newSWFInput_stream, NULL},
    { SWIG_prefix "newSWFInput_buffer", (swig_wrapper_func) _wrap_newSWFInput_buffer, NULL},
    { SWIG_prefix "newSWFInput_allocedBuffer", (swig_wrapper_func) _wrap_newSWFInput_allocedBuffer, NULL},
    { SWIG_prefix "destroySWFInput", (swig_wrapper_func) _wrap_destroySWFInput, NULL},
    { SWIG_prefix "SWFInput_length", (swig_wrapper_func) _wrap_SWFInput_length, NULL},
    { SWIG_prefix "SWFInput_rewind", (swig_wrapper_func) _wrap_SWFInput_rewind, NULL},
    { SWIG_prefix "SWFInput_tell", (swig_wrapper_func) _wrap_SWFInput_tell, NULL},
    { SWIG_prefix "SWFInput_seek", (swig_wrapper_func) _wrap_SWFInput_seek, NULL},
    { SWIG_prefix "SWFInput_eof", (swig_wrapper_func) _wrap_SWFInput_eof, NULL},
    { SWIG_prefix "SWFCharacter_getWidth", (swig_wrapper_func) _wrap_SWFCharacter_getWidth, NULL},
    { SWIG_prefix "SWFCharacter_getHeight", (swig_wrapper_func) _wrap_SWFCharacter_getHeight, NULL},
    { SWIG_prefix "newSWFBitmap_fromInput", (swig_wrapper_func) _wrap_newSWFBitmap_fromInput, NULL},
    { SWIG_prefix "destroySWFBitmap", (swig_wrapper_func) _wrap_destroySWFBitmap, NULL},
    { SWIG_prefix "SWFBitmap_getWidth", (swig_wrapper_func) _wrap_SWFBitmap_getWidth, NULL},
    { SWIG_prefix "SWFBitmap_getHeight", (swig_wrapper_func) _wrap_SWFBitmap_getHeight, NULL},
    { SWIG_prefix "newSWFDBLBitmap", (swig_wrapper_func) _wrap_newSWFDBLBitmap, NULL},
    { SWIG_prefix "newSWFDBLBitmap_fromInput", (swig_wrapper_func) _wrap_newSWFDBLBitmap_fromInput, NULL},
    { SWIG_prefix "newSWFJpegBitmap", (swig_wrapper_func) _wrap_newSWFJpegBitmap, NULL},
    { SWIG_prefix "newSWFJpegBitmap_fromInput", (swig_wrapper_func) _wrap_newSWFJpegBitmap_fromInput, NULL},
    { SWIG_prefix "newSWFJpegWithAlpha", (swig_wrapper_func) _wrap_newSWFJpegWithAlpha, NULL},
    { SWIG_prefix "newSWFJpegWithAlpha_fromInput", (swig_wrapper_func) _wrap_newSWFJpegWithAlpha_fromInput, NULL},
    { SWIG_prefix "newSWFGradient", (swig_wrapper_func) _wrap_newSWFGradient, NULL},
    { SWIG_prefix "destroySWFGradient", (swig_wrapper_func) _wrap_destroySWFGradient, NULL},
    { SWIG_prefix "SWFGradient_addEntry", (swig_wrapper_func) _wrap_SWFGradient_addEntry, NULL},
    { SWIG_prefix "SWFGradient_setSpreadMode", (swig_wrapper_func) _wrap_SWFGradient_setSpreadMode, NULL},
    { SWIG_prefix "SWFGradient_setInterpolationMode", (swig_wrapper_func) _wrap_SWFGradient_setInterpolationMode, NULL},
    { SWIG_prefix "SWFGradient_setFocalPoint", (swig_wrapper_func) _wrap_SWFGradient_setFocalPoint, NULL},
    { SWIG_prefix "newSWFSolidFillStyle", (swig_wrapper_func) _wrap_newSWFSolidFillStyle, NULL},
    { SWIG_prefix "newSWFGradientFillStyle", (swig_wrapper_func) _wrap_newSWFGradientFillStyle, NULL},
    { SWIG_prefix "newSWFBitmapFillStyle", (swig_wrapper_func) _wrap_newSWFBitmapFillStyle, NULL},
    { SWIG_prefix "SWFFillStyle_getMatrix", (swig_wrapper_func) _wrap_SWFFillStyle_getMatrix, NULL},
    { SWIG_prefix "newSWFLineStyle", (swig_wrapper_func) _wrap_newSWFLineStyle, NULL},
    { SWIG_prefix "newSWFLineStyle2", (swig_wrapper_func) _wrap_newSWFLineStyle2, NULL},
    { SWIG_prefix "newSWFLineStyle2_filled", (swig_wrapper_func) _wrap_newSWFLineStyle2_filled, NULL},
    { SWIG_prefix "newSWFShape", (swig_wrapper_func) _wrap_newSWFShape, NULL},
    { SWIG_prefix "newSWFShapeFromBitmap", (swig_wrapper_func) _wrap_newSWFShapeFromBitmap, NULL},
    { SWIG_prefix "destroySWFShape", (swig_wrapper_func) _wrap_destroySWFShape, NULL},
    { SWIG_prefix "SWFShape_end", (swig_wrapper_func) _wrap_SWFShape_end, NULL},
    { SWIG_prefix "SWFShape_useVersion", (swig_wrapper_func) _wrap_SWFShape_useVersion, NULL},
    { SWIG_prefix "SWFShape_getVersion", (swig_wrapper_func) _wrap_SWFShape_getVersion, NULL},
    { SWIG_prefix "SWFShape_setRenderHintingFlags", (swig_wrapper_func) _wrap_SWFShape_setRenderHintingFlags, NULL},
    { SWIG_prefix "SWFShape_movePenTo", (swig_wrapper_func) _wrap_SWFShape_movePenTo, NULL},
    { SWIG_prefix "SWFShape_movePen", (swig_wrapper_func) _wrap_SWFShape_movePen, NULL},
    { SWIG_prefix "SWFShape_getPenX", (swig_wrapper_func) _wrap_SWFShape_getPenX, NULL},
    { SWIG_prefix "SWFShape_getPenY", (swig_wrapper_func) _wrap_SWFShape_getPenY, NULL},
    { SWIG_prefix "SWFShape_getPen", (swig_wrapper_func) _wrap_SWFShape_getPen, NULL},
    { SWIG_prefix "SWFShape_drawLineTo", (swig_wrapper_func) _wrap_SWFShape_drawLineTo, NULL},
    { SWIG_prefix "SWFShape_drawLine", (swig_wrapper_func) _wrap_SWFShape_drawLine, NULL},
    { SWIG_prefix "SWFShape_drawCurveTo", (swig_wrapper_func) _wrap_SWFShape_drawCurveTo, NULL},
    { SWIG_prefix "SWFShape_drawCurve", (swig_wrapper_func) _wrap_SWFShape_drawCurve, NULL},
    { SWIG_prefix "SWFShape_hideLine", (swig_wrapper_func) _wrap_SWFShape_hideLine, NULL},
    { SWIG_prefix "SWFShape_addSolidFillStyle", (swig_wrapper_func) _wrap_SWFShape_addSolidFillStyle, NULL},
    { SWIG_prefix "SWFShape_addGradientFillStyle", (swig_wrapper_func) _wrap_SWFShape_addGradientFillStyle, NULL},
    { SWIG_prefix "SWFShape_addBitmapFillStyle", (swig_wrapper_func) _wrap_SWFShape_addBitmapFillStyle, NULL},
    { SWIG_prefix "SWFShape_setLeftFillStyle", (swig_wrapper_func) _wrap_SWFShape_setLeftFillStyle, NULL},
    { SWIG_prefix "SWFShape_setRightFillStyle", (swig_wrapper_func) _wrap_SWFShape_setRightFillStyle, NULL},
    { SWIG_prefix "newSWFMorphShape", (swig_wrapper_func) _wrap_newSWFMorphShape, NULL},
    { SWIG_prefix "destroySWFMorph", (swig_wrapper_func) _wrap_destroySWFMorph, NULL},
    { SWIG_prefix "SWFMorph_getShape1", (swig_wrapper_func) _wrap_SWFMorph_getShape1, NULL},
    { SWIG_prefix "SWFMorph_getShape2", (swig_wrapper_func) _wrap_SWFMorph_getShape2, NULL},
    { SWIG_prefix "newSWFFont_fromFile", (swig_wrapper_func) _wrap_newSWFFont_fromFile, NULL},
    { SWIG_prefix "destroySWFFont", (swig_wrapper_func) _wrap_destroySWFFont, NULL},
    { SWIG_prefix "SWFFont_getStringWidth", (swig_wrapper_func) _wrap_SWFFont_getStringWidth, NULL},
    { SWIG_prefix "SWFFont_getUTF8StringWidth", (swig_wrapper_func) _wrap_SWFFont_getUTF8StringWidth, NULL},
    { SWIG_prefix "SWFFont_getWideStringWidth", (swig_wrapper_func) _wrap_SWFFont_getWideStringWidth, NULL},
    { SWIG_prefix "SWFFont_getAscent", (swig_wrapper_func) _wrap_SWFFont_getAscent, NULL},
    { SWIG_prefix "SWFFont_getDescent", (swig_wrapper_func) _wrap_SWFFont_getDescent, NULL},
    { SWIG_prefix "SWFFont_getLeading", (swig_wrapper_func) _wrap_SWFFont_getLeading, NULL},
    { SWIG_prefix "SWFFont_getName", (swig_wrapper_func) _wrap_SWFFont_getName, NULL},
    { SWIG_prefix "SWFFont_getGlyphCount", (swig_wrapper_func) _wrap_SWFFont_getGlyphCount, NULL},
    { SWIG_prefix "newSWFFontCollection_fromFile", (swig_wrapper_func) _wrap_newSWFFontCollection_fromFile, NULL},
    { SWIG_prefix "SWFFontCollection_getFontCount", (swig_wrapper_func) _wrap_SWFFontCollection_getFontCount, NULL},
    { SWIG_prefix "SWFFontCollection_getFont", (swig_wrapper_func) _wrap_SWFFontCollection_getFont, NULL},
    { SWIG_prefix "destroySWFFontCollection", (swig_wrapper_func) _wrap_destroySWFFontCollection, NULL},
    { SWIG_prefix "newSWFText", (swig_wrapper_func) _wrap_newSWFText, NULL},
    { SWIG_prefix "newSWFText2", (swig_wrapper_func) _wrap_newSWFText2, NULL},
    { SWIG_prefix "destroySWFText", (swig_wrapper_func) _wrap_destroySWFText, NULL},
    { SWIG_prefix "SWFText_setFont", (swig_wrapper_func) _wrap_SWFText_setFont, NULL},
    { SWIG_prefix "SWFText_setHeight", (swig_wrapper_func) _wrap_SWFText_setHeight, NULL},
    { SWIG_prefix "SWFText_setColor", (swig_wrapper_func) _wrap_SWFText_setColor, NULL},
    { SWIG_prefix "SWFText_moveTo", (swig_wrapper_func) _wrap_SWFText_moveTo, NULL},
    { SWIG_prefix "SWFText_addString", (swig_wrapper_func) _wrap_SWFText_addString, NULL},
    { SWIG_prefix "SWFText_addUTF8String", (swig_wrapper_func) _wrap_SWFText_addUTF8String, NULL},
    { SWIG_prefix "SWFText_addWideString", (swig_wrapper_func) _wrap_SWFText_addWideString, NULL},
    { SWIG_prefix "SWFText_setSpacing", (swig_wrapper_func) _wrap_SWFText_setSpacing, NULL},
    { SWIG_prefix "SWFText_getStringWidth", (swig_wrapper_func) _wrap_SWFText_getStringWidth, NULL},
    { SWIG_prefix "SWFText_getUTF8StringWidth", (swig_wrapper_func) _wrap_SWFText_getUTF8StringWidth, NULL},
    { SWIG_prefix "SWFText_getWideStringWidth", (swig_wrapper_func) _wrap_SWFText_getWideStringWidth, NULL},
    { SWIG_prefix "SWFText_getAscent", (swig_wrapper_func) _wrap_SWFText_getAscent, NULL},
    { SWIG_prefix "SWFText_getDescent", (swig_wrapper_func) _wrap_SWFText_getDescent, NULL},
    { SWIG_prefix "SWFText_getLeading", (swig_wrapper_func) _wrap_SWFText_getLeading, NULL},
    { SWIG_prefix "newSWFBrowserFont", (swig_wrapper_func) _wrap_newSWFBrowserFont, NULL},
    { SWIG_prefix "destroySWFBrowserFont", (swig_wrapper_func) _wrap_destroySWFBrowserFont, NULL},
    { SWIG_prefix "SWFFontCharacter_addChars", (swig_wrapper_func) _wrap_SWFFontCharacter_addChars, NULL},
    { SWIG_prefix "SWFFontCharacter_addUTF8Chars", (swig_wrapper_func) _wrap_SWFFontCharacter_addUTF8Chars, NULL},
    { SWIG_prefix "newSWFTextField", (swig_wrapper_func) _wrap_newSWFTextField, NULL},
    { SWIG_prefix "destroySWFTextField", (swig_wrapper_func) _wrap_destroySWFTextField, NULL},
    { SWIG_prefix "SWFTextField_setFont", (swig_wrapper_func) _wrap_SWFTextField_setFont, NULL},
    { SWIG_prefix "SWFTextField_setBounds", (swig_wrapper_func) _wrap_SWFTextField_setBounds, NULL},
    { SWIG_prefix "SWFTextField_setFlags", (swig_wrapper_func) _wrap_SWFTextField_setFlags, NULL},
    { SWIG_prefix "SWFTextField_setColor", (swig_wrapper_func) _wrap_SWFTextField_setColor, NULL},
    { SWIG_prefix "SWFTextField_setVariableName", (swig_wrapper_func) _wrap_SWFTextField_setVariableName, NULL},
    { SWIG_prefix "SWFTextField_addString", (swig_wrapper_func) _wrap_SWFTextField_addString, NULL},
    { SWIG_prefix "SWFTextField_addUTF8String", (swig_wrapper_func) _wrap_SWFTextField_addUTF8String, NULL},
    { SWIG_prefix "SWFTextField_setHeight", (swig_wrapper_func) _wrap_SWFTextField_setHeight, NULL},
    { SWIG_prefix "SWFTextField_setFieldHeight", (swig_wrapper_func) _wrap_SWFTextField_setFieldHeight, NULL},
    { SWIG_prefix "SWFTextField_setLeftMargin", (swig_wrapper_func) _wrap_SWFTextField_setLeftMargin, NULL},
    { SWIG_prefix "SWFTextField_setRightMargin", (swig_wrapper_func) _wrap_SWFTextField_setRightMargin, NULL},
    { SWIG_prefix "SWFTextField_setIndentation", (swig_wrapper_func) _wrap_SWFTextField_setIndentation, NULL},
    { SWIG_prefix "SWFTextField_setLineSpacing", (swig_wrapper_func) _wrap_SWFTextField_setLineSpacing, NULL},
    { SWIG_prefix "SWFTextField_setPadding", (swig_wrapper_func) _wrap_SWFTextField_setPadding, NULL},
    { SWIG_prefix "SWFTextField_addChars", (swig_wrapper_func) _wrap_SWFTextField_addChars, NULL},
    { SWIG_prefix "SWFTextField_setAlignment", (swig_wrapper_func) _wrap_SWFTextField_setAlignment, NULL},
    { SWIG_prefix "SWFTextField_setLength", (swig_wrapper_func) _wrap_SWFTextField_setLength, NULL},
    { SWIG_prefix "newSWFSoundStream", (swig_wrapper_func) _wrap_newSWFSoundStream, NULL},
    { SWIG_prefix "newSWFSoundStreamFromFileno", (swig_wrapper_func) _wrap_newSWFSoundStreamFromFileno, NULL},
    { SWIG_prefix "newSWFSoundStream_fromInput", (swig_wrapper_func) _wrap_newSWFSoundStream_fromInput, NULL},
    { SWIG_prefix "destroySWFSoundStream", (swig_wrapper_func) _wrap_destroySWFSoundStream, NULL},
    { SWIG_prefix "SWFSoundStream_getDuration", (swig_wrapper_func) _wrap_SWFSoundStream_getDuration, NULL},
    { SWIG_prefix "SWFSoundStream_setInitialMp3Delay", (swig_wrapper_func) _wrap_SWFSoundStream_setInitialMp3Delay, NULL},
    { SWIG_prefix "newSWFSound", (swig_wrapper_func) _wrap_newSWFSound, NULL},
    { SWIG_prefix "newSWFSoundFromFileno", (swig_wrapper_func) _wrap_newSWFSoundFromFileno, NULL},
    { SWIG_prefix "newSWFSound_fromInput", (swig_wrapper_func) _wrap_newSWFSound_fromInput, NULL},
    { SWIG_prefix "newSWFSound_fromSoundStream", (swig_wrapper_func) _wrap_newSWFSound_fromSoundStream, NULL},
    { SWIG_prefix "destroySWFSound", (swig_wrapper_func) _wrap_destroySWFSound, NULL},
    { SWIG_prefix "SWFSound_setInitialMp3Delay", (swig_wrapper_func) _wrap_SWFSound_setInitialMp3Delay, NULL},
    { SWIG_prefix "SWFSoundInstance_setLoopInPoint", (swig_wrapper_func) _wrap_SWFSoundInstance_setLoopInPoint, NULL},
    { SWIG_prefix "SWFSoundInstance_setLoopOutPoint", (swig_wrapper_func) _wrap_SWFSoundInstance_setLoopOutPoint, NULL},
    { SWIG_prefix "SWFSoundInstance_setLoopCount", (swig_wrapper_func) _wrap_SWFSoundInstance_setLoopCount, NULL},
    { SWIG_prefix "SWFSoundInstance_setNoMultiple", (swig_wrapper_func) _wrap_SWFSoundInstance_setNoMultiple, NULL},
    { SWIG_prefix "newSWFCXform", (swig_wrapper_func) _wrap_newSWFCXform, NULL},
    { SWIG_prefix "newSWFAddCXform", (swig_wrapper_func) _wrap_newSWFAddCXform, NULL},
    { SWIG_prefix "newSWFMultCXform", (swig_wrapper_func) _wrap_newSWFMultCXform, NULL},
    { SWIG_prefix "destroySWFCXform", (swig_wrapper_func) _wrap_destroySWFCXform, NULL},
    { SWIG_prefix "SWFCXform_setColorAdd", (swig_wrapper_func) _wrap_SWFCXform_setColorAdd, NULL},
    { SWIG_prefix "SWFCXform_setColorMult", (swig_wrapper_func) _wrap_SWFCXform_setColorMult, NULL},
    { SWIG_prefix "newSWFAction", (swig_wrapper_func) _wrap_newSWFAction, NULL},
    { SWIG_prefix "newSWFAction_fromFile", (swig_wrapper_func) _wrap_newSWFAction_fromFile, NULL},
    { SWIG_prefix "SWFAction_compile", (swig_wrapper_func) _wrap_SWFAction_compile, NULL},
    { SWIG_prefix "destroySWFAction", (swig_wrapper_func) _wrap_destroySWFAction, NULL},
    { SWIG_prefix "SWFAction_getByteCode", (swig_wrapper_func) _wrap_SWFAction_getByteCode, NULL},
    { SWIG_prefix "newSWFInitAction", (swig_wrapper_func) _wrap_newSWFInitAction, NULL},
    { SWIG_prefix "newSWFInitAction_withId", (swig_wrapper_func) _wrap_newSWFInitAction_withId, NULL},
    { SWIG_prefix "newSWFButton", (swig_wrapper_func) _wrap_newSWFButton, NULL},
    { SWIG_prefix "destroySWFButton", (swig_wrapper_func) _wrap_destroySWFButton, NULL},
    { SWIG_prefix "SWFButton_addCharacter", (swig_wrapper_func) _wrap_SWFButton_addCharacter, NULL},
    { SWIG_prefix "SWFButton_addAction", (swig_wrapper_func) _wrap_SWFButton_addAction, NULL},
    { SWIG_prefix "SWFButton_addSound", (swig_wrapper_func) _wrap_SWFButton_addSound, NULL},
    { SWIG_prefix "SWFButton_setMenu", (swig_wrapper_func) _wrap_SWFButton_setMenu, NULL},
    { SWIG_prefix "SWFButton_setScalingGrid", (swig_wrapper_func) _wrap_SWFButton_setScalingGrid, NULL},
    { SWIG_prefix "SWFButton_removeScalingGrid", (swig_wrapper_func) _wrap_SWFButton_removeScalingGrid, NULL},
    { SWIG_prefix "SWFButtonRecord_setDepth", (swig_wrapper_func) _wrap_SWFButtonRecord_setDepth, NULL},
    { SWIG_prefix "SWFButtonRecord_addFilter", (swig_wrapper_func) _wrap_SWFButtonRecord_addFilter, NULL},
    { SWIG_prefix "SWFButtonRecord_setBlendMode", (swig_wrapper_func) _wrap_SWFButtonRecord_setBlendMode, NULL},
    { SWIG_prefix "SWFButtonRecord_move", (swig_wrapper_func) _wrap_SWFButtonRecord_move, NULL},
    { SWIG_prefix "SWFButtonRecord_moveTo", (swig_wrapper_func) _wrap_SWFButtonRecord_moveTo, NULL},
    { SWIG_prefix "SWFButtonRecord_rotate", (swig_wrapper_func) _wrap_SWFButtonRecord_rotate, NULL},
    { SWIG_prefix "SWFButtonRecord_rotateTo", (swig_wrapper_func) _wrap_SWFButtonRecord_rotateTo, NULL},
    { SWIG_prefix "SWFButtonRecord_scale", (swig_wrapper_func) _wrap_SWFButtonRecord_scale, NULL},
    { SWIG_prefix "SWFButtonRecord_scaleTo", (swig_wrapper_func) _wrap_SWFButtonRecord_scaleTo, NULL},
    { SWIG_prefix "SWFButtonRecord_skewX", (swig_wrapper_func) _wrap_SWFButtonRecord_skewX, NULL},
    { SWIG_prefix "SWFButtonRecord_skewXTo", (swig_wrapper_func) _wrap_SWFButtonRecord_skewXTo, NULL},
    { SWIG_prefix "SWFButtonRecord_skewY", (swig_wrapper_func) _wrap_SWFButtonRecord_skewY, NULL},
    { SWIG_prefix "SWFButtonRecord_skewYTo", (swig_wrapper_func) _wrap_SWFButtonRecord_skewYTo, NULL},
    { SWIG_prefix "newSWFVideoStream_fromFile", (swig_wrapper_func) _wrap_newSWFVideoStream_fromFile, NULL},
    { SWIG_prefix "newSWFVideoStream_fromInput", (swig_wrapper_func) _wrap_newSWFVideoStream_fromInput, NULL},
    { SWIG_prefix "newSWFVideoStream", (swig_wrapper_func) _wrap_newSWFVideoStream, NULL},
    { SWIG_prefix "SWFVideoStream_setDimension", (swig_wrapper_func) _wrap_SWFVideoStream_setDimension, NULL},
    { SWIG_prefix "SWFVideoStream_getNumFrames", (swig_wrapper_func) _wrap_SWFVideoStream_getNumFrames, NULL},
    { SWIG_prefix "SWFVideoStream_hasAudio", (swig_wrapper_func) _wrap_SWFVideoStream_hasAudio, NULL},
    { SWIG_prefix "SWFVideoStream_setFrameMode", (swig_wrapper_func) _wrap_SWFVideoStream_setFrameMode, NULL},
    { SWIG_prefix "SWFVideoStream_nextFrame", (swig_wrapper_func) _wrap_SWFVideoStream_nextFrame, NULL},
    { SWIG_prefix "SWFVideoStream_seek", (swig_wrapper_func) _wrap_SWFVideoStream_seek, NULL},
    { SWIG_prefix "destroySWFVideoStream", (swig_wrapper_func) _wrap_destroySWFVideoStream, NULL},
    { SWIG_prefix "newSWFSprite", (swig_wrapper_func) _wrap_newSWFSprite, NULL},
    { SWIG_prefix "destroySWFSprite", (swig_wrapper_func) _wrap_destroySWFSprite, NULL},
    { SWIG_prefix "SWFSprite_addBlock", (swig_wrapper_func) _wrap_SWFSprite_addBlock, NULL},
    { SWIG_prefix "newSWFPosition", (swig_wrapper_func) _wrap_newSWFPosition, NULL},
    { SWIG_prefix "destroySWFPosition", (swig_wrapper_func) _wrap_destroySWFPosition, NULL},
    { SWIG_prefix "SWFPosition_skewX", (swig_wrapper_func) _wrap_SWFPosition_skewX, NULL},
    { SWIG_prefix "SWFPosition_skewXTo", (swig_wrapper_func) _wrap_SWFPosition_skewXTo, NULL},
    { SWIG_prefix "SWFPosition_skewY", (swig_wrapper_func) _wrap_SWFPosition_skewY, NULL},
    { SWIG_prefix "SWFPosition_skewYTo", (swig_wrapper_func) _wrap_SWFPosition_skewYTo, NULL},
    { SWIG_prefix "SWFPosition_scaleX", (swig_wrapper_func) _wrap_SWFPosition_scaleX, NULL},
    { SWIG_prefix "SWFPosition_scaleXTo", (swig_wrapper_func) _wrap_SWFPosition_scaleXTo, NULL},
    { SWIG_prefix "SWFPosition_scaleY", (swig_wrapper_func) _wrap_SWFPosition_scaleY, NULL},
    { SWIG_prefix "SWFPosition_scaleYTo", (swig_wrapper_func) _wrap_SWFPosition_scaleYTo, NULL},
    { SWIG_prefix "SWFPosition_scaleXY", (swig_wrapper_func) _wrap_SWFPosition_scaleXY, NULL},
    { SWIG_prefix "SWFPosition_scaleXYTo", (swig_wrapper_func) _wrap_SWFPosition_scaleXYTo, NULL},
    { SWIG_prefix "SWFPosition_getMatrix", (swig_wrapper_func) _wrap_SWFPosition_getMatrix, NULL},
    { SWIG_prefix "SWFPosition_setMatrix", (swig_wrapper_func) _wrap_SWFPosition_setMatrix, NULL},
    { SWIG_prefix "SWFPosition_rotate", (swig_wrapper_func) _wrap_SWFPosition_rotate, NULL},
    { SWIG_prefix "SWFPosition_rotateTo", (swig_wrapper_func) _wrap_SWFPosition_rotateTo, NULL},
    { SWIG_prefix "SWFPosition_move", (swig_wrapper_func) _wrap_SWFPosition_move, NULL},
    { SWIG_prefix "SWFPosition_moveTo", (swig_wrapper_func) _wrap_SWFPosition_moveTo, NULL},
    { SWIG_prefix "SWFPosition_getRotation", (swig_wrapper_func) _wrap_SWFPosition_getRotation, NULL},
    { SWIG_prefix "SWFPosition_getX", (swig_wrapper_func) _wrap_SWFPosition_getX, NULL},
    { SWIG_prefix "SWFPosition_getY", (swig_wrapper_func) _wrap_SWFPosition_getY, NULL},
    { SWIG_prefix "SWFPosition_getXY", (swig_wrapper_func) _wrap_SWFPosition_getXY, NULL},
    { SWIG_prefix "SWFPosition_getXScale", (swig_wrapper_func) _wrap_SWFPosition_getXScale, NULL},
    { SWIG_prefix "SWFPosition_getYScale", (swig_wrapper_func) _wrap_SWFPosition_getYScale, NULL},
    { SWIG_prefix "SWFPosition_getXYScale", (swig_wrapper_func) _wrap_SWFPosition_getXYScale, NULL},
    { SWIG_prefix "SWFPosition_getXSkew", (swig_wrapper_func) _wrap_SWFPosition_getXSkew, NULL},
    { SWIG_prefix "SWFPosition_getYSkew", (swig_wrapper_func) _wrap_SWFPosition_getYSkew, NULL},
    { SWIG_prefix "SWFPosition_getXYSkew", (swig_wrapper_func) _wrap_SWFPosition_getXYSkew, NULL},
    { SWIG_prefix "SWFDisplayItem_getCharacter", (swig_wrapper_func) _wrap_SWFDisplayItem_getCharacter, NULL},
    { SWIG_prefix "SWFDisplayItem_endMask", (swig_wrapper_func) _wrap_SWFDisplayItem_endMask, NULL},
    { SWIG_prefix "SWFDisplayItem_move", (swig_wrapper_func) _wrap_SWFDisplayItem_move, NULL},
    { SWIG_prefix "SWFDisplayItem_moveTo", (swig_wrapper_func) _wrap_SWFDisplayItem_moveTo, NULL},
    { SWIG_prefix "SWFDisplayItem_rotate", (swig_wrapper_func) _wrap_SWFDisplayItem_rotate, NULL},
    { SWIG_prefix "SWFDisplayItem_rotateTo", (swig_wrapper_func) _wrap_SWFDisplayItem_rotateTo, NULL},
    { SWIG_prefix "SWFDisplayItem_scale", (swig_wrapper_func) _wrap_SWFDisplayItem_scale, NULL},
    { SWIG_prefix "SWFDisplayItem_scaleTo", (swig_wrapper_func) _wrap_SWFDisplayItem_scaleTo, NULL},
    { SWIG_prefix "SWFDisplayItem_skewX", (swig_wrapper_func) _wrap_SWFDisplayItem_skewX, NULL},
    { SWIG_prefix "SWFDisplayItem_skewXTo", (swig_wrapper_func) _wrap_SWFDisplayItem_skewXTo, NULL},
    { SWIG_prefix "SWFDisplayItem_skewY", (swig_wrapper_func) _wrap_SWFDisplayItem_skewY, NULL},
    { SWIG_prefix "SWFDisplayItem_skewYTo", (swig_wrapper_func) _wrap_SWFDisplayItem_skewYTo, NULL},
    { SWIG_prefix "SWFDisplayItem_getPosition", (swig_wrapper_func) _wrap_SWFDisplayItem_getPosition, NULL},
    { SWIG_prefix "SWFDisplayItem_getRotation", (swig_wrapper_func) _wrap_SWFDisplayItem_getRotation, NULL},
    { SWIG_prefix "SWFDisplayItem_getScale", (swig_wrapper_func) _wrap_SWFDisplayItem_getScale, NULL},
    { SWIG_prefix "SWFDisplayItem_getSkew", (swig_wrapper_func) _wrap_SWFDisplayItem_getSkew, NULL},
    { SWIG_prefix "SWFDisplayItem_getMatrix", (swig_wrapper_func) _wrap_SWFDisplayItem_getMatrix, NULL},
    { SWIG_prefix "SWFDisplayItem_setMatrix", (swig_wrapper_func) _wrap_SWFDisplayItem_setMatrix, NULL},
    { SWIG_prefix "SWFDisplayItem_getDepth", (swig_wrapper_func) _wrap_SWFDisplayItem_getDepth, NULL},
    { SWIG_prefix "SWFDisplayItem_setDepth", (swig_wrapper_func) _wrap_SWFDisplayItem_setDepth, NULL},
    { SWIG_prefix "SWFDisplayItem_remove", (swig_wrapper_func) _wrap_SWFDisplayItem_remove, NULL},
    { SWIG_prefix "SWFDisplayItem_setName", (swig_wrapper_func) _wrap_SWFDisplayItem_setName, NULL},
    { SWIG_prefix "SWFDisplayItem_setMaskLevel", (swig_wrapper_func) _wrap_SWFDisplayItem_setMaskLevel, NULL},
    { SWIG_prefix "SWFDisplayItem_setRatio", (swig_wrapper_func) _wrap_SWFDisplayItem_setRatio, NULL},
    { SWIG_prefix "SWFDisplayItem_setCXform", (swig_wrapper_func) _wrap_SWFDisplayItem_setCXform, NULL},
    { SWIG_prefix "SWFDisplayItem_setColorAdd", (swig_wrapper_func) _wrap_SWFDisplayItem_setColorAdd, NULL},
    { SWIG_prefix "SWFDisplayItem_setColorMult", (swig_wrapper_func) _wrap_SWFDisplayItem_setColorMult, NULL},
    { SWIG_prefix "SWFDisplayItem_addAction", (swig_wrapper_func) _wrap_SWFDisplayItem_addAction, NULL},
    { SWIG_prefix "SWFDisplayItem_cacheAsBitmap", (swig_wrapper_func) _wrap_SWFDisplayItem_cacheAsBitmap, NULL},
    { SWIG_prefix "SWFDisplayItem_setBlendMode", (swig_wrapper_func) _wrap_SWFDisplayItem_setBlendMode, NULL},
    { SWIG_prefix "newSWFFill", (swig_wrapper_func) _wrap_newSWFFill, NULL},
    { SWIG_prefix "destroySWFFill", (swig_wrapper_func) _wrap_destroySWFFill, NULL},
    { SWIG_prefix "SWFFill_getFillStyle", (swig_wrapper_func) _wrap_SWFFill_getFillStyle, NULL},
    { SWIG_prefix "SWFFill_skewX", (swig_wrapper_func) _wrap_SWFFill_skewX, NULL},
    { SWIG_prefix "SWFFill_skewXTo", (swig_wrapper_func) _wrap_SWFFill_skewXTo, NULL},
    { SWIG_prefix "SWFFill_skewY", (swig_wrapper_func) _wrap_SWFFill_skewY, NULL},
    { SWIG_prefix "SWFFill_skewYTo", (swig_wrapper_func) _wrap_SWFFill_skewYTo, NULL},
    { SWIG_prefix "SWFFill_scaleX", (swig_wrapper_func) _wrap_SWFFill_scaleX, NULL},
    { SWIG_prefix "SWFFill_scaleXTo", (swig_wrapper_func) _wrap_SWFFill_scaleXTo, NULL},
    { SWIG_prefix "SWFFill_scaleY", (swig_wrapper_func) _wrap_SWFFill_scaleY, NULL},
    { SWIG_prefix "SWFFill_scaleYTo", (swig_wrapper_func) _wrap_SWFFill_scaleYTo, NULL},
    { SWIG_prefix "SWFFill_scaleXY", (swig_wrapper_func) _wrap_SWFFill_scaleXY, NULL},
    { SWIG_prefix "SWFFill_scaleXYTo", (swig_wrapper_func) _wrap_SWFFill_scaleXYTo, NULL},
    { SWIG_prefix "SWFFill_rotate", (swig_wrapper_func) _wrap_SWFFill_rotate, NULL},
    { SWIG_prefix "SWFFill_rotateTo", (swig_wrapper_func) _wrap_SWFFill_rotateTo, NULL},
    { SWIG_prefix "SWFFill_move", (swig_wrapper_func) _wrap_SWFFill_move, NULL},
    { SWIG_prefix "SWFFill_moveTo", (swig_wrapper_func) _wrap_SWFFill_moveTo, NULL},
    { SWIG_prefix "SWFFill_setMatrix", (swig_wrapper_func) _wrap_SWFFill_setMatrix, NULL},
    { SWIG_prefix "SWFShape_setLine", (swig_wrapper_func) _wrap_SWFShape_setLine, NULL},
    { SWIG_prefix "SWFShape_setLine2Filled", (swig_wrapper_func) _wrap_SWFShape_setLine2Filled, NULL},
    { SWIG_prefix "SWFShape_setLine2", (swig_wrapper_func) _wrap_SWFShape_setLine2, NULL},
    { SWIG_prefix "SWFShape_addSolidFill", (swig_wrapper_func) _wrap_SWFShape_addSolidFill, NULL},
    { SWIG_prefix "SWFShape_addGradientFill", (swig_wrapper_func) _wrap_SWFShape_addGradientFill, NULL},
    { SWIG_prefix "SWFShape_addBitmapFill", (swig_wrapper_func) _wrap_SWFShape_addBitmapFill, NULL},
    { SWIG_prefix "SWFShape_setLeftFill", (swig_wrapper_func) _wrap_SWFShape_setLeftFill, NULL},
    { SWIG_prefix "SWFShape_setRightFill", (swig_wrapper_func) _wrap_SWFShape_setRightFill, NULL},
    { SWIG_prefix "SWFShape_drawArc", (swig_wrapper_func) _wrap_SWFShape_drawArc, NULL},
    { SWIG_prefix "SWFShape_drawCircle", (swig_wrapper_func) _wrap_SWFShape_drawCircle, NULL},
    { SWIG_prefix "SWFShape_drawGlyph", (swig_wrapper_func) _wrap_SWFShape_drawGlyph, NULL},
    { SWIG_prefix "SWFShape_drawSizedGlyph", (swig_wrapper_func) _wrap_SWFShape_drawSizedGlyph, NULL},
    { SWIG_prefix "SWFShape_drawCubic", (swig_wrapper_func) _wrap_SWFShape_drawCubic, NULL},
    { SWIG_prefix "SWFShape_drawCubicTo", (swig_wrapper_func) _wrap_SWFShape_drawCubicTo, NULL},
    { SWIG_prefix "SWFShape_drawCharacterBounds", (swig_wrapper_func) _wrap_SWFShape_drawCharacterBounds, NULL},
    { SWIG_prefix "newSWFMovieClip", (swig_wrapper_func) _wrap_newSWFMovieClip, NULL},
    { SWIG_prefix "destroySWFMovieClip", (swig_wrapper_func) _wrap_destroySWFMovieClip, NULL},
    { SWIG_prefix "SWFMovieClip_setNumberOfFrames", (swig_wrapper_func) _wrap_SWFMovieClip_setNumberOfFrames, NULL},
    { SWIG_prefix "SWFMovieClip_nextFrame", (swig_wrapper_func) _wrap_SWFMovieClip_nextFrame, NULL},
    { SWIG_prefix "SWFMovieClip_labelFrame", (swig_wrapper_func) _wrap_SWFMovieClip_labelFrame, NULL},
    { SWIG_prefix "SWFMovieClip_add", (swig_wrapper_func) _wrap_SWFMovieClip_add, NULL},
    { SWIG_prefix "SWFMovieClip_remove", (swig_wrapper_func) _wrap_SWFMovieClip_remove, NULL},
    { SWIG_prefix "SWFMovieClip_setSoundStreamAt", (swig_wrapper_func) _wrap_SWFMovieClip_setSoundStreamAt, NULL},
    { SWIG_prefix "SWFMovieClip_setSoundStream", (swig_wrapper_func) _wrap_SWFMovieClip_setSoundStream, NULL},
    { SWIG_prefix "SWFMovieClip_startSound", (swig_wrapper_func) _wrap_SWFMovieClip_startSound, NULL},
    { SWIG_prefix "SWFMovieClip_stopSound", (swig_wrapper_func) _wrap_SWFMovieClip_stopSound, NULL},
    { SWIG_prefix "destroySWFPrebuiltClip", (swig_wrapper_func) _wrap_destroySWFPrebuiltClip, NULL},
    { SWIG_prefix "newSWFPrebuiltClip_fromFile", (swig_wrapper_func) _wrap_newSWFPrebuiltClip_fromFile, NULL},
    { SWIG_prefix "newSWFPrebuiltClip_fromInput", (swig_wrapper_func) _wrap_newSWFPrebuiltClip_fromInput, NULL},
    { SWIG_prefix "newSWFBinaryData", (swig_wrapper_func) _wrap_newSWFBinaryData, NULL},
    { SWIG_prefix "newSWFMovie", (swig_wrapper_func) _wrap_newSWFMovie, NULL},
    { SWIG_prefix "newSWFMovieWithVersion", (swig_wrapper_func) _wrap_newSWFMovieWithVersion, NULL},
    { SWIG_prefix "destroySWFMovie", (swig_wrapper_func) _wrap_destroySWFMovie, NULL},
    { SWIG_prefix "SWFMovie_setRate", (swig_wrapper_func) _wrap_SWFMovie_setRate, NULL},
    { SWIG_prefix "SWFMovie_getRate", (swig_wrapper_func) _wrap_SWFMovie_getRate, NULL},
    { SWIG_prefix "SWFMovie_setDimension", (swig_wrapper_func) _wrap_SWFMovie_setDimension, NULL},
    { SWIG_prefix "SWFMovie_setNumberOfFrames", (swig_wrapper_func) _wrap_SWFMovie_setNumberOfFrames, NULL},
    { SWIG_prefix "SWFMovie_addExport", (swig_wrapper_func) _wrap_SWFMovie_addExport, NULL},
    { SWIG_prefix "SWFMovie_setBackground", (swig_wrapper_func) _wrap_SWFMovie_setBackground, NULL},
    { SWIG_prefix "SWFMovie_setSoundStream", (swig_wrapper_func) _wrap_SWFMovie_setSoundStream, NULL},
    { SWIG_prefix "SWFMovie_setSoundStreamAt", (swig_wrapper_func) _wrap_SWFMovie_setSoundStreamAt, NULL},
    { SWIG_prefix "SWFMovie_startSound", (swig_wrapper_func) _wrap_SWFMovie_startSound, NULL},
    { SWIG_prefix "SWFMovie_stopSound", (swig_wrapper_func) _wrap_SWFMovie_stopSound, NULL},
    { SWIG_prefix "SWFMovie_add", (swig_wrapper_func) _wrap_SWFMovie_add, NULL},
    { SWIG_prefix "SWFMovie_remove", (swig_wrapper_func) _wrap_SWFMovie_remove, NULL},
    { SWIG_prefix "SWFMovie_nextFrame", (swig_wrapper_func) _wrap_SWFMovie_nextFrame, NULL},
    { SWIG_prefix "SWFMovie_labelFrame", (swig_wrapper_func) _wrap_SWFMovie_labelFrame, NULL},
    { SWIG_prefix "SWFMovie_output", (swig_wrapper_func) _wrap_SWFMovie_output, NULL},
    { SWIG_prefix "SWFMovie_save", (swig_wrapper_func) _wrap_SWFMovie_save, NULL},
    { SWIG_prefix "SWFMovie_protect", (swig_wrapper_func) _wrap_SWFMovie_protect, NULL},
    { SWIG_prefix "SWFMovie_setNetworkAccess", (swig_wrapper_func) _wrap_SWFMovie_setNetworkAccess, NULL},
    { SWIG_prefix "SWFMovie_addMetadata", (swig_wrapper_func) _wrap_SWFMovie_addMetadata, NULL},
    { SWIG_prefix "SWFMovie_setScriptLimits", (swig_wrapper_func) _wrap_SWFMovie_setScriptLimits, NULL},
    { SWIG_prefix "SWFMovie_setTabIndex", (swig_wrapper_func) _wrap_SWFMovie_setTabIndex, NULL},
    { SWIG_prefix "SWFMovie_importFont", (swig_wrapper_func) _wrap_SWFMovie_importFont, NULL},
    { SWIG_prefix "SWFMovie_addFont", (swig_wrapper_func) _wrap_SWFMovie_addFont, NULL},
    { SWIG_prefix "SWFMovie_importCharacter", (swig_wrapper_func) _wrap_SWFMovie_importCharacter, NULL},
    { SWIG_prefix "SWFMovie_assignSymbol", (swig_wrapper_func) _wrap_SWFMovie_assignSymbol, NULL},
    { SWIG_prefix "SWFMovie_defineScene", (swig_wrapper_func) _wrap_SWFMovie_defineScene, NULL},
    { SWIG_prefix "SWFMovie_namedAnchor", (swig_wrapper_func) _wrap_SWFMovie_namedAnchor, NULL},
    { SWIG_prefix "SWFMovie_writeExports", (swig_wrapper_func) _wrap_SWFMovie_writeExports, NULL},
    { SWIG_prefix "SWFColor_red_set", (swig_wrapper_func) _wrap_SWFColor_red_set, NULL},
    { SWIG_prefix "SWFColor_red_get", (swig_wrapper_func) _wrap_SWFColor_red_get, NULL},
    { SWIG_prefix "SWFColor_green_set", (swig_wrapper_func) _wrap_SWFColor_green_set, NULL},
    { SWIG_prefix "SWFColor_green_get", (swig_wrapper_func) _wrap_SWFColor_green_get, NULL},
    { SWIG_prefix "SWFColor_blue_set", (swig_wrapper_func) _wrap_SWFColor_blue_set, NULL},
    { SWIG_prefix "SWFColor_blue_get", (swig_wrapper_func) _wrap_SWFColor_blue_get, NULL},
    { SWIG_prefix "SWFColor_alpha_set", (swig_wrapper_func) _wrap_SWFColor_alpha_set, NULL},
    { SWIG_prefix "SWFColor_alpha_get", (swig_wrapper_func) _wrap_SWFColor_alpha_get, NULL},
    { SWIG_prefix "new_SWFColor", (swig_wrapper_func) _wrap_new_SWFColor, NULL},
    { SWIG_prefix "delete_SWFColor", (swig_wrapper_func) _wrap_delete_SWFColor, NULL},
    { SWIG_prefix "SWFColor", (swig_wrapper_func) SWIG_ObjectConstructor, (ClientData)&_wrap_class_SWFColor},
    { SWIG_prefix "newSWFShadow", (swig_wrapper_func) _wrap_newSWFShadow, NULL},
    { SWIG_prefix "destroySWFShadow", (swig_wrapper_func) _wrap_destroySWFShadow, NULL},
    { SWIG_prefix "newSWFBlur", (swig_wrapper_func) _wrap_newSWFBlur, NULL},
    { SWIG_prefix "destroySWFBlur", (swig_wrapper_func) _wrap_destroySWFBlur, NULL},
    { SWIG_prefix "newSWFFilterMatrix", (swig_wrapper_func) _wrap_newSWFFilterMatrix, NULL},
    { SWIG_prefix "destroySWFFilterMatrix", (swig_wrapper_func) _wrap_destroySWFFilterMatrix, NULL},
    { SWIG_prefix "destroySWFFilter", (swig_wrapper_func) _wrap_destroySWFFilter, NULL},
    { SWIG_prefix "newColorMatrixFilter", (swig_wrapper_func) _wrap_newColorMatrixFilter, NULL},
    { SWIG_prefix "newConvolutionFilter", (swig_wrapper_func) _wrap_newConvolutionFilter, NULL},
    { SWIG_prefix "newGradientBevelFilter", (swig_wrapper_func) _wrap_newGradientBevelFilter, NULL},
    { SWIG_prefix "newGradientGlowFilter", (swig_wrapper_func) _wrap_newGradientGlowFilter, NULL},
    { SWIG_prefix "newBevelFilter", (swig_wrapper_func) _wrap_newBevelFilter, NULL},
    { SWIG_prefix "newGlowFilter", (swig_wrapper_func) _wrap_newGlowFilter, NULL},
    { SWIG_prefix "newBlurFilter", (swig_wrapper_func) _wrap_newBlurFilter, NULL},
    { SWIG_prefix "newDropShadowFilter", (swig_wrapper_func) _wrap_newDropShadowFilter, NULL},
    { SWIG_prefix "SWFDisplayItem_addFilter", (swig_wrapper_func) _wrap_SWFDisplayItem_addFilter, NULL},
    {0, 0, 0}
};

static swig_var_info swig_variables[] = {
    {0,0,0,0}
};

static swig_const_info swig_constants[] = {
    {0,0,0,0,0,0}
};

/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */

static void *_p_floatArrayTo_p_float(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((float *)  ((floatArray *) x));
}
static swig_type_info _swigt__p_Blur_s = {"_p_Blur_s", "struct Blur_s *|SWFBlur", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FilterMatrix_s = {"_p_FilterMatrix_s", "struct FilterMatrix_s *|SWFFilterMatrix", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GradientInterpolationMode = {"_p_GradientInterpolationMode", "enum GradientInterpolationMode *|GradientInterpolationMode *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GradientSpreadMode = {"_p_GradientSpreadMode", "enum GradientSpreadMode *|GradientSpreadMode *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SWFCXform = {"_p_SWFCXform", "SWFCXform *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SWFColor = {"_p_SWFColor", "struct SWFColor *|SWFColor *", 0, 0, (void*)&_wrap_class_SWFColor, 0};
static swig_type_info _swigt__p_SWFDBLBitmap = {"_p_SWFDBLBitmap", "SWFDBLBitmap *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SWFFillStyle = {"_p_SWFFillStyle", "SWFFillStyle *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SWFFilterFmt = {"_p_SWFFilterFmt", "enum SWFFilterFmt *|SWFFilterFmt *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SWFInput = {"_p_SWFInput", "SWFInput *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SWFJpegBitmap = {"_p_SWFJpegBitmap", "SWFJpegBitmap *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SWFJpegWithAlpha = {"_p_SWFJpegWithAlpha", "SWFJpegWithAlpha *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SWFLineStyle = {"_p_SWFLineStyle", "SWFLineStyle *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SWFPosition = {"_p_SWFPosition", "SWFPosition *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SWFSoundInstance = {"_p_SWFSoundInstance", "SWFSoundInstance *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SWFSprite = {"_p_SWFSprite", "SWFSprite *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SWFTextFieldAlignment = {"_p_SWFTextFieldAlignment", "enum SWFTextFieldAlignment *|SWFTextFieldAlignment *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Shadow_s = {"_p_Shadow_s", "struct Shadow_s *|SWFShadow", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_f_unsigned_char_p_void__void = {"_p_f_unsigned_char_p_void__void", "SWFByteOutputMethod|void (*)(unsigned char,void *)", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_float = {"_p_float", "float *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_floatArray = {"_p_floatArray", "floatArray *", 0, 0, (void*)&_wrap_class_floatArray, 0};
static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_void = {"_p_void", "SWFMovieClip|SWFMovie|SWFFontCollection|SWFButtonRecord|SWFGradient|SWFDisplayItem|SWFShape|SWFBitmap|SWFText|SWFVideoStream|SWFFont|SWFButton|SWFMorph|SWFSoundStream|SWFTextField|void *|SWFPrebuiltClip|SWFMatrix|SWFFill|SWFSound|SWFInitAction|SWFAction|SWFFilter|SWFBinaryData|SWFBrowserFont|SWFCharacter|SWFFontCharacter", 0, 0, (void*)0, 0};

static swig_type_info *swig_type_initial[] = {
  &_swigt__p_Blur_s,
  &_swigt__p_FILE,
  &_swigt__p_FilterMatrix_s,
  &_swigt__p_GradientInterpolationMode,
  &_swigt__p_GradientSpreadMode,
  &_swigt__p_SWFCXform,
  &_swigt__p_SWFColor,
  &_swigt__p_SWFDBLBitmap,
  &_swigt__p_SWFFillStyle,
  &_swigt__p_SWFFilterFmt,
  &_swigt__p_SWFInput,
  &_swigt__p_SWFJpegBitmap,
  &_swigt__p_SWFJpegWithAlpha,
  &_swigt__p_SWFLineStyle,
  &_swigt__p_SWFPosition,
  &_swigt__p_SWFSoundInstance,
  &_swigt__p_SWFSprite,
  &_swigt__p_SWFTextFieldAlignment,
  &_swigt__p_Shadow_s,
  &_swigt__p_char,
  &_swigt__p_double,
  &_swigt__p_f_unsigned_char_p_void__void,
  &_swigt__p_float,
  &_swigt__p_floatArray,
  &_swigt__p_int,
  &_swigt__p_unsigned_char,
  &_swigt__p_unsigned_short,
  &_swigt__p_void,
};

static swig_cast_info _swigc__p_Blur_s[] = {  {&_swigt__p_Blur_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FILE[] = {  {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FilterMatrix_s[] = {  {&_swigt__p_FilterMatrix_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GradientInterpolationMode[] = {  {&_swigt__p_GradientInterpolationMode, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GradientSpreadMode[] = {  {&_swigt__p_GradientSpreadMode, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SWFCXform[] = {  {&_swigt__p_SWFCXform, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SWFColor[] = {  {&_swigt__p_SWFColor, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SWFDBLBitmap[] = {  {&_swigt__p_SWFDBLBitmap, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SWFFillStyle[] = {  {&_swigt__p_SWFFillStyle, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SWFFilterFmt[] = {  {&_swigt__p_SWFFilterFmt, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SWFInput[] = {  {&_swigt__p_SWFInput, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SWFJpegBitmap[] = {  {&_swigt__p_SWFJpegBitmap, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SWFJpegWithAlpha[] = {  {&_swigt__p_SWFJpegWithAlpha, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SWFLineStyle[] = {  {&_swigt__p_SWFLineStyle, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SWFPosition[] = {  {&_swigt__p_SWFPosition, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SWFSoundInstance[] = {  {&_swigt__p_SWFSoundInstance, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SWFSprite[] = {  {&_swigt__p_SWFSprite, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SWFTextFieldAlignment[] = {  {&_swigt__p_SWFTextFieldAlignment, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Shadow_s[] = {  {&_swigt__p_Shadow_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_double[] = {  {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_unsigned_char_p_void__void[] = {  {&_swigt__p_f_unsigned_char_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_float[] = {  {&_swigt__p_float, 0, 0, 0},  {&_swigt__p_floatArray, _p_floatArrayTo_p_float, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_floatArray[] = {  {&_swigt__p_floatArray, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_char[] = {  {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_short[] = {  {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_void[] = {  {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};

static swig_cast_info *swig_cast_initial[] = {
  _swigc__p_Blur_s,
  _swigc__p_FILE,
  _swigc__p_FilterMatrix_s,
  _swigc__p_GradientInterpolationMode,
  _swigc__p_GradientSpreadMode,
  _swigc__p_SWFCXform,
  _swigc__p_SWFColor,
  _swigc__p_SWFDBLBitmap,
  _swigc__p_SWFFillStyle,
  _swigc__p_SWFFilterFmt,
  _swigc__p_SWFInput,
  _swigc__p_SWFJpegBitmap,
  _swigc__p_SWFJpegWithAlpha,
  _swigc__p_SWFLineStyle,
  _swigc__p_SWFPosition,
  _swigc__p_SWFSoundInstance,
  _swigc__p_SWFSprite,
  _swigc__p_SWFTextFieldAlignment,
  _swigc__p_Shadow_s,
  _swigc__p_char,
  _swigc__p_double,
  _swigc__p_f_unsigned_char_p_void__void,
  _swigc__p_float,
  _swigc__p_floatArray,
  _swigc__p_int,
  _swigc__p_unsigned_char,
  _swigc__p_unsigned_short,
  _swigc__p_void,
};


/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */

#ifdef __cplusplus
}
#endif
/* -----------------------------------------------------------------------------
 * Type initialization:
 * This problem is tough by the requirement that no dynamic
 * memory is used. Also, since swig_type_info structures store pointers to
 * swig_cast_info structures and swig_cast_info structures store pointers back
 * to swig_type_info structures, we need some lookup code at initialization.
 * The idea is that swig generates all the structures that are needed.
 * The runtime then collects these partially filled structures.
 * The SWIG_InitializeModule function takes these initial arrays out of
 * swig_module, and does all the lookup, filling in the swig_module.types
 * array with the correct data and linking the correct swig_cast_info
 * structures together.
 *
 * The generated swig_type_info structures are assigned statically to an initial
 * array. We just loop through that array, and handle each type individually.
 * First we lookup if this type has been already loaded, and if so, use the
 * loaded structure instead of the generated one. Then we have to fill in the
 * cast linked list. The cast data is initially stored in something like a
 * two-dimensional array. Each row corresponds to a type (there are the same
 * number of rows as there are in the swig_type_initial array). Each entry in
 * a column is one of the swig_cast_info structures for that type.
 * The cast_initial array is actually an array of arrays, because each row has
 * a variable number of columns. So to actually build the cast linked list,
 * we find the array of casts associated with the type, and loop through it
 * adding the casts to the list. The one last trick we need to do is making
 * sure the type pointer in the swig_cast_info struct is correct.
 *
 * First off, we lookup the cast->type name to see if it is already loaded.
 * There are three cases to handle:
 *  1) If the cast->type has already been loaded AND the type we are adding
 *     casting info to has not been loaded (it is in this module), THEN we
 *     replace the cast->type pointer with the type pointer that has already
 *     been loaded.
 *  2) If BOTH types (the one we are adding casting info to, and the
 *     cast->type) are loaded, THEN the cast info has already been loaded by
 *     the previous module so we just ignore it.
 *  3) Finally, if cast->type has not already been loaded, then we add that
 *     swig_cast_info to the linked list (because the cast->type) pointer will
 *     be correct.
 * ----------------------------------------------------------------------------- */

#ifdef __cplusplus
extern "C" {
#if 0
} /* c-mode */
#endif
#endif

#if 0
#define SWIGRUNTIME_DEBUG
#endif


SWIGRUNTIME void
SWIG_InitializeModule(void *clientdata) {
  size_t i;
  swig_module_info *module_head, *iter;
  int init;
  
  /* check to see if the circular list has been setup, if not, set it up */
  if (swig_module.next==0) {
    /* Initialize the swig_module */
    swig_module.type_initial = swig_type_initial;
    swig_module.cast_initial = swig_cast_initial;
    swig_module.next = &swig_module;
    init = 1;
  } else {
    init = 0;
  }
  
  /* Try and load any already created modules */
  module_head = SWIG_GetModule(clientdata);
  if (!module_head) {
    /* This is the first module loaded for this interpreter */
    /* so set the swig module into the interpreter */
    SWIG_SetModule(clientdata, &swig_module);
  } else {
    /* the interpreter has loaded a SWIG module, but has it loaded this one? */
    iter=module_head;
    do {
      if (iter==&swig_module) {
        /* Our module is already in the list, so there's nothing more to do. */
        return;
      }
      iter=iter->next;
    } while (iter!= module_head);
    
    /* otherwise we must add our module into the list */
    swig_module.next = module_head->next;
    module_head->next = &swig_module;
  }
  
  /* When multiple interpreters are used, a module could have already been initialized in
       a different interpreter, but not yet have a pointer in this interpreter.
       In this case, we do not want to continue adding types... everything should be
       set up already */
  if (init == 0) return;
  
  /* Now work on filling in swig_module.types */
#ifdef SWIGRUNTIME_DEBUG
  printf("SWIG_InitializeModule: size %d\n", swig_module.size);
#endif
  for (i = 0; i < swig_module.size; ++i) {
    swig_type_info *type = 0;
    swig_type_info *ret;
    swig_cast_info *cast;
    
#ifdef SWIGRUNTIME_DEBUG
    printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
#endif
    
    /* if there is another module already loaded */
    if (swig_module.next != &swig_module) {
      type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
    }
    if (type) {
      /* Overwrite clientdata field */
#ifdef SWIGRUNTIME_DEBUG
      printf("SWIG_InitializeModule: found type %s\n", type->name);
#endif
      if (swig_module.type_initial[i]->clientdata) {
        type->clientdata = swig_module.type_initial[i]->clientdata;
#ifdef SWIGRUNTIME_DEBUG
        printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
#endif
      }
    } else {
      type = swig_module.type_initial[i];
    }
    
    /* Insert casting types */
    cast = swig_module.cast_initial[i];
    while (cast->type) {
      /* Don't need to add information already in the list */
      ret = 0;
#ifdef SWIGRUNTIME_DEBUG
      printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
#endif
      if (swig_module.next != &swig_module) {
        ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
#ifdef SWIGRUNTIME_DEBUG
        if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
#endif
      }
      if (ret) {
        if (type == swig_module.type_initial[i]) {
#ifdef SWIGRUNTIME_DEBUG
          printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
#endif
          cast->type = ret;
          ret = 0;
        } else {
          /* Check for casting already in the list */
          swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
#ifdef SWIGRUNTIME_DEBUG
          if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
#endif
          if (!ocast) ret = 0;
        }
      }
      
      if (!ret) {
#ifdef SWIGRUNTIME_DEBUG
        printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
#endif
        if (type->cast) {
          type->cast->prev = cast;
          cast->next = type->cast;
        }
        type->cast = cast;
      }
      cast++;
    }
    /* Set entry in modules->types array equal to the type */
    swig_module.types[i] = type;
  }
  swig_module.types[i] = 0;
  
#ifdef SWIGRUNTIME_DEBUG
  printf("**** SWIG_InitializeModule: Cast List ******\n");
  for (i = 0; i < swig_module.size; ++i) {
    int j = 0;
    swig_cast_info *cast = swig_module.cast_initial[i];
    printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
    while (cast->type) {
      printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
      cast++;
      ++j;
    }
    printf("---- Total casts: %d\n",j);
  }
  printf("**** SWIG_InitializeModule: Cast List ******\n");
#endif
}

/* This function will propagate the clientdata field of type to
* any new swig_type_info structures that have been added into the list
* of equivalent types.  It is like calling
* SWIG_TypeClientData(type, clientdata) a second time.
*/
SWIGRUNTIME void
SWIG_PropagateClientData(void) {
  size_t i;
  swig_cast_info *equiv;
  static int init_run = 0;
  
  if (init_run) return;
  init_run = 1;
  
  for (i = 0; i < swig_module.size; i++) {
    if (swig_module.types[i]->clientdata) {
      equiv = swig_module.types[i]->cast;
      while (equiv) {
        if (!equiv->converter) {
          if (equiv->type && !equiv->type->clientdata)
          SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
        }
        equiv = equiv->next;
      }
    }
  }
}

#ifdef __cplusplus
#if 0
{
  /* c-mode */
#endif
}
#endif


#ifdef __cplusplus
extern "C" {
#endif
  
  /* -----------------------------------------------------------------------------
   * constants/methods manipulation
   * ----------------------------------------------------------------------------- */
  
  /* Install Constants */
  
  SWIGINTERN void
  SWIG_Tcl_InstallConstants(Tcl_Interp *interp, swig_const_info constants[]) {
    size_t i;
    Tcl_Obj *obj;
    
    if (!swigconstTableinit) {
      Tcl_InitHashTable(&swigconstTable, TCL_STRING_KEYS);
      swigconstTableinit = 1;
    }
    for (i = 0; constants[i].type; i++) {
      switch(constants[i].type) {
      case SWIG_TCL_POINTER:
        obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
        break;
      case SWIG_TCL_BINARY:
        obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
        break;
      default:
        obj = 0;
        break;
      }
      if (obj) {
        SWIG_Tcl_SetConstantObj(interp, constants[i].name, obj);
      }
    }
  }
  
  /* Create fast method lookup tables */
  
  SWIGINTERN void
  SWIG_Tcl_InstallMethodLookupTables(void) {
    size_t i;
    
    for (i = 0; i < swig_module.size; ++i) {
      swig_type_info *type = swig_module.type_initial[i];
      if (type->clientdata) {
        swig_class* klass = (swig_class*) type->clientdata;
        swig_method* meth;
        Tcl_InitHashTable(&(klass->hashtable), TCL_STRING_KEYS);
        for (meth = klass->methods; meth && meth->name; ++meth) {
          int newEntry;
          Tcl_HashEntry* hashentry = Tcl_CreateHashEntry(&(klass->hashtable), meth->name, &newEntry);
          Tcl_SetHashValue(hashentry, (ClientData)meth->method);
        }
      }
    }
  }
  
#ifdef __cplusplus
}
#endif

/* -----------------------------------------------------------------------------*
 *  Partial Init method
 * -----------------------------------------------------------------------------*/

SWIGEXPORT int SWIG_init(Tcl_Interp *interp) {
  size_t i;
  if (interp == 0) return TCL_ERROR;
#ifdef USE_TCL_STUBS
  /* (char*) cast is required to avoid compiler warning/error for Tcl < 8.4. */
  if (Tcl_InitStubs(interp, (char*)SWIG_TCL_STUBS_VERSION, 0) == NULL) {
    return TCL_ERROR;
  }
#endif  
#ifdef USE_TK_STUBS
  /* (char*) cast is required to avoid compiler warning/error. */
  if (Tk_InitStubs(interp, (char*)SWIG_TCL_STUBS_VERSION, 0) == NULL) {
    return TCL_ERROR;
  }
#endif
  
  Tcl_PkgProvide(interp, (char*)SWIG_name, (char*)SWIG_version);
  
#ifdef SWIG_namespace
  Tcl_Eval(interp, "namespace eval " SWIG_namespace " { }");
#endif
  
  SWIG_InitializeModule((void *) interp);
  SWIG_PropagateClientData();
  
  for (i = 0; swig_commands[i].name; i++) {
    Tcl_CreateObjCommand(interp, (char *) swig_commands[i].name, (swig_wrapper_func) swig_commands[i].wrapper,
      swig_commands[i].clientdata, NULL);
  }
  for (i = 0; swig_variables[i].name; i++) {
    Tcl_SetVar(interp, (char *) swig_variables[i].name, (char *) "", TCL_GLOBAL_ONLY);
    Tcl_TraceVar(interp, (char *) swig_variables[i].name, TCL_TRACE_READS | TCL_GLOBAL_ONLY, 
      (Tcl_VarTraceProc *) swig_variables[i].get, (ClientData) swig_variables[i].addr);
    Tcl_TraceVar(interp, (char *) swig_variables[i].name, TCL_TRACE_WRITES | TCL_GLOBAL_ONLY, 
      (Tcl_VarTraceProc *) swig_variables[i].set, (ClientData) swig_variables[i].addr);
  }
  
  SWIG_Tcl_InstallConstants(interp, swig_constants);
  SWIG_Tcl_InstallMethodLookupTables();
  
  
  SWIG_Tcl_SetConstantObj(interp, "SWF_GRADIENT_PAD", SWIG_From_int((int)(SWF_GRADIENT_PAD)));
  SWIG_Tcl_SetConstantObj(interp, "SWF_GRADIENT_REFLECT", SWIG_From_int((int)(SWF_GRADIENT_REFLECT)));
  SWIG_Tcl_SetConstantObj(interp, "SWF_GRADIENT_REPEAT", SWIG_From_int((int)(SWF_GRADIENT_REPEAT)));
  SWIG_Tcl_SetConstantObj(interp, "SWF_GRADIENT_NORMAL", SWIG_From_int((int)(SWF_GRADIENT_NORMAL)));
  SWIG_Tcl_SetConstantObj(interp, "SWF_GRADIENT_LINEAR", SWIG_From_int((int)(SWF_GRADIENT_LINEAR)));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILL_SOLID", SWIG_From_int((int)(0x00)));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILL_GRADIENT", SWIG_From_int((int)(0x10)));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILL_LINEAR_GRADIENT", SWIG_From_int((int)(0x10)));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILL_RADIAL_GRADIENT", SWIG_From_int((int)(0x12)));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILL_BITMAP", SWIG_From_int((int)(0x40)));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILL_TILED_BITMAP", SWIG_From_int((int)(0x40)));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILL_CLIPPED_BITMAP", SWIG_From_int((int)(0x41)));
  SWIG_Tcl_SetConstantObj(interp, "SWF_LINESTYLE_CAP_ROUND", SWIG_From_int((int)((0 << 14))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_LINESTYLE_CAP_NONE", SWIG_From_int((int)((1 << 14))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_LINESTYLE_CAP_SQUARE", SWIG_From_int((int)((2 << 14))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_LINESTYLE_JOIN_ROUND", SWIG_From_int((int)((0 << 12))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_LINESTYLE_JOIN_BEVEL", SWIG_From_int((int)((1 << 12))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_LINESTYLE_JOIN_MITER", SWIG_From_int((int)((2 << 12))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_LINESTYLE_FLAG_NOHSCALE", SWIG_From_int((int)((1 << 10))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_LINESTYLE_FLAG_NOVSCALE", SWIG_From_int((int)((1 << 9))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_LINESTYLE_FLAG_HINTING", SWIG_From_int((int)((1 << 8))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_LINESTYLE_FLAG_NOCLOSE", SWIG_From_int((int)((1 << 2))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_LINESTYLE_FLAG_ENDCAP_ROUND", SWIG_From_int((int)((0 << 0))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_LINESTYLE_FLAG_ENDCAP_NONE", SWIG_From_int((int)((1 << 0))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_LINESTYLE_FLAG_ENDCAP_SQUARE", SWIG_From_int((int)((2 << 0))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SHAPE3", SWIG_From_int((int)(3)));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SHAPE4", SWIG_From_int((int)(4)));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SHAPE_USESCALINGSTROKES", SWIG_From_int((int)((1 << 0))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SHAPE_USENONSCALINGSTROKES", SWIG_From_int((int)((1 << 1))));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_ONMASK", SWIG_From_int((int)(0x2005)));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_OFFMASK", SWIG_From_int((int)(0x3BFF)));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_HASFONT", SWIG_From_int((int)((1 << 0))));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_HASLENGTH", SWIG_From_int((int)((1 << 1))));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_HASCOLOR", SWIG_From_int((int)((1 << 2))));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_NOEDIT", SWIG_From_int((int)((1 << 3))));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_PASSWORD", SWIG_From_int((int)((1 << 4))));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_MULTILINE", SWIG_From_int((int)((1 << 5))));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_WORDWRAP", SWIG_From_int((int)((1 << 6))));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_HASTEXT", SWIG_From_int((int)((1 << 7))));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_USEFONT", SWIG_From_int((int)((1 << 8))));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_HTML", SWIG_From_int((int)((1 << 9))));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_DRAWBOX", SWIG_From_int((int)((1 << 11))));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_NOSELECT", SWIG_From_int((int)((1 << 12))));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_HASLAYOUT", SWIG_From_int((int)((1 << 13))));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_AUTOSIZE", SWIG_From_int((int)((1 << 14))));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_ALIGN_LEFT", SWIG_From_int((int)(SWFTEXTFIELD_ALIGN_LEFT)));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_ALIGN_RIGHT", SWIG_From_int((int)(SWFTEXTFIELD_ALIGN_RIGHT)));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_ALIGN_CENTER", SWIG_From_int((int)(SWFTEXTFIELD_ALIGN_CENTER)));
  SWIG_Tcl_SetConstantObj(interp, "SWFTEXTFIELD_ALIGN_JUSTIFY", SWIG_From_int((int)(SWFTEXTFIELD_ALIGN_JUSTIFY)));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SOUND_COMPRESSION", SWIG_From_int((int)(0xf0)));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SOUND_NOT_COMPRESSED", SWIG_From_int((int)((0 << 4))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SOUND_ADPCM_COMPRESSED", SWIG_From_int((int)((1 << 4))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SOUND_MP3_COMPRESSED", SWIG_From_int((int)((2 << 4))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SOUND_NOT_COMPRESSED_LE", SWIG_From_int((int)((3 << 4))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SOUND_NELLY_COMPRESSED", SWIG_From_int((int)((6 << 4))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SOUND_RATE", SWIG_From_int((int)(0x0c)));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SOUND_5KHZ", SWIG_From_int((int)((0 << 2))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SOUND_11KHZ", SWIG_From_int((int)((1 << 2))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SOUND_22KHZ", SWIG_From_int((int)((2 << 2))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SOUND_44KHZ", SWIG_From_int((int)((3 << 2))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SOUND_BITS", SWIG_From_int((int)(0x02)));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SOUND_8BITS", SWIG_From_int((int)((0 << 1))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SOUND_16BITS", SWIG_From_int((int)((1 << 1))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SOUND_CHANNELS", SWIG_From_int((int)(0x01)));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SOUND_MONO", SWIG_From_int((int)((0 << 0))));
  SWIG_Tcl_SetConstantObj(interp, "SWF_SOUND_STEREO", SWIG_From_int((int)((1 << 0))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_HIT", SWIG_From_int((int)((1 << 3))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_DOWN", SWIG_From_int((int)((1 << 2))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_OVER", SWIG_From_int((int)((1 << 1))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_UP", SWIG_From_int((int)((1 << 0))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTONRECORD_HITSTATE", SWIG_From_int((int)((1 << 3))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTONRECORD_DOWNSTATE", SWIG_From_int((int)((1 << 2))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTONRECORD_OVERSTATE", SWIG_From_int((int)((1 << 1))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTONRECORD_UPSTATE", SWIG_From_int((int)((1 << 0))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_OVERDOWNTOIDLE", SWIG_From_int((int)((1 << 8))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_IDLETOOVERDOWN", SWIG_From_int((int)((1 << 7))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_OUTDOWNTOIDLE", SWIG_From_int((int)((1 << 6))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_OUTDOWNTOOVERDOWN", SWIG_From_int((int)((1 << 5))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_OVERDOWNTOOUTDOWN", SWIG_From_int((int)((1 << 4))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_OVERDOWNTOOVERUP", SWIG_From_int((int)((1 << 3))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_OVERUPTOOVERDOWN", SWIG_From_int((int)((1 << 2))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_OVERUPTOIDLE", SWIG_From_int((int)((1 << 1))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_IDLETOOVERUP", SWIG_From_int((int)((1 << 0))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_MOUSEUPOUTSIDE", SWIG_From_int((int)((1 << 6))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_DRAGOVER", SWIG_From_int((int)(((1 << 5)|(1 << 7)))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_DRAGOUT", SWIG_From_int((int)(((1 << 4)|(1 << 8)))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_MOUSEUP", SWIG_From_int((int)((1 << 3))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_MOUSEDOWN", SWIG_From_int((int)((1 << 2))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_MOUSEOUT", SWIG_From_int((int)((1 << 1))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBUTTON_MOUSEOVER", SWIG_From_int((int)((1 << 0))));
  SWIG_Tcl_SetConstantObj(interp, "SWFVIDEOSTREAM_MODE_AUTO", SWIG_From_int((int)(0)));
  SWIG_Tcl_SetConstantObj(interp, "SWFVIDEOSTREAM_MODE_MANUAL", SWIG_From_int((int)(1)));
  SWIG_Tcl_SetConstantObj(interp, "SWFACTION_ONLOAD", SWIG_From_int((int)((1 << 0))));
  SWIG_Tcl_SetConstantObj(interp, "SWFACTION_ENTERFRAME", SWIG_From_int((int)((1 << 1))));
  SWIG_Tcl_SetConstantObj(interp, "SWFACTION_UNLOAD", SWIG_From_int((int)((1 << 2))));
  SWIG_Tcl_SetConstantObj(interp, "SWFACTION_MOUSEMOVE", SWIG_From_int((int)((1 << 3))));
  SWIG_Tcl_SetConstantObj(interp, "SWFACTION_MOUSEDOWN", SWIG_From_int((int)((1 << 4))));
  SWIG_Tcl_SetConstantObj(interp, "SWFACTION_MOUSEUP", SWIG_From_int((int)((1 << 5))));
  SWIG_Tcl_SetConstantObj(interp, "SWFACTION_KEYDOWN", SWIG_From_int((int)((1 << 6))));
  SWIG_Tcl_SetConstantObj(interp, "SWFACTION_KEYUP", SWIG_From_int((int)((1 << 7))));
  SWIG_Tcl_SetConstantObj(interp, "SWFACTION_DATA", SWIG_From_int((int)((1 << 8))));
  SWIG_Tcl_SetConstantObj(interp, "SWFBLEND_MODE_NULL", SWIG_From_int((int)(SWFBLEND_MODE_NULL)));
  SWIG_Tcl_SetConstantObj(interp, "SWFBLEND_MODE_NORMAL", SWIG_From_int((int)(SWFBLEND_MODE_NORMAL)));
  SWIG_Tcl_SetConstantObj(interp, "SWFBLEND_MODE_LAYER", SWIG_From_int((int)(SWFBLEND_MODE_LAYER)));
  SWIG_Tcl_SetConstantObj(interp, "SWFBLEND_MODE_MULT", SWIG_From_int((int)(SWFBLEND_MODE_MULT)));
  SWIG_Tcl_SetConstantObj(interp, "SWFBLEND_MODE_SCREEN", SWIG_From_int((int)(SWFBLEND_MODE_SCREEN)));
  SWIG_Tcl_SetConstantObj(interp, "SWFBLEND_MODE_LIGHTEN", SWIG_From_int((int)(SWFBLEND_MODE_LIGHTEN)));
  SWIG_Tcl_SetConstantObj(interp, "SWFBLEND_MODE_DARKEN", SWIG_From_int((int)(SWFBLEND_MODE_DARKEN)));
  SWIG_Tcl_SetConstantObj(interp, "SWFBLEND_MODE_DIFF", SWIG_From_int((int)(SWFBLEND_MODE_DIFF)));
  SWIG_Tcl_SetConstantObj(interp, "SWFBLEND_MODE_ADD", SWIG_From_int((int)(SWFBLEND_MODE_ADD)));
  SWIG_Tcl_SetConstantObj(interp, "SWFBLEND_MODE_SUB", SWIG_From_int((int)(SWFBLEND_MODE_SUB)));
  SWIG_Tcl_SetConstantObj(interp, "SWFBLEND_MODE_INV", SWIG_From_int((int)(SWFBLEND_MODE_INV)));
  SWIG_Tcl_SetConstantObj(interp, "SWFBLEND_MODE_ALPHA", SWIG_From_int((int)(SWFBLEND_MODE_ALPHA)));
  SWIG_Tcl_SetConstantObj(interp, "SWFBLEND_MODE_ERASE", SWIG_From_int((int)(SWFBLEND_MODE_ERASE)));
  SWIG_Tcl_SetConstantObj(interp, "SWFBLEND_MODE_OVERLAY", SWIG_From_int((int)(SWFBLEND_MODE_OVERLAY)));
  SWIG_Tcl_SetConstantObj(interp, "SWFBLEND_MODE_HARDLIGHT", SWIG_From_int((int)(SWFBLEND_MODE_HARDLIGHT)));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILTER_MODE_INNER", SWIG_From_int((int)((1 << 7))));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILTER_MODE_KO", SWIG_From_int((int)((1 << 6))));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILTER_MODE_COMPOSITE", SWIG_From_int((int)((1 << 5))));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILTER_MODE_ONTOP", SWIG_From_int((int)((1 << 4))));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILTER_FLAG_CLAMP", SWIG_From_int((int)((1 << 1))));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILTER_FLAG_PRESERVE_ALPHA", SWIG_From_int((int)((1 << 0))));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILTER_TYPE_DROPSHADOW", SWIG_From_int((int)(SWFFILTER_TYPE_DROPSHADOW)));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILTER_TYPE_BLUR", SWIG_From_int((int)(SWFFILTER_TYPE_BLUR)));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILTER_TYPE_GLOW", SWIG_From_int((int)(SWFFILTER_TYPE_GLOW)));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILTER_TYPE_BEVEL", SWIG_From_int((int)(SWFFILTER_TYPE_BEVEL)));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILTER_TYPE_GRADIENTGLOW", SWIG_From_int((int)(SWFFILTER_TYPE_GRADIENTGLOW)));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILTER_TYPE_CONVOLUTION", SWIG_From_int((int)(SWFFILTER_TYPE_CONVOLUTION)));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILTER_TYPE_COLORMATRIX", SWIG_From_int((int)(SWFFILTER_TYPE_COLORMATRIX)));
  SWIG_Tcl_SetConstantObj(interp, "SWFFILTER_TYPE_GRADIENTBEVEL", SWIG_From_int((int)(SWFFILTER_TYPE_GRADIENTBEVEL)));
  return TCL_OK;
}
SWIGEXPORT int Mingc_SafeInit(Tcl_Interp *interp) {
  return SWIG_init(interp);
}

