/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3u-20001212-1418 (Alpha 5)
 * 
 * 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. 
 * ----------------------------------------------------------------------------- */

#define SWIGPYTHON
/***********************************************************************
 * common.swg
 *
 *     This file contains generic SWIG runtime support for pointer
 *     type checking as well as a few commonly used macros to control
 *     external linkage.
 *
 * Author : David Beazley (beazley@cs.uchicago.edu)
 *
 * Copyright (c) 1999-2000, The University of Chicago
 * 
 * This file may be freely redistributed without license or fee provided
 * this copyright message remains intact.
 ************************************************************************/

#include <string.h>

#if defined(_WIN32) || defined(__WIN32__)
#       if defined(_MSC_VER)
#               if defined(STATIC_LINKED)
#                       define SWIGEXPORT(a) a
#               else
#                       define SWIGEXPORT(a) __declspec(dllexport) a
#               endif
#       else
#               if defined(__BORLANDC__)
#                       define SWIGEXPORT(a) a _export
#               else
#                       define SWIGEXPORT(a) a
#       endif
#endif
#else
#       define SWIGEXPORT(a) a
#endif

#ifdef SWIG_GLOBAL
#define SWIGRUNTIME(a) SWIGEXPORT(a)
#else
#define SWIGRUNTIME(a) static a
#endif

#ifdef __cplusplus
extern "C" {
#endif

typedef struct swig_type_info {
  char  *name;                 
  void *(*converter)(void *);
  char  *str;
  struct swig_type_info  *next;
  struct swig_type_info  *prev;
} swig_type_info;

#ifdef SWIG_NOINCLUDE
SWIGEXPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
SWIGEXPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
SWIGEXPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
#else

static swig_type_info *swig_type_list = 0;

/* Register a type mapping with the type-checking */
SWIGRUNTIME(swig_type_info *)
SWIG_TypeRegister(swig_type_info *ti)
{
  swig_type_info *tc, *head, *ret, *next;
  /* Check to see if this type has already been registered */
  tc = swig_type_list;
  while (tc) {
    if (strcmp(tc->name, ti->name) == 0) {
      /* Already exists in the table.  Just add additional types to the list */
      head = tc;
      next = tc->next;
      goto l1;
    }
    tc = tc->prev;
  }
  head = ti;
  next = 0;

  /* Place in list */
  ti->prev = swig_type_list;
  swig_type_list = ti;

  /* Build linked lists */
 l1:
  ret = head;
  tc = ti + 1;
  /* Patch up the rest of the links */
  while (tc->name) {
    head->next = tc;
    tc->prev = head;
    head = tc;
    tc++;
  }
  head->next = next;
  return ret;
}

/* Check the typename */
SWIGRUNTIME(swig_type_info *) 
SWIG_TypeCheck(char *c, swig_type_info *ty)
{
  swig_type_info *s;
  if (!ty) return 0;        /* Void pointer */
  s = ty->next;             /* First element always just a name */
  while (s) {
    if (strcmp(s->name,c) == 0) {
      if (s == ty->next) return s;
      /* Move s to the top of the linked list */
      s->prev->next = s->next;
      if (s->next) {
	s->next->prev = s->prev;
      }
      /* Insert s as second element in the list */
      s->next = ty->next;
      if (ty->next) ty->next->prev = s;
      ty->next = s;
      return s;
    }
    s = s->next;
  }
  return 0;
}

/* Cast a pointer (needed for C++ inheritance */
SWIGRUNTIME(void *) 
SWIG_TypeCast(swig_type_info *ty, void *ptr) 
{
  if ((!ty) || (!ty->converter)) return ptr;
  return (*ty->converter)(ptr);
}

/* Search for a swig_type_info structure */
SWIGRUNTIME(void *)
SWIG_TypeQuery(const char *name) {
  swig_type_info *ty = swig_type_list;
  while (ty) {
    if (ty->str && (strcmp(name,ty->str) == 0)) return ty;
    if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
    ty = ty->prev;
  }
  return 0;
}

#endif

#ifdef __cplusplus
}
#endif



/***********************************************************************
 * python.swg
 *
 *     This file contains the runtime support for Python modules
 *     and includes code for managing global variables and pointer
 *     type checking.
 *
 * Author : David Beazley (beazley@cs.uchicago.edu)
 ************************************************************************/

#include <stdlib.h>
#include "Python.h"

#ifdef __cplusplus
extern "C" {
#endif

#define SWIG_PY_INT     1
#define SWIG_PY_FLOAT   2
#define SWIG_PY_STRING  3
#define SWIG_PY_POINTER 4

/* 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;

#ifdef SWIG_NOINCLUDE

SWIGEXPORT(PyObject *)        SWIG_newvarlink();
SWIGEXPORT(void)              SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
SWIGEXPORT(int)               SWIG_ConvertPtr(PyObject *, void **, swig_type_info *, int);
SWIGEXPORT(void)              SWIG_MakePtr(char *c, void *, swig_type_info *);
SWIGEXPORT(PyObject *)        SWIG_NewPointerObj(void *, swig_type_info *);
SWIGEXPORT(void)              SWIG_InstallConstants(PyObject *d, swig_const_info constants[]);

#else

/* -----------------------------------------------------------------------------
 * global variable support code.
 * ----------------------------------------------------------------------------- */

typedef struct swig_globalvar {   
  char       *name;                  /* Name of global variable */
  PyObject *(*get_attr)(void);       /* Return the current value */
  int       (*set_attr)(PyObject *); /* Set the value */
  struct swig_globalvar *next;
} swig_globalvar;

typedef struct swig_varlinkobject {
  PyObject_HEAD
  swig_globalvar *vars;
} swig_varlinkobject;

static PyObject *
swig_varlink_repr(swig_varlinkobject *v) {
  v = v;
  return PyString_FromString("<Global variables>");
}

static int
swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
  swig_globalvar  *var;
  flags = flags;
  fprintf(fp,"Global variables { ");
  for (var = v->vars; var; var=var->next) {
    fprintf(fp,"%s", var->name);
    if (var->next) fprintf(fp,", ");
  }
  fprintf(fp," }\n");
  return 0;
}

static PyObject *
swig_varlink_getattr(swig_varlinkobject *v, char *n) {
  swig_globalvar *var = v->vars;
  while (var) {
    if (strcmp(var->name,n) == 0) {
      return (*var->get_attr)();
    }
    var = var->next;
  }
  PyErr_SetString(PyExc_NameError,"Unknown C global variable");
  return NULL;
}

static int
swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
  swig_globalvar *var = v->vars;
  while (var) {
    if (strcmp(var->name,n) == 0) {
      return (*var->set_attr)(p);
    }
    var = var->next;
  }
  PyErr_SetString(PyExc_NameError,"Unknown C global variable");
  return 1;
}

statichere PyTypeObject varlinktype = {
  PyObject_HEAD_INIT(0)              
  0,
  "swigvarlink",                      /* Type name    */
  sizeof(swig_varlinkobject),         /* Basic size   */
  0,                                  /* Itemsize     */
  0,                                  /* Deallocator  */ 
  (printfunc) swig_varlink_print,     /* Print        */
  (getattrfunc) swig_varlink_getattr, /* get attr     */
  (setattrfunc) swig_varlink_setattr, /* Set attr     */
  0,                                  /* tp_compare   */
  (reprfunc) swig_varlink_repr,       /* tp_repr      */    
  0,                                  /* tp_as_number */
  0,                                  /* tp_as_mapping*/
  0,                                  /* tp_hash      */
};

/* Create a variable linking object for use later */
SWIGRUNTIME(PyObject *)
SWIG_newvarlink(void) {
  swig_varlinkobject *result = 0;
  result = PyMem_NEW(swig_varlinkobject,1);
  varlinktype.ob_type = &PyType_Type;    /* Patch varlinktype into a PyType */
  result->ob_type = &varlinktype;
  result->vars = 0;
  result->ob_refcnt = 0;
  Py_XINCREF((PyObject *) result);
  return ((PyObject*) result);
}

SWIGRUNTIME(void)
SWIG_addvarlink(PyObject *p, char *name,
	   PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
  swig_varlinkobject *v;
  swig_globalvar *gv;
  v= (swig_varlinkobject *) p;
  gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
  gv->name = (char *) malloc(strlen(name)+1);
  strcpy(gv->name,name);
  gv->get_attr = get_attr;
  gv->set_attr = set_attr;
  gv->next = v->vars;
  v->vars = gv;
}
/* Convert a pointer value */
SWIGRUNTIME(int)
SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
  unsigned long p;
  register int d;
  swig_type_info *tc;
  char  *c;
  static PyObject *SWIG_this = 0;
  int    newref = 0;

  if (!obj || (obj == Py_None)) {
    *ptr = 0;
    return 0;
  }
#ifdef SWIG_COBJECT_TYPES
  if (!(PyCObject_Check(obj))) {
    if (!SWIG_this)
      SWIG_this = PyString_InternFromString("this");
    obj = PyObject_GetAttr(obj,SWIG_this);
    newref = 1;
    if (!obj) goto type_error;
    if (!PyCObject_Check(obj)) {
      Py_DECREF(obj);
      goto type_error;
    }
  } 
  *ptr = PyCObject_AsVoidPtr(obj);
  c = (char *) PyCObject_GetDesc(obj);
  if (newref) Py_DECREF(obj);
  goto cobject;
#else
  if (!(PyString_Check(obj))) {
    if (!SWIG_this)
      SWIG_this = PyString_InternFromString("this");
    obj = PyObject_GetAttr(obj,SWIG_this);
    newref = 1;
    if (!obj) goto type_error;
    if (!PyString_Check(obj)) {
      Py_DECREF(obj);
      goto type_error;
    }
  } 
  c = PyString_AsString(obj);
  p = 0;
  /* Pointer values must start with leading underscore */
  if (*c != '_') {
    *ptr = (void *) 0;
    if (strcmp(c,"NULL") == 0) {
      if (newref) Py_DECREF(obj);
      return 0;
    } else {
      if (newref) Py_DECREF(obj);
      goto type_error;
    }
  }
  c++;
  /* Extract hex value from pointer */
  while ((d = *c)) {
    if ((d >= '0') && (d <= '9'))
      p = (p << 4) + (d - '0');
    else if ((d >= 'a') && (d <= 'f'))
      p = (p << 4) + (d - ('a'-10));
    else
      break; 
    c++;
  }
  *ptr = (void *) p;
  if (newref) Py_DECREF(obj);
#endif

#ifdef SWIG_COBJECT_TYPES
cobject:
#endif

  if (ty) {
    tc = SWIG_TypeCheck(c,ty);
    if (!tc) goto type_error;
    *ptr = SWIG_TypeCast(tc,(void*)p);
  }
  return 0;

type_error:

  if (flags) {
    if (ty) {
      char *temp = (char *) malloc(64+strlen(ty->name));
      sprintf(temp,"Type error. Expected %s", ty->name);
      PyErr_SetString(PyExc_TypeError, temp);
      free((char *) temp);
    } else {
      PyErr_SetString(PyExc_TypeError,"Expected a pointer");
    }
  }
  return -1;
}

/* Take a pointer and convert it to a string */
SWIGRUNTIME(void) 
SWIG_MakePtr(char *c, void *ptr, swig_type_info *ty) {
  static char hex[17] = "0123456789abcdef";
  unsigned long p, s;
  char result[32], *r; 
  r = result;
  p = (unsigned long) ptr;
  if (p > 0) {
    while (p > 0) {
      s = p & 0xf;
      *(r++) = hex[s];
      p = p >> 4;
    }
    *r = '_';
    while (r >= result)
      *(c++) = *(r--);
    strcpy (c, ty->name);
  } else {
    strcpy (c, "NULL");
  }
}

/* Create a new pointer object */
SWIGRUNTIME(PyObject *)
SWIG_NewPointerObj(void *ptr, swig_type_info *type) {
  char result[512];
  PyObject *robj;
  if (!ptr) {
    Py_INCREF(Py_None);
    return Py_None;
  }
#ifdef SWIG_COBJECT_TYPES
  robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, type->name, NULL);
#else
  SWIG_MakePtr(result,ptr,type);
  robj = PyString_FromString(result);
#endif
  return robj;
}

/* Install Constants */
SWIGRUNTIME(void)
SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) {
  int i;
  PyObject *obj;
  for (i = 0; constants[i].type; i++) {
    switch(constants[i].type) {
    case SWIG_PY_INT:
      obj = PyInt_FromLong(constants[i].lvalue);
      break;
    case SWIG_PY_FLOAT:
      obj = PyFloat_FromDouble(constants[i].dvalue);
      break;
    case SWIG_PY_STRING:
      obj = PyString_FromString((char *) constants[i].pvalue);
      break;
    case SWIG_PY_POINTER:
      obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype);
      break;
    default:
      obj = 0;
      break;
    }
    if (obj) {
      PyDict_SetItemString(d,constants[i].name,obj);
      Py_DECREF(obj);
    }
  }
}

#endif

#ifdef __cplusplus
}
#endif



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

#define  SWIGTYPE_SWFMovieClip swig_types[0] 
#define  SWIGTYPE_SWFMovie swig_types[1] 
#define  SWIGTYPE_SWFGradient swig_types[2] 
#define  SWIGTYPE_SWFDisplayItem swig_types[3] 
#define  SWIGTYPE_SWFShape swig_types[4] 
#define  SWIGTYPE_SWFBitmap swig_types[5] 
#define  SWIGTYPE_p_SWFByteOutputMethod swig_types[6] 
#define  SWIGTYPE_p_SWFCXform swig_types[7] 
#define  SWIGTYPE_SWFText swig_types[8] 
#define  SWIGTYPE_SWFFont swig_types[9] 
#define  SWIGTYPE_p_void swig_types[10] 
#define  SWIGTYPE_SWFMorph swig_types[11] 
#define  SWIGTYPE_SWFButton swig_types[12] 
#define  SWIGTYPE_SWFBlock swig_types[13] 
#define  SWIGTYPE_SWFTextField swig_types[14] 
#define  SWIGTYPE_SWFFill swig_types[15] 
#define  SWIGTYPE_SWFSound swig_types[16] 
#define  SWIGTYPE_SWFAction swig_types[17] 
#define  SWIGTYPE_p_int swig_types[18] 
#define  SWIGTYPE_SWFBrowserFont swig_types[19] 
#define  SWIGTYPE_SWFCharacter swig_types[20] 
static swig_type_info *swig_types[22];

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

#define SWIG_init    initmingc

#define SWIG_name    "mingc"

static PyObject* l_output_helper(PyObject* target, PyObject* o) {
    PyObject*   o2;
    if (!target) {                   
        target = o;
    } else if (target == Py_None) {  
        Py_DECREF(Py_None);
        target = o;
    } else {                         
        if (!PyList_Check(target)) {
            o2 = target;
            target = PyList_New(0);
            PyList_Append(target, o2);
	    Py_XDECREF(o2);
        }
        PyList_Append(target,o);
	Py_XDECREF(o);
    }
    return target;
}

static PyObject* t_output_helper(PyObject* target, PyObject* o) {
    PyObject*   o2;
    PyObject*   o3;

    if (!target) {                   
        target = o;
    } else if (target == Py_None) {  
        Py_DECREF(Py_None);
        target = o;
    } else {                         
        if (!PyTuple_Check(target)) {
            o2 = target;
            target = PyTuple_New(1);
            PyTuple_SetItem(target, 0, o2);
        }
        o3 = PyTuple_New(1);            
        PyTuple_SetItem(o3, 0, o);      

        o2 = target;
        target = PySequence_Concat(o2, o3); 
        Py_DECREF(o2);                      
        Py_DECREF(o3);
    }
    return target;
}

  #include "ming.h"

void my_fileno_write (unsigned char c, void * fd) {
  write((int) fd, &c, 1);
}

int SWFMovie_simpleOutput(SWFMovie movie) {
   return SWFMovie_output(movie, my_fileno_write, 1);
}

int SWFMovie_saveToFileNo(SWFMovie movie, int fd) {
   return SWFMovie_output(movie, my_fileno_write, fd);
}


  int swfButton_keypress(char c)
  {
    return SWFBUTTON_KEYPRESS(c);
  }
#ifdef __cplusplus
extern "C" {
#endif
static PyObject *_wrap_Ming_init(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    int result ;
    
    if(!PyArg_ParseTuple(args,":Ming_init")) return NULL;
    result = (int )Ming_init();
    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_Ming_setScale(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    float arg0 ;
    
    if(!PyArg_ParseTuple(args,"f:Ming_setScale",&arg0)) return NULL;
    Ming_setScale(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_Ming_setCubicThreshold(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    int arg0 ;
    
    if(!PyArg_ParseTuple(args,"i:Ming_setCubicThreshold",&arg0)) return NULL;
    Ming_setCubicThreshold(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_destroySWFMovie(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovie arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:destroySWFMovie",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovie,1)) == -1) return NULL;
    destroySWFMovie(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_newSWFMovie(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovie result ;
    
    if(!PyArg_ParseTuple(args,":newSWFMovie")) return NULL;
    result = (SWFMovie )newSWFMovie();
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFMovie);
    return resultobj;
}


static PyObject *_wrap_SWFMovie_setRate(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovie arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFMovie_setRate",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovie,1)) == -1) return NULL;
    SWFMovie_setRate(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFMovie_setDimension(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovie arg0 ;
    float arg1 ;
    float arg2 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Off:SWFMovie_setDimension",&argo0,&arg1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovie,1)) == -1) return NULL;
    SWFMovie_setDimension(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFMovie_setNumberOfFrames(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovie arg0 ;
    int arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oi:SWFMovie_setNumberOfFrames",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovie,1)) == -1) return NULL;
    SWFMovie_setNumberOfFrames(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFMovie_setBackground(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovie arg0 ;
    int arg1 ;
    int arg2 ;
    int arg3 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oiii:SWFMovie_setBackground",&argo0,&arg1,&arg2,&arg3)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovie,1)) == -1) return NULL;
    SWFMovie_setBackground(arg0,arg1,arg2,arg3);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFMovie_setSoundStream(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovie arg0 ;
    SWFSound arg1 ;
    PyObject * argo0 =0 ;
    PyObject * argo1 =0 ;
    
    if(!PyArg_ParseTuple(args,"OO:SWFMovie_setSoundStream",&argo0,&argo1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovie,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_SWFSound,1)) == -1) return NULL;
    SWFMovie_setSoundStream(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFMovie_add(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovie arg0 ;
    SWFBlock arg1 ;
    PyObject * argo0 =0 ;
    PyObject * argo1 =0 ;
    SWFDisplayItem result ;
    
    if(!PyArg_ParseTuple(args,"OO:SWFMovie_add",&argo0,&argo1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovie,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_SWFBlock,1)) == -1) return NULL;
    result = (SWFDisplayItem )SWFMovie_add(arg0,arg1);
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFDisplayItem);
    return resultobj;
}


static PyObject *_wrap_SWFMovie_remove(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovie arg0 ;
    SWFDisplayItem arg1 ;
    PyObject * argo0 =0 ;
    PyObject * argo1 =0 ;
    
    if(!PyArg_ParseTuple(args,"OO:SWFMovie_remove",&argo0,&argo1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovie,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    SWFMovie_remove(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFMovie_nextFrame(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovie arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:SWFMovie_nextFrame",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovie,1)) == -1) return NULL;
    SWFMovie_nextFrame(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFMovie_labelFrame(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovie arg0 ;
    char *arg1 ;
    PyObject * argo0 =0 ;
    PyObject * obj1  = 0 ;
    
    if(!PyArg_ParseTuple(args,"OO:SWFMovie_labelFrame",&argo0,&obj1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovie,1)) == -1) return NULL;
    {
        if (!PyString_Check(obj1)) {
            PyErr_SetString(PyExc_TypeError, "not a string");
            return NULL;
        }
        arg1 = PyString_AsString(obj1);
    }
    SWFMovie_labelFrame(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFMovie_output(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovie arg0 ;
    SWFByteOutputMethod *arg1 ;
    void *arg2 ;
    PyObject * argo0 =0 ;
    PyObject * argo1 =0 ;
    PyObject * argo2 =0 ;
    int result ;
    
    if(!PyArg_ParseTuple(args,"OOO:SWFMovie_output",&argo0,&argo1,&argo2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovie,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_p_SWFByteOutputMethod,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo2,(void **) &arg2,0,1)) == -1) return NULL;
    result = (int )SWFMovie_output(arg0,*arg1,arg2);
    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_SWFMovie_simpleOutput(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovie arg0 ;
    PyObject * argo0 =0 ;
    int result ;
    
    if(!PyArg_ParseTuple(args,"O:SWFMovie_simpleOutput",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovie,1)) == -1) return NULL;
    result = (int )SWFMovie_simpleOutput(arg0);
    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_SWFMovie_save(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovie arg0 ;
    char *arg1 ;
    PyObject * argo0 =0 ;
    int result ;
    
    if(!PyArg_ParseTuple(args,"Os:SWFMovie_save",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovie,1)) == -1) return NULL;
    result = (int )SWFMovie_save(arg0,(char const *)arg1);
    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_SWFMovie_saveToFileNo(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovie arg0 ;
    int arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oi:SWFMovie_saveToFileNo",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovie,1)) == -1) return NULL;
    SWFMovie_saveToFileNo(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_rotate(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFDisplayItem_rotate",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    SWFDisplayItem_rotate(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_rotateTo(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFDisplayItem_rotateTo",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    SWFDisplayItem_rotateTo(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_move(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    float arg1 ;
    float arg2 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Off:SWFDisplayItem_move",&argo0,&arg1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    SWFDisplayItem_move(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_moveTo(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    float arg1 ;
    float arg2 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Off:SWFDisplayItem_moveTo",&argo0,&arg1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    SWFDisplayItem_moveTo(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_scale(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    float arg1 ;
    float arg2 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Off:SWFDisplayItem_scale",&argo0,&arg1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    SWFDisplayItem_scale(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_scaleTo(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    float arg1 ;
    float arg2 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Off:SWFDisplayItem_scaleTo",&argo0,&arg1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    SWFDisplayItem_scaleTo(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_skewX(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFDisplayItem_skewX",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    SWFDisplayItem_skewX(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_skewXTo(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFDisplayItem_skewXTo",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    SWFDisplayItem_skewXTo(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_skewY(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFDisplayItem_skewY",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    SWFDisplayItem_skewY(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_skewYTo(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFDisplayItem_skewYTo",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    SWFDisplayItem_skewYTo(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_setMatrix(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    float arg1 ;
    float arg2 ;
    float arg3 ;
    float arg4 ;
    float arg5 ;
    float arg6 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Offffff:SWFDisplayItem_setMatrix",&argo0,&arg1,&arg2,&arg3,&arg4,&arg5,&arg6)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    SWFDisplayItem_setMatrix(arg0,arg1,arg2,arg3,arg4,arg5,arg6);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_getDepth(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    PyObject * argo0 =0 ;
    int result ;
    
    if(!PyArg_ParseTuple(args,"O:SWFDisplayItem_getDepth",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    result = (int )SWFDisplayItem_getDepth(arg0);
    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_setDepth(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    int arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oi:SWFDisplayItem_setDepth",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    SWFDisplayItem_setDepth(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_remove(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:SWFDisplayItem_remove",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    SWFDisplayItem_remove(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_setName(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    char *arg1 ;
    PyObject * argo0 =0 ;
    PyObject * obj1  = 0 ;
    
    if(!PyArg_ParseTuple(args,"OO:SWFDisplayItem_setName",&argo0,&obj1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    {
        if (!PyString_Check(obj1)) {
            PyErr_SetString(PyExc_TypeError, "not a string");
            return NULL;
        }
        arg1 = PyString_AsString(obj1);
    }
    SWFDisplayItem_setName(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_setRatio(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFDisplayItem_setRatio",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    SWFDisplayItem_setRatio(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_setCXform(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    SWFCXform *arg1 ;
    PyObject * argo0 =0 ;
    PyObject * argo1 =0 ;
    
    if(!PyArg_ParseTuple(args,"OO:SWFDisplayItem_setCXform",&argo0,&argo1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_p_SWFCXform,1)) == -1) return NULL;
    SWFDisplayItem_setCXform(arg0,*arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_setColorAdd(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    int arg1 ;
    int arg2 ;
    int arg3 ;
    int arg4 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oiiii:SWFDisplayItem_setColorAdd",&argo0,&arg1,&arg2,&arg3,&arg4)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    SWFDisplayItem_setColorAdd(arg0,arg1,arg2,arg3,arg4);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFDisplayItem_setColorMult(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFDisplayItem arg0 ;
    float arg1 ;
    float arg2 ;
    float arg3 ;
    float arg4 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Offff:SWFDisplayItem_setColorMult",&argo0,&arg1,&arg2,&arg3,&arg4)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    SWFDisplayItem_setColorMult(arg0,arg1,arg2,arg3,arg4);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_destroySWFFill(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFill arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:destroySWFFill",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFill,1)) == -1) return NULL;
    destroySWFFill(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFFill_skewX(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFill arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFFill_skewX",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFill,1)) == -1) return NULL;
    SWFFill_skewX(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFFill_skewXTo(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFill arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFFill_skewXTo",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFill,1)) == -1) return NULL;
    SWFFill_skewXTo(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFFill_skewY(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFill arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFFill_skewY",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFill,1)) == -1) return NULL;
    SWFFill_skewY(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFFill_skewYTo(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFill arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFFill_skewYTo",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFill,1)) == -1) return NULL;
    SWFFill_skewYTo(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFFill_scaleX(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFill arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFFill_scaleX",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFill,1)) == -1) return NULL;
    SWFFill_scaleX(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFFill_scaleXTo(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFill arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFFill_scaleXTo",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFill,1)) == -1) return NULL;
    SWFFill_scaleXTo(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFFill_scaleY(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFill arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFFill_scaleY",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFill,1)) == -1) return NULL;
    SWFFill_scaleY(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFFill_scaleYTo(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFill arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFFill_scaleYTo",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFill,1)) == -1) return NULL;
    SWFFill_scaleYTo(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFFill_scaleXY(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFill arg0 ;
    float arg1 ;
    float arg2 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Off:SWFFill_scaleXY",&argo0,&arg1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFill,1)) == -1) return NULL;
    SWFFill_scaleXY(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFFill_scaleXYTo(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFill arg0 ;
    float arg1 ;
    float arg2 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Off:SWFFill_scaleXYTo",&argo0,&arg1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFill,1)) == -1) return NULL;
    SWFFill_scaleXYTo(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFFill_rotate(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFill arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFFill_rotate",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFill,1)) == -1) return NULL;
    SWFFill_rotate(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFFill_rotateTo(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFill arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFFill_rotateTo",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFill,1)) == -1) return NULL;
    SWFFill_rotateTo(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFFill_move(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFill arg0 ;
    float arg1 ;
    float arg2 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Off:SWFFill_move",&argo0,&arg1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFill,1)) == -1) return NULL;
    SWFFill_move(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFFill_moveTo(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFill arg0 ;
    float arg1 ;
    float arg2 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Off:SWFFill_moveTo",&argo0,&arg1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFill,1)) == -1) return NULL;
    SWFFill_moveTo(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFFill_setMatrix(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFill arg0 ;
    float arg1 ;
    float arg2 ;
    float arg3 ;
    float arg4 ;
    float arg5 ;
    float arg6 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Offffff:SWFFill_setMatrix",&argo0,&arg1,&arg2,&arg3,&arg4,&arg5,&arg6)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFill,1)) == -1) return NULL;
    SWFFill_setMatrix(arg0,arg1,arg2,arg3,arg4,arg5,arg6);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFShape_addSolidFill(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    byte arg1 ;
    byte arg2 ;
    byte arg3 ;
    byte arg4 ;
    PyObject * argo0 =0 ;
    SWFFill result ;
    
    if(!PyArg_ParseTuple(args,"Obbbb:SWFShape_addSolidFill",&argo0,&arg1,&arg2,&arg3,&arg4)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    result = (SWFFill )SWFShape_addSolidFill(arg0,arg1,arg2,arg3,arg4);
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFFill);
    return resultobj;
}


static PyObject *_wrap_SWFShape_addGradientFill(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    SWFGradient arg1 ;
    byte arg2 ;
    PyObject * argo0 =0 ;
    PyObject * argo1 =0 ;
    SWFFill result ;
    
    if(!PyArg_ParseTuple(args,"OOb:SWFShape_addGradientFill",&argo0,&argo1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_SWFGradient,1)) == -1) return NULL;
    result = (SWFFill )SWFShape_addGradientFill(arg0,arg1,arg2);
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFFill);
    return resultobj;
}


static PyObject *_wrap_SWFShape_addBitmapFill(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    SWFBitmap arg1 ;
    byte arg2 ;
    PyObject * argo0 =0 ;
    PyObject * argo1 =0 ;
    SWFFill result ;
    
    if(!PyArg_ParseTuple(args,"OOb:SWFShape_addBitmapFill",&argo0,&argo1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_SWFBitmap,1)) == -1) return NULL;
    result = (SWFFill )SWFShape_addBitmapFill(arg0,arg1,arg2);
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFFill);
    return resultobj;
}


static PyObject *_wrap_SWFShape_setLeftFill(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    SWFFill arg1 ;
    PyObject * argo0 =0 ;
    PyObject * argo1 =0 ;
    
    if(!PyArg_ParseTuple(args,"OO:SWFShape_setLeftFill",&argo0,&argo1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_SWFFill,1)) == -1) return NULL;
    SWFShape_setLeftFill(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFShape_setRightFill(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    SWFFill arg1 ;
    PyObject * argo0 =0 ;
    PyObject * argo1 =0 ;
    
    if(!PyArg_ParseTuple(args,"OO:SWFShape_setRightFill",&argo0,&argo1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_SWFFill,1)) == -1) return NULL;
    SWFShape_setRightFill(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFShape_setLine(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    unsigned short arg1 ;
    byte arg2 ;
    byte arg3 ;
    byte arg4 ;
    byte arg5 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ohbbbb:SWFShape_setLine",&argo0,&arg1,&arg2,&arg3,&arg4,&arg5)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    SWFShape_setLine(arg0,arg1,arg2,arg3,arg4,arg5);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFShape_drawArc(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    int arg1 ;
    float arg2 ;
    float arg3 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oiff:SWFShape_drawArc",&argo0,&arg1,&arg2,&arg3)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    SWFShape_drawArc(arg0,arg1,arg2,arg3);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFShape_drawCircle(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    int arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oi:SWFShape_drawCircle",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    SWFShape_drawCircle(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFShape_movePenTo(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    float arg1 ;
    float arg2 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Off:SWFShape_movePenTo",&argo0,&arg1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    SWFShape_movePenTo(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFShape_movePen(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    float arg1 ;
    float arg2 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Off:SWFShape_movePen",&argo0,&arg1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    SWFShape_movePen(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFShape_drawLineTo(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    float arg1 ;
    float arg2 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Off:SWFShape_drawLineTo",&argo0,&arg1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    SWFShape_drawLineTo(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFShape_drawLine(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    float arg1 ;
    float arg2 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Off:SWFShape_drawLine",&argo0,&arg1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    SWFShape_drawLine(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFShape_drawCurveTo(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    float arg1 ;
    float arg2 ;
    float arg3 ;
    float arg4 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Offff:SWFShape_drawCurveTo",&argo0,&arg1,&arg2,&arg3,&arg4)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    SWFShape_drawCurveTo(arg0,arg1,arg2,arg3,arg4);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFShape_drawCurve(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    float arg1 ;
    float arg2 ;
    float arg3 ;
    float arg4 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Offff:SWFShape_drawCurve",&argo0,&arg1,&arg2,&arg3,&arg4)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    SWFShape_drawCurve(arg0,arg1,arg2,arg3,arg4);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFShape_drawCubic(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    float arg1 ;
    float arg2 ;
    float arg3 ;
    float arg4 ;
    float arg5 ;
    float arg6 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Offffff:SWFShape_drawCubic",&argo0,&arg1,&arg2,&arg3,&arg4,&arg5,&arg6)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    SWFShape_drawCubic(arg0,arg1,arg2,arg3,arg4,arg5,arg6);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFShape_drawCubicTo(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    float arg1 ;
    float arg2 ;
    float arg3 ;
    float arg4 ;
    float arg5 ;
    float arg6 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Offffff:SWFShape_drawCubicTo",&argo0,&arg1,&arg2,&arg3,&arg4,&arg5,&arg6)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    SWFShape_drawCubicTo(arg0,arg1,arg2,arg3,arg4,arg5,arg6);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_newSWFMovieClip(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovieClip result ;
    
    if(!PyArg_ParseTuple(args,":newSWFMovieClip")) return NULL;
    result = (SWFMovieClip )newSWFMovieClip();
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFMovieClip);
    return resultobj;
}


static PyObject *_wrap_destroySWFMovieClip(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovieClip arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:destroySWFMovieClip",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovieClip,1)) == -1) return NULL;
    destroySWFMovieClip(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFMovieClip_setNumberOfFrames(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovieClip arg0 ;
    int arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oi:SWFMovieClip_setNumberOfFrames",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovieClip,1)) == -1) return NULL;
    SWFMovieClip_setNumberOfFrames(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFMovieClip_add(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovieClip arg0 ;
    SWFBlock arg1 ;
    PyObject * argo0 =0 ;
    PyObject * argo1 =0 ;
    SWFDisplayItem result ;
    
    if(!PyArg_ParseTuple(args,"OO:SWFMovieClip_add",&argo0,&argo1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovieClip,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_SWFBlock,1)) == -1) return NULL;
    result = (SWFDisplayItem )SWFMovieClip_add(arg0,arg1);
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFDisplayItem);
    return resultobj;
}


static PyObject *_wrap_SWFMovieClip_remove(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovieClip arg0 ;
    SWFDisplayItem arg1 ;
    PyObject * argo0 =0 ;
    PyObject * argo1 =0 ;
    
    if(!PyArg_ParseTuple(args,"OO:SWFMovieClip_remove",&argo0,&argo1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovieClip,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_SWFDisplayItem,1)) == -1) return NULL;
    SWFMovieClip_remove(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFMovieClip_nextFrame(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovieClip arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:SWFMovieClip_nextFrame",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovieClip,1)) == -1) return NULL;
    SWFMovieClip_nextFrame(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFMovieClip_labelFrame(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMovieClip arg0 ;
    char *arg1 ;
    PyObject * argo0 =0 ;
    PyObject * obj1  = 0 ;
    
    if(!PyArg_ParseTuple(args,"OO:SWFMovieClip_labelFrame",&argo0,&obj1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMovieClip,1)) == -1) return NULL;
    {
        if (!PyString_Check(obj1)) {
            PyErr_SetString(PyExc_TypeError, "not a string");
            return NULL;
        }
        arg1 = PyString_AsString(obj1);
    }
    SWFMovieClip_labelFrame(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_destroySWFBitmap(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFBitmap arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:destroySWFBitmap",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFBitmap,1)) == -1) return NULL;
    destroySWFBitmap(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFBitmap_getWidth(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFBitmap arg0 ;
    PyObject * argo0 =0 ;
    float result ;
    
    if(!PyArg_ParseTuple(args,"O:SWFBitmap_getWidth",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFBitmap,1)) == -1) return NULL;
    result = (float )SWFBitmap_getWidth(arg0);
    resultobj = PyFloat_FromDouble(result);
    return resultobj;
}


static PyObject *_wrap_SWFBitmap_getHeight(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFBitmap arg0 ;
    PyObject * argo0 =0 ;
    float result ;
    
    if(!PyArg_ParseTuple(args,"O:SWFBitmap_getHeight",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFBitmap,1)) == -1) return NULL;
    result = (float )SWFBitmap_getHeight(arg0);
    resultobj = PyFloat_FromDouble(result);
    return resultobj;
}


static PyObject *_wrap_newSWFDBLBitmap(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    FILE *arg0 ;
    PyObject * obj0  = 0 ;
    SWFBitmap result ;
    
    if(!PyArg_ParseTuple(args,"O:newSWFDBLBitmap",&obj0)) return NULL;
    {
        if (!PyFile_Check(obj0)) {
            PyErr_SetString(PyExc_TypeError, "Need a file!");
            return NULL;
        }
        arg0 = PyFile_AsFile(obj0);
    }
    result = (SWFBitmap )newSWFDBLBitmap(arg0);
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFBitmap);
    return resultobj;
}


static PyObject *_wrap_newSWFJpegBitmap(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    FILE *arg0 ;
    PyObject * obj0  = 0 ;
    SWFBitmap result ;
    
    if(!PyArg_ParseTuple(args,"O:newSWFJpegBitmap",&obj0)) return NULL;
    {
        if (!PyFile_Check(obj0)) {
            PyErr_SetString(PyExc_TypeError, "Need a file!");
            return NULL;
        }
        arg0 = PyFile_AsFile(obj0);
    }
    result = (SWFBitmap )newSWFJpegBitmap(arg0);
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFBitmap);
    return resultobj;
}


static PyObject *_wrap_newSWFJpegWithAlpha(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    FILE *arg0 ;
    FILE *arg1 ;
    PyObject * obj0  = 0 ;
    PyObject * obj1  = 0 ;
    SWFBitmap result ;
    
    if(!PyArg_ParseTuple(args,"OO:newSWFJpegWithAlpha",&obj0,&obj1)) return NULL;
    {
        if (!PyFile_Check(obj0)) {
            PyErr_SetString(PyExc_TypeError, "Need a file!");
            return NULL;
        }
        arg0 = PyFile_AsFile(obj0);
    }
    {
        if (!PyFile_Check(obj1)) {
            PyErr_SetString(PyExc_TypeError, "Need a file!");
            return NULL;
        }
        arg1 = PyFile_AsFile(obj1);
    }
    result = (SWFBitmap )newSWFJpegWithAlpha(arg0,arg1);
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFBitmap);
    return resultobj;
}


static PyObject *_wrap_newSWFGradient(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFGradient result ;
    
    if(!PyArg_ParseTuple(args,":newSWFGradient")) return NULL;
    result = (SWFGradient )newSWFGradient();
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFGradient);
    return resultobj;
}


static PyObject *_wrap_destroySWFGradient(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFGradient arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:destroySWFGradient",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFGradient,1)) == -1) return NULL;
    destroySWFGradient(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFGradient_addEntry(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFGradient arg0 ;
    float arg1 ;
    byte arg2 ;
    byte arg3 ;
    byte arg4 ;
    byte arg5 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Ofbbbb:SWFGradient_addEntry",&argo0,&arg1,&arg2,&arg3,&arg4,&arg5)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFGradient,1)) == -1) return NULL;
    SWFGradient_addEntry(arg0,arg1,arg2,arg3,arg4,arg5);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_newSWFShape(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape result ;
    
    if(!PyArg_ParseTuple(args,":newSWFShape")) return NULL;
    result = (SWFShape )newSWFShape();
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFShape);
    return resultobj;
}


static PyObject *_wrap_destroySWFShape(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:destroySWFShape",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    destroySWFShape(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFShape_end(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:SWFShape_end",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    SWFShape_end(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFShape_drawGlyph(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    SWFFont arg1 ;
    unsigned char arg2 ;
    PyObject * argo0 =0 ;
    PyObject * argo1 =0 ;
    
    if(!PyArg_ParseTuple(args,"OOb:SWFShape_drawGlyph",&argo0,&argo1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_SWFFont,1)) == -1) return NULL;
    SWFShape_drawGlyph(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFShape_drawFontGlyph(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFShape arg0 ;
    SWFFont arg1 ;
    int arg2 ;
    PyObject * argo0 =0 ;
    PyObject * argo1 =0 ;
    
    if(!PyArg_ParseTuple(args,"OOi:SWFShape_drawFontGlyph",&argo0,&argo1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFShape,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_SWFFont,1)) == -1) return NULL;
    SWFShape_drawFontGlyph(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_newSWFMorphShape(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMorph result ;
    
    if(!PyArg_ParseTuple(args,":newSWFMorphShape")) return NULL;
    result = (SWFMorph )newSWFMorphShape();
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFMorph);
    return resultobj;
}


static PyObject *_wrap_destroySWFMorph(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMorph arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:destroySWFMorph",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMorph,1)) == -1) return NULL;
    destroySWFMorph(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFMorph_getShape1(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMorph arg0 ;
    PyObject * argo0 =0 ;
    SWFShape result ;
    
    if(!PyArg_ParseTuple(args,"O:SWFMorph_getShape1",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMorph,1)) == -1) return NULL;
    result = (SWFShape )SWFMorph_getShape1(arg0);
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFShape);
    return resultobj;
}


static PyObject *_wrap_SWFMorph_getShape2(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFMorph arg0 ;
    PyObject * argo0 =0 ;
    SWFShape result ;
    
    if(!PyArg_ParseTuple(args,"O:SWFMorph_getShape2",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFMorph,1)) == -1) return NULL;
    result = (SWFShape )SWFMorph_getShape2(arg0);
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFShape);
    return resultobj;
}


static PyObject *_wrap_newSWFFont(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFont result ;
    
    if(!PyArg_ParseTuple(args,":newSWFFont")) return NULL;
    result = (SWFFont )newSWFFont();
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFFont);
    return resultobj;
}


static PyObject *_wrap_destroySWFFont(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFont arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:destroySWFFont",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFont,1)) == -1) return NULL;
    destroySWFFont(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_loadSWFFontFromFile(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    FILE *arg0 ;
    PyObject * obj0  = 0 ;
    SWFFont result ;
    
    if(!PyArg_ParseTuple(args,"O:loadSWFFontFromFile",&obj0)) return NULL;
    {
        if (!PyFile_Check(obj0)) {
            PyErr_SetString(PyExc_TypeError, "Need a file!");
            return NULL;
        }
        arg0 = PyFile_AsFile(obj0);
    }
    result = (SWFFont )loadSWFFontFromFile(arg0);
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFFont);
    return resultobj;
}


static PyObject *_wrap_SWFFont_getStringWidth(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFont arg0 ;
    char *arg1 ;
    PyObject * argo0 =0 ;
    PyObject * obj1  = 0 ;
    float result ;
    
    if(!PyArg_ParseTuple(args,"OO:SWFFont_getStringWidth",&argo0,&obj1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFont,1)) == -1) return NULL;
    {
        if (!PyString_Check(obj1)) {
            PyErr_SetString(PyExc_TypeError, "not a string");
            return NULL;
        }
        arg1 = PyString_AsString(obj1);
    }
    result = (float )SWFFont_getStringWidth(arg0,arg1);
    resultobj = PyFloat_FromDouble(result);
    return resultobj;
}


static PyObject *_wrap_SWFFont_getAscent(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFont arg0 ;
    PyObject * argo0 =0 ;
    float result ;
    
    if(!PyArg_ParseTuple(args,"O:SWFFont_getAscent",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFont,1)) == -1) return NULL;
    result = (float )SWFFont_getAscent(arg0);
    resultobj = PyFloat_FromDouble(result);
    return resultobj;
}


static PyObject *_wrap_SWFFont_getDescent(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFont arg0 ;
    PyObject * argo0 =0 ;
    float result ;
    
    if(!PyArg_ParseTuple(args,"O:SWFFont_getDescent",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFont,1)) == -1) return NULL;
    result = (float )SWFFont_getDescent(arg0);
    resultobj = PyFloat_FromDouble(result);
    return resultobj;
}


static PyObject *_wrap_SWFFont_getLeading(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFFont arg0 ;
    PyObject * argo0 =0 ;
    float result ;
    
    if(!PyArg_ParseTuple(args,"O:SWFFont_getLeading",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFFont,1)) == -1) return NULL;
    result = (float )SWFFont_getLeading(arg0);
    resultobj = PyFloat_FromDouble(result);
    return resultobj;
}


static PyObject *_wrap_newSWFText(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFText result ;
    
    if(!PyArg_ParseTuple(args,":newSWFText")) return NULL;
    result = (SWFText )newSWFText();
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFText);
    return resultobj;
}


static PyObject *_wrap_newSWFText2(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFText result ;
    
    if(!PyArg_ParseTuple(args,":newSWFText2")) return NULL;
    result = (SWFText )newSWFText2();
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFText);
    return resultobj;
}


static PyObject *_wrap_destroySWFText(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFText arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:destroySWFText",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFText,1)) == -1) return NULL;
    destroySWFText(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFText_setFont(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFText arg0 ;
    SWFFont arg1 ;
    PyObject * argo0 =0 ;
    PyObject * argo1 =0 ;
    
    if(!PyArg_ParseTuple(args,"OO:SWFText_setFont",&argo0,&argo1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFText,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_SWFFont,1)) == -1) return NULL;
    SWFText_setFont(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFText_setHeight(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFText arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFText_setHeight",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFText,1)) == -1) return NULL;
    SWFText_setHeight(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFText_moveTo(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFText arg0 ;
    float arg1 ;
    float arg2 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Off:SWFText_moveTo",&argo0,&arg1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFText,1)) == -1) return NULL;
    SWFText_moveTo(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFText_setColor(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFText arg0 ;
    byte arg1 ;
    byte arg2 ;
    byte arg3 ;
    byte arg4 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Obbbb:SWFText_setColor",&argo0,&arg1,&arg2,&arg3,&arg4)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFText,1)) == -1) return NULL;
    SWFText_setColor(arg0,arg1,arg2,arg3,arg4);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFText_addString(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFText arg0 ;
    char *arg1 ;
    int *arg2 ;
    PyObject * argo0 =0 ;
    PyObject * obj1  = 0 ;
    PyObject * argo2 =0 ;
    
    if(!PyArg_ParseTuple(args,"OOO:SWFText_addString",&argo0,&obj1,&argo2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFText,1)) == -1) return NULL;
    {
        if (!PyString_Check(obj1)) {
            PyErr_SetString(PyExc_TypeError, "not a string");
            return NULL;
        }
        arg1 = PyString_AsString(obj1);
    }
    if ((SWIG_ConvertPtr(argo2,(void **) &arg2,SWIGTYPE_p_int,1)) == -1) return NULL;
    SWFText_addString(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFText_setSpacing(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFText arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFText_setSpacing",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFText,1)) == -1) return NULL;
    SWFText_setSpacing(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFText_getStringWidth(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFText arg0 ;
    char *arg1 ;
    PyObject * argo0 =0 ;
    PyObject * obj1  = 0 ;
    float result ;
    
    if(!PyArg_ParseTuple(args,"OO:SWFText_getStringWidth",&argo0,&obj1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFText,1)) == -1) return NULL;
    {
        if (!PyString_Check(obj1)) {
            PyErr_SetString(PyExc_TypeError, "not a string");
            return NULL;
        }
        arg1 = PyString_AsString(obj1);
    }
    result = (float )SWFText_getStringWidth(arg0,arg1);
    resultobj = PyFloat_FromDouble(result);
    return resultobj;
}


static PyObject *_wrap_SWFText_getAscent(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFText arg0 ;
    PyObject * argo0 =0 ;
    float result ;
    
    if(!PyArg_ParseTuple(args,"O:SWFText_getAscent",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFText,1)) == -1) return NULL;
    result = (float )SWFText_getAscent(arg0);
    resultobj = PyFloat_FromDouble(result);
    return resultobj;
}


static PyObject *_wrap_SWFText_getDescent(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFText arg0 ;
    PyObject * argo0 =0 ;
    float result ;
    
    if(!PyArg_ParseTuple(args,"O:SWFText_getDescent",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFText,1)) == -1) return NULL;
    result = (float )SWFText_getDescent(arg0);
    resultobj = PyFloat_FromDouble(result);
    return resultobj;
}


static PyObject *_wrap_SWFText_getLeading(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFText arg0 ;
    PyObject * argo0 =0 ;
    float result ;
    
    if(!PyArg_ParseTuple(args,"O:SWFText_getLeading",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFText,1)) == -1) return NULL;
    result = (float )SWFText_getLeading(arg0);
    resultobj = PyFloat_FromDouble(result);
    return resultobj;
}


static PyObject *_wrap_newSWFBrowserFont(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    char *arg0 ;
    PyObject * obj0  = 0 ;
    SWFBrowserFont result ;
    
    if(!PyArg_ParseTuple(args,"O:newSWFBrowserFont",&obj0)) return NULL;
    {
        if (!PyString_Check(obj0)) {
            PyErr_SetString(PyExc_TypeError, "not a string");
            return NULL;
        }
        arg0 = PyString_AsString(obj0);
    }
    result = (SWFBrowserFont )newSWFBrowserFont(arg0);
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFBrowserFont);
    return resultobj;
}


static PyObject *_wrap_destroySWFBrowserFont(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFBrowserFont arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:destroySWFBrowserFont",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFBrowserFont,1)) == -1) return NULL;
    destroySWFBrowserFont(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_newSWFTextField(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFTextField result ;
    
    if(!PyArg_ParseTuple(args,":newSWFTextField")) return NULL;
    result = (SWFTextField )newSWFTextField();
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFTextField);
    return resultobj;
}


static PyObject *_wrap_destroySWFTextField(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFTextField arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:destroySWFTextField",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFTextField,1)) == -1) return NULL;
    destroySWFTextField(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFTextField_setFont(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFTextField arg0 ;
    SWFBlock arg1 ;
    PyObject * argo0 =0 ;
    PyObject * argo1 =0 ;
    
    if(!PyArg_ParseTuple(args,"OO:SWFTextField_setFont",&argo0,&argo1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFTextField,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_SWFBlock,1)) == -1) return NULL;
    SWFTextField_setFont(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFTextField_setBounds(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFTextField arg0 ;
    float arg1 ;
    float arg2 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Off:SWFTextField_setBounds",&argo0,&arg1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFTextField,1)) == -1) return NULL;
    SWFTextField_setBounds(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFTextField_setFlags(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFTextField arg0 ;
    int arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oi:SWFTextField_setFlags",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFTextField,1)) == -1) return NULL;
    SWFTextField_setFlags(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFTextField_setColor(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFTextField arg0 ;
    byte arg1 ;
    byte arg2 ;
    byte arg3 ;
    byte arg4 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Obbbb:SWFTextField_setColor",&argo0,&arg1,&arg2,&arg3,&arg4)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFTextField,1)) == -1) return NULL;
    SWFTextField_setColor(arg0,arg1,arg2,arg3,arg4);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFTextField_setVariableName(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFTextField arg0 ;
    char *arg1 ;
    PyObject * argo0 =0 ;
    PyObject * obj1  = 0 ;
    
    if(!PyArg_ParseTuple(args,"OO:SWFTextField_setVariableName",&argo0,&obj1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFTextField,1)) == -1) return NULL;
    {
        if (!PyString_Check(obj1)) {
            PyErr_SetString(PyExc_TypeError, "not a string");
            return NULL;
        }
        arg1 = PyString_AsString(obj1);
    }
    SWFTextField_setVariableName(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFTextField_addString(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFTextField arg0 ;
    char *arg1 ;
    PyObject * argo0 =0 ;
    PyObject * obj1  = 0 ;
    
    if(!PyArg_ParseTuple(args,"OO:SWFTextField_addString",&argo0,&obj1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFTextField,1)) == -1) return NULL;
    {
        if (!PyString_Check(obj1)) {
            PyErr_SetString(PyExc_TypeError, "not a string");
            return NULL;
        }
        arg1 = PyString_AsString(obj1);
    }
    SWFTextField_addString(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFTextField_setHeight(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFTextField arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFTextField_setHeight",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFTextField,1)) == -1) return NULL;
    SWFTextField_setHeight(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFTextField_setFieldHeight(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFTextField arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFTextField_setFieldHeight",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFTextField,1)) == -1) return NULL;
    SWFTextField_setFieldHeight(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFTextField_setLeftMargin(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFTextField arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFTextField_setLeftMargin",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFTextField,1)) == -1) return NULL;
    SWFTextField_setLeftMargin(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFTextField_setRightMargin(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFTextField arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFTextField_setRightMargin",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFTextField,1)) == -1) return NULL;
    SWFTextField_setRightMargin(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFTextField_setIndentation(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFTextField arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFTextField_setIndentation",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFTextField,1)) == -1) return NULL;
    SWFTextField_setIndentation(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFTextField_setLineSpacing(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFTextField arg0 ;
    float arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Of:SWFTextField_setLineSpacing",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFTextField,1)) == -1) return NULL;
    SWFTextField_setLineSpacing(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFTextField_setAlignment(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFTextField arg0 ;
    int arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oi:SWFTextField_setAlignment",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFTextField,1)) == -1) return NULL;
    SWFTextField_setAlignment(arg0,(SWFTextFieldAlignment )arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFTextField_setLength(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFTextField arg0 ;
    int arg1 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"Oi:SWFTextField_setLength",&argo0,&arg1)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFTextField,1)) == -1) return NULL;
    SWFTextField_setLength(arg0,arg1);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_newSWFSound(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    FILE *arg0 ;
    PyObject * obj0  = 0 ;
    SWFSound result ;
    
    if(!PyArg_ParseTuple(args,"O:newSWFSound",&obj0)) return NULL;
    {
        if (!PyFile_Check(obj0)) {
            PyErr_SetString(PyExc_TypeError, "Need a file!");
            return NULL;
        }
        arg0 = PyFile_AsFile(obj0);
    }
    result = (SWFSound )newSWFSound(arg0);
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFSound);
    return resultobj;
}


static PyObject *_wrap_destroySWFSound(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFSound arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:destroySWFSound",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFSound,1)) == -1) return NULL;
    destroySWFSound(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_compileSWFActionCode(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    char *arg0 ;
    PyObject * obj0  = 0 ;
    SWFAction result ;
    
    if(!PyArg_ParseTuple(args,"O:compileSWFActionCode",&obj0)) return NULL;
    {
        if (!PyString_Check(obj0)) {
            PyErr_SetString(PyExc_TypeError, "not a string");
            return NULL;
        }
        arg0 = PyString_AsString(obj0);
    }
    result = (SWFAction )compileSWFActionCode(arg0);
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFAction);
    return resultobj;
}


static PyObject *_wrap_swfButton_keypress(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    char arg0 ;
    int result ;
    
    if(!PyArg_ParseTuple(args,"c:swfButton_keypress",&arg0)) return NULL;
    result = (int )swfButton_keypress(arg0);
    resultobj = PyInt_FromLong((long)result);
    return resultobj;
}


static PyObject *_wrap_newSWFButton(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFButton result ;
    
    if(!PyArg_ParseTuple(args,":newSWFButton")) return NULL;
    result = (SWFButton )newSWFButton();
    resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_SWFButton);
    return resultobj;
}


static PyObject *_wrap_destroySWFButton(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFButton arg0 ;
    PyObject * argo0 =0 ;
    
    if(!PyArg_ParseTuple(args,"O:destroySWFButton",&argo0)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFButton,1)) == -1) return NULL;
    destroySWFButton(arg0);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFButton_addShape(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFButton arg0 ;
    SWFCharacter arg1 ;
    byte arg2 ;
    PyObject * argo0 =0 ;
    PyObject * argo1 =0 ;
    
    if(!PyArg_ParseTuple(args,"OOb:SWFButton_addShape",&argo0,&argo1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFButton,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_SWFCharacter,1)) == -1) return NULL;
    SWFButton_addShape(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyObject *_wrap_SWFButton_addAction(PyObject *self, PyObject *args) {
    PyObject *resultobj;
    SWFButton arg0 ;
    SWFAction arg1 ;
    int arg2 ;
    PyObject * argo0 =0 ;
    PyObject * argo1 =0 ;
    
    if(!PyArg_ParseTuple(args,"OOi:SWFButton_addAction",&argo0,&argo1,&arg2)) return NULL;
    if ((SWIG_ConvertPtr(argo0,(void **) &arg0,SWIGTYPE_SWFButton,1)) == -1) return NULL;
    if ((SWIG_ConvertPtr(argo1,(void **) &arg1,SWIGTYPE_SWFAction,1)) == -1) return NULL;
    SWFButton_addAction(arg0,arg1,arg2);
    Py_INCREF(Py_None);
    resultobj = Py_None;
    return resultobj;
}


static PyMethodDef mingcMethods[] = {
	 { "Ming_init", _wrap_Ming_init, METH_VARARGS },
	 { "Ming_setScale", _wrap_Ming_setScale, METH_VARARGS },
	 { "Ming_setCubicThreshold", _wrap_Ming_setCubicThreshold, METH_VARARGS },
	 { "destroySWFMovie", _wrap_destroySWFMovie, METH_VARARGS },
	 { "newSWFMovie", _wrap_newSWFMovie, METH_VARARGS },
	 { "SWFMovie_setRate", _wrap_SWFMovie_setRate, METH_VARARGS },
	 { "SWFMovie_setDimension", _wrap_SWFMovie_setDimension, METH_VARARGS },
	 { "SWFMovie_setNumberOfFrames", _wrap_SWFMovie_setNumberOfFrames, METH_VARARGS },
	 { "SWFMovie_setBackground", _wrap_SWFMovie_setBackground, METH_VARARGS },
	 { "SWFMovie_setSoundStream", _wrap_SWFMovie_setSoundStream, METH_VARARGS },
	 { "SWFMovie_add", _wrap_SWFMovie_add, METH_VARARGS },
	 { "SWFMovie_remove", _wrap_SWFMovie_remove, METH_VARARGS },
	 { "SWFMovie_nextFrame", _wrap_SWFMovie_nextFrame, METH_VARARGS },
	 { "SWFMovie_labelFrame", _wrap_SWFMovie_labelFrame, METH_VARARGS },
	 { "SWFMovie_output", _wrap_SWFMovie_output, METH_VARARGS },
	 { "SWFMovie_simpleOutput", _wrap_SWFMovie_simpleOutput, METH_VARARGS },
	 { "SWFMovie_save", _wrap_SWFMovie_save, METH_VARARGS },
	 { "SWFMovie_saveToFileNo", _wrap_SWFMovie_saveToFileNo, METH_VARARGS },
	 { "SWFDisplayItem_rotate", _wrap_SWFDisplayItem_rotate, METH_VARARGS },
	 { "SWFDisplayItem_rotateTo", _wrap_SWFDisplayItem_rotateTo, METH_VARARGS },
	 { "SWFDisplayItem_move", _wrap_SWFDisplayItem_move, METH_VARARGS },
	 { "SWFDisplayItem_moveTo", _wrap_SWFDisplayItem_moveTo, METH_VARARGS },
	 { "SWFDisplayItem_scale", _wrap_SWFDisplayItem_scale, METH_VARARGS },
	 { "SWFDisplayItem_scaleTo", _wrap_SWFDisplayItem_scaleTo, METH_VARARGS },
	 { "SWFDisplayItem_skewX", _wrap_SWFDisplayItem_skewX, METH_VARARGS },
	 { "SWFDisplayItem_skewXTo", _wrap_SWFDisplayItem_skewXTo, METH_VARARGS },
	 { "SWFDisplayItem_skewY", _wrap_SWFDisplayItem_skewY, METH_VARARGS },
	 { "SWFDisplayItem_skewYTo", _wrap_SWFDisplayItem_skewYTo, METH_VARARGS },
	 { "SWFDisplayItem_setMatrix", _wrap_SWFDisplayItem_setMatrix, METH_VARARGS },
	 { "SWFDisplayItem_getDepth", _wrap_SWFDisplayItem_getDepth, METH_VARARGS },
	 { "SWFDisplayItem_setDepth", _wrap_SWFDisplayItem_setDepth, METH_VARARGS },
	 { "SWFDisplayItem_remove", _wrap_SWFDisplayItem_remove, METH_VARARGS },
	 { "SWFDisplayItem_setName", _wrap_SWFDisplayItem_setName, METH_VARARGS },
	 { "SWFDisplayItem_setRatio", _wrap_SWFDisplayItem_setRatio, METH_VARARGS },
	 { "SWFDisplayItem_setCXform", _wrap_SWFDisplayItem_setCXform, METH_VARARGS },
	 { "SWFDisplayItem_setColorAdd", _wrap_SWFDisplayItem_setColorAdd, METH_VARARGS },
	 { "SWFDisplayItem_setColorMult", _wrap_SWFDisplayItem_setColorMult, METH_VARARGS },
	 { "destroySWFFill", _wrap_destroySWFFill, METH_VARARGS },
	 { "SWFFill_skewX", _wrap_SWFFill_skewX, METH_VARARGS },
	 { "SWFFill_skewXTo", _wrap_SWFFill_skewXTo, METH_VARARGS },
	 { "SWFFill_skewY", _wrap_SWFFill_skewY, METH_VARARGS },
	 { "SWFFill_skewYTo", _wrap_SWFFill_skewYTo, METH_VARARGS },
	 { "SWFFill_scaleX", _wrap_SWFFill_scaleX, METH_VARARGS },
	 { "SWFFill_scaleXTo", _wrap_SWFFill_scaleXTo, METH_VARARGS },
	 { "SWFFill_scaleY", _wrap_SWFFill_scaleY, METH_VARARGS },
	 { "SWFFill_scaleYTo", _wrap_SWFFill_scaleYTo, METH_VARARGS },
	 { "SWFFill_scaleXY", _wrap_SWFFill_scaleXY, METH_VARARGS },
	 { "SWFFill_scaleXYTo", _wrap_SWFFill_scaleXYTo, METH_VARARGS },
	 { "SWFFill_rotate", _wrap_SWFFill_rotate, METH_VARARGS },
	 { "SWFFill_rotateTo", _wrap_SWFFill_rotateTo, METH_VARARGS },
	 { "SWFFill_move", _wrap_SWFFill_move, METH_VARARGS },
	 { "SWFFill_moveTo", _wrap_SWFFill_moveTo, METH_VARARGS },
	 { "SWFFill_setMatrix", _wrap_SWFFill_setMatrix, METH_VARARGS },
	 { "SWFShape_addSolidFill", _wrap_SWFShape_addSolidFill, METH_VARARGS },
	 { "SWFShape_addGradientFill", _wrap_SWFShape_addGradientFill, METH_VARARGS },
	 { "SWFShape_addBitmapFill", _wrap_SWFShape_addBitmapFill, METH_VARARGS },
	 { "SWFShape_setLeftFill", _wrap_SWFShape_setLeftFill, METH_VARARGS },
	 { "SWFShape_setRightFill", _wrap_SWFShape_setRightFill, METH_VARARGS },
	 { "SWFShape_setLine", _wrap_SWFShape_setLine, METH_VARARGS },
	 { "SWFShape_drawArc", _wrap_SWFShape_drawArc, METH_VARARGS },
	 { "SWFShape_drawCircle", _wrap_SWFShape_drawCircle, METH_VARARGS },
	 { "SWFShape_movePenTo", _wrap_SWFShape_movePenTo, METH_VARARGS },
	 { "SWFShape_movePen", _wrap_SWFShape_movePen, METH_VARARGS },
	 { "SWFShape_drawLineTo", _wrap_SWFShape_drawLineTo, METH_VARARGS },
	 { "SWFShape_drawLine", _wrap_SWFShape_drawLine, METH_VARARGS },
	 { "SWFShape_drawCurveTo", _wrap_SWFShape_drawCurveTo, METH_VARARGS },
	 { "SWFShape_drawCurve", _wrap_SWFShape_drawCurve, METH_VARARGS },
	 { "SWFShape_drawCubic", _wrap_SWFShape_drawCubic, METH_VARARGS },
	 { "SWFShape_drawCubicTo", _wrap_SWFShape_drawCubicTo, METH_VARARGS },
	 { "newSWFMovieClip", _wrap_newSWFMovieClip, METH_VARARGS },
	 { "destroySWFMovieClip", _wrap_destroySWFMovieClip, METH_VARARGS },
	 { "SWFMovieClip_setNumberOfFrames", _wrap_SWFMovieClip_setNumberOfFrames, METH_VARARGS },
	 { "SWFMovieClip_add", _wrap_SWFMovieClip_add, METH_VARARGS },
	 { "SWFMovieClip_remove", _wrap_SWFMovieClip_remove, METH_VARARGS },
	 { "SWFMovieClip_nextFrame", _wrap_SWFMovieClip_nextFrame, METH_VARARGS },
	 { "SWFMovieClip_labelFrame", _wrap_SWFMovieClip_labelFrame, METH_VARARGS },
	 { "destroySWFBitmap", _wrap_destroySWFBitmap, METH_VARARGS },
	 { "SWFBitmap_getWidth", _wrap_SWFBitmap_getWidth, METH_VARARGS },
	 { "SWFBitmap_getHeight", _wrap_SWFBitmap_getHeight, METH_VARARGS },
	 { "newSWFDBLBitmap", _wrap_newSWFDBLBitmap, METH_VARARGS },
	 { "newSWFJpegBitmap", _wrap_newSWFJpegBitmap, METH_VARARGS },
	 { "newSWFJpegWithAlpha", _wrap_newSWFJpegWithAlpha, METH_VARARGS },
	 { "newSWFGradient", _wrap_newSWFGradient, METH_VARARGS },
	 { "destroySWFGradient", _wrap_destroySWFGradient, METH_VARARGS },
	 { "SWFGradient_addEntry", _wrap_SWFGradient_addEntry, METH_VARARGS },
	 { "newSWFShape", _wrap_newSWFShape, METH_VARARGS },
	 { "destroySWFShape", _wrap_destroySWFShape, METH_VARARGS },
	 { "SWFShape_end", _wrap_SWFShape_end, METH_VARARGS },
	 { "SWFShape_drawGlyph", _wrap_SWFShape_drawGlyph, METH_VARARGS },
	 { "SWFShape_drawFontGlyph", _wrap_SWFShape_drawFontGlyph, METH_VARARGS },
	 { "newSWFMorphShape", _wrap_newSWFMorphShape, METH_VARARGS },
	 { "destroySWFMorph", _wrap_destroySWFMorph, METH_VARARGS },
	 { "SWFMorph_getShape1", _wrap_SWFMorph_getShape1, METH_VARARGS },
	 { "SWFMorph_getShape2", _wrap_SWFMorph_getShape2, METH_VARARGS },
	 { "newSWFFont", _wrap_newSWFFont, METH_VARARGS },
	 { "destroySWFFont", _wrap_destroySWFFont, METH_VARARGS },
	 { "loadSWFFontFromFile", _wrap_loadSWFFontFromFile, METH_VARARGS },
	 { "SWFFont_getStringWidth", _wrap_SWFFont_getStringWidth, METH_VARARGS },
	 { "SWFFont_getAscent", _wrap_SWFFont_getAscent, METH_VARARGS },
	 { "SWFFont_getDescent", _wrap_SWFFont_getDescent, METH_VARARGS },
	 { "SWFFont_getLeading", _wrap_SWFFont_getLeading, METH_VARARGS },
	 { "newSWFText", _wrap_newSWFText, METH_VARARGS },
	 { "newSWFText2", _wrap_newSWFText2, METH_VARARGS },
	 { "destroySWFText", _wrap_destroySWFText, METH_VARARGS },
	 { "SWFText_setFont", _wrap_SWFText_setFont, METH_VARARGS },
	 { "SWFText_setHeight", _wrap_SWFText_setHeight, METH_VARARGS },
	 { "SWFText_moveTo", _wrap_SWFText_moveTo, METH_VARARGS },
	 { "SWFText_setColor", _wrap_SWFText_setColor, METH_VARARGS },
	 { "SWFText_addString", _wrap_SWFText_addString, METH_VARARGS },
	 { "SWFText_setSpacing", _wrap_SWFText_setSpacing, METH_VARARGS },
	 { "SWFText_getStringWidth", _wrap_SWFText_getStringWidth, METH_VARARGS },
	 { "SWFText_getAscent", _wrap_SWFText_getAscent, METH_VARARGS },
	 { "SWFText_getDescent", _wrap_SWFText_getDescent, METH_VARARGS },
	 { "SWFText_getLeading", _wrap_SWFText_getLeading, METH_VARARGS },
	 { "newSWFBrowserFont", _wrap_newSWFBrowserFont, METH_VARARGS },
	 { "destroySWFBrowserFont", _wrap_destroySWFBrowserFont, METH_VARARGS },
	 { "newSWFTextField", _wrap_newSWFTextField, METH_VARARGS },
	 { "destroySWFTextField", _wrap_destroySWFTextField, METH_VARARGS },
	 { "SWFTextField_setFont", _wrap_SWFTextField_setFont, METH_VARARGS },
	 { "SWFTextField_setBounds", _wrap_SWFTextField_setBounds, METH_VARARGS },
	 { "SWFTextField_setFlags", _wrap_SWFTextField_setFlags, METH_VARARGS },
	 { "SWFTextField_setColor", _wrap_SWFTextField_setColor, METH_VARARGS },
	 { "SWFTextField_setVariableName", _wrap_SWFTextField_setVariableName, METH_VARARGS },
	 { "SWFTextField_addString", _wrap_SWFTextField_addString, METH_VARARGS },
	 { "SWFTextField_setHeight", _wrap_SWFTextField_setHeight, METH_VARARGS },
	 { "SWFTextField_setFieldHeight", _wrap_SWFTextField_setFieldHeight, METH_VARARGS },
	 { "SWFTextField_setLeftMargin", _wrap_SWFTextField_setLeftMargin, METH_VARARGS },
	 { "SWFTextField_setRightMargin", _wrap_SWFTextField_setRightMargin, METH_VARARGS },
	 { "SWFTextField_setIndentation", _wrap_SWFTextField_setIndentation, METH_VARARGS },
	 { "SWFTextField_setLineSpacing", _wrap_SWFTextField_setLineSpacing, METH_VARARGS },
	 { "SWFTextField_setAlignment", _wrap_SWFTextField_setAlignment, METH_VARARGS },
	 { "SWFTextField_setLength", _wrap_SWFTextField_setLength, METH_VARARGS },
	 { "newSWFSound", _wrap_newSWFSound, METH_VARARGS },
	 { "destroySWFSound", _wrap_destroySWFSound, METH_VARARGS },
	 { "compileSWFActionCode", _wrap_compileSWFActionCode, METH_VARARGS },
	 { "swfButton_keypress", _wrap_swfButton_keypress, METH_VARARGS },
	 { "newSWFButton", _wrap_newSWFButton, METH_VARARGS },
	 { "destroySWFButton", _wrap_destroySWFButton, METH_VARARGS },
	 { "SWFButton_addShape", _wrap_SWFButton_addShape, METH_VARARGS },
	 { "SWFButton_addAction", _wrap_SWFButton_addAction, METH_VARARGS },
	 { NULL, NULL }
};

#ifdef __cplusplus
}
#endif

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

static swig_type_info _swigt__SWFMovieClip[] = {{"_SWFMovieClip", 0, "SWFMovieClip "},{"_SWFMovieClip"},{"_SWFMovie"},{"_SWFGradient"},{"_SWFDisplayItem"},{"_SWFShape"},{"_SWFBitmap"},{"_SWFText"},{"_SWFFont"},{"_p_void"},{"_SWFButton"},{"_SWFMorph"},{"_SWFTextField"},{"_SWFBlock"},{"_SWFFill"},{"_SWFSound"},{"_SWFAction"},{"_SWFBrowserFont"},{"_SWFCharacter"},{0}};
static swig_type_info _swigt__SWFMovie[] = {{"_SWFMovie", 0, "SWFMovie "},{"_SWFMovieClip"},{"_SWFMovie"},{"_SWFGradient"},{"_SWFDisplayItem"},{"_SWFShape"},{"_SWFBitmap"},{"_SWFText"},{"_SWFFont"},{"_p_void"},{"_SWFButton"},{"_SWFMorph"},{"_SWFTextField"},{"_SWFBlock"},{"_SWFFill"},{"_SWFSound"},{"_SWFAction"},{"_SWFBrowserFont"},{"_SWFCharacter"},{0}};
static swig_type_info _swigt__SWFGradient[] = {{"_SWFGradient", 0, "SWFGradient "},{"_SWFMovieClip"},{"_SWFMovie"},{"_SWFGradient"},{"_SWFDisplayItem"},{"_SWFShape"},{"_SWFBitmap"},{"_SWFText"},{"_SWFFont"},{"_p_void"},{"_SWFButton"},{"_SWFMorph"},{"_SWFTextField"},{"_SWFBlock"},{"_SWFFill"},{"_SWFSound"},{"_SWFAction"},{"_SWFBrowserFont"},{"_SWFCharacter"},{0}};
static swig_type_info _swigt__SWFDisplayItem[] = {{"_SWFDisplayItem", 0, "SWFDisplayItem "},{"_SWFMovieClip"},{"_SWFMovie"},{"_SWFGradient"},{"_SWFDisplayItem"},{"_SWFShape"},{"_SWFBitmap"},{"_SWFText"},{"_SWFFont"},{"_p_void"},{"_SWFButton"},{"_SWFMorph"},{"_SWFTextField"},{"_SWFBlock"},{"_SWFFill"},{"_SWFSound"},{"_SWFAction"},{"_SWFBrowserFont"},{"_SWFCharacter"},{0}};
static swig_type_info _swigt__SWFShape[] = {{"_SWFShape", 0, "SWFShape "},{"_SWFMovieClip"},{"_SWFMovie"},{"_SWFGradient"},{"_SWFDisplayItem"},{"_SWFShape"},{"_SWFBitmap"},{"_SWFText"},{"_SWFFont"},{"_p_void"},{"_SWFButton"},{"_SWFMorph"},{"_SWFTextField"},{"_SWFBlock"},{"_SWFFill"},{"_SWFSound"},{"_SWFAction"},{"_SWFBrowserFont"},{"_SWFCharacter"},{0}};
static swig_type_info _swigt__SWFBitmap[] = {{"_SWFBitmap", 0, "SWFBitmap "},{"_SWFMovieClip"},{"_SWFMovie"},{"_SWFGradient"},{"_SWFDisplayItem"},{"_SWFShape"},{"_SWFBitmap"},{"_SWFText"},{"_SWFFont"},{"_p_void"},{"_SWFButton"},{"_SWFMorph"},{"_SWFTextField"},{"_SWFBlock"},{"_SWFFill"},{"_SWFSound"},{"_SWFAction"},{"_SWFBrowserFont"},{"_SWFCharacter"},{0}};
static swig_type_info _swigt__p_SWFByteOutputMethod[] = {{"_p_SWFByteOutputMethod", 0, "SWFByteOutputMethod *"},{"_p_SWFByteOutputMethod"},{0}};
static swig_type_info _swigt__p_SWFCXform[] = {{"_p_SWFCXform", 0, "SWFCXform *"},{"_p_SWFCXform"},{0}};
static swig_type_info _swigt__SWFText[] = {{"_SWFText", 0, "SWFText "},{"_SWFMovieClip"},{"_SWFMovie"},{"_SWFGradient"},{"_SWFDisplayItem"},{"_SWFShape"},{"_SWFBitmap"},{"_SWFText"},{"_SWFFont"},{"_p_void"},{"_SWFButton"},{"_SWFMorph"},{"_SWFTextField"},{"_SWFBlock"},{"_SWFFill"},{"_SWFSound"},{"_SWFAction"},{"_SWFBrowserFont"},{"_SWFCharacter"},{0}};
static swig_type_info _swigt__SWFFont[] = {{"_SWFFont", 0, "SWFFont "},{"_SWFMovieClip"},{"_SWFMovie"},{"_SWFGradient"},{"_SWFDisplayItem"},{"_SWFShape"},{"_SWFBitmap"},{"_SWFText"},{"_SWFFont"},{"_p_void"},{"_SWFButton"},{"_SWFMorph"},{"_SWFTextField"},{"_SWFBlock"},{"_SWFFill"},{"_SWFSound"},{"_SWFAction"},{"_SWFBrowserFont"},{"_SWFCharacter"},{0}};
static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *"},{"_SWFMovieClip"},{"_SWFMovie"},{"_SWFGradient"},{"_SWFDisplayItem"},{"_SWFShape"},{"_SWFBitmap"},{"_SWFText"},{"_SWFFont"},{"_p_void"},{"_SWFButton"},{"_SWFMorph"},{"_SWFTextField"},{"_SWFBlock"},{"_SWFFill"},{"_SWFSound"},{"_SWFAction"},{"_SWFBrowserFont"},{"_SWFCharacter"},{0}};
static swig_type_info _swigt__SWFMorph[] = {{"_SWFMorph", 0, "SWFMorph "},{"_SWFMovieClip"},{"_SWFMovie"},{"_SWFGradient"},{"_SWFDisplayItem"},{"_SWFShape"},{"_SWFBitmap"},{"_SWFText"},{"_SWFFont"},{"_p_void"},{"_SWFButton"},{"_SWFMorph"},{"_SWFTextField"},{"_SWFBlock"},{"_SWFFill"},{"_SWFSound"},{"_SWFAction"},{"_SWFBrowserFont"},{"_SWFCharacter"},{0}};
static swig_type_info _swigt__SWFButton[] = {{"_SWFButton", 0, "SWFButton "},{"_SWFMovieClip"},{"_SWFMovie"},{"_SWFGradient"},{"_SWFDisplayItem"},{"_SWFShape"},{"_SWFBitmap"},{"_SWFText"},{"_SWFFont"},{"_p_void"},{"_SWFButton"},{"_SWFMorph"},{"_SWFTextField"},{"_SWFBlock"},{"_SWFFill"},{"_SWFSound"},{"_SWFAction"},{"_SWFBrowserFont"},{"_SWFCharacter"},{0}};
static swig_type_info _swigt__SWFBlock[] = {{"_SWFBlock", 0, "SWFBlock "},{"_SWFMovieClip"},{"_SWFMovie"},{"_SWFGradient"},{"_SWFDisplayItem"},{"_SWFShape"},{"_SWFBitmap"},{"_SWFText"},{"_SWFFont"},{"_p_void"},{"_SWFButton"},{"_SWFMorph"},{"_SWFTextField"},{"_SWFBlock"},{"_SWFFill"},{"_SWFSound"},{"_SWFAction"},{"_SWFBrowserFont"},{"_SWFCharacter"},{0}};
static swig_type_info _swigt__SWFTextField[] = {{"_SWFTextField", 0, "SWFTextField "},{"_SWFMovieClip"},{"_SWFMovie"},{"_SWFGradient"},{"_SWFDisplayItem"},{"_SWFShape"},{"_SWFBitmap"},{"_SWFText"},{"_SWFFont"},{"_p_void"},{"_SWFButton"},{"_SWFMorph"},{"_SWFTextField"},{"_SWFBlock"},{"_SWFFill"},{"_SWFSound"},{"_SWFAction"},{"_SWFBrowserFont"},{"_SWFCharacter"},{0}};
static swig_type_info _swigt__SWFFill[] = {{"_SWFFill", 0, "SWFFill "},{"_SWFMovieClip"},{"_SWFMovie"},{"_SWFGradient"},{"_SWFDisplayItem"},{"_SWFShape"},{"_SWFBitmap"},{"_SWFText"},{"_SWFFont"},{"_p_void"},{"_SWFButton"},{"_SWFMorph"},{"_SWFBlock"},{"_SWFTextField"},{"_SWFFill"},{"_SWFSound"},{"_SWFAction"},{"_SWFBrowserFont"},{"_SWFCharacter"},{0}};
static swig_type_info _swigt__SWFSound[] = {{"_SWFSound", 0, "SWFSound "},{"_SWFMovieClip"},{"_SWFMovie"},{"_SWFGradient"},{"_SWFDisplayItem"},{"_SWFShape"},{"_SWFBitmap"},{"_SWFText"},{"_SWFFont"},{"_p_void"},{"_SWFButton"},{"_SWFMorph"},{"_SWFBlock"},{"_SWFTextField"},{"_SWFFill"},{"_SWFSound"},{"_SWFAction"},{"_SWFBrowserFont"},{"_SWFCharacter"},{0}};
static swig_type_info _swigt__SWFAction[] = {{"_SWFAction", 0, "SWFAction "},{"_SWFMovieClip"},{"_SWFMovie"},{"_SWFGradient"},{"_SWFDisplayItem"},{"_SWFShape"},{"_SWFBitmap"},{"_SWFText"},{"_SWFFont"},{"_p_void"},{"_SWFButton"},{"_SWFMorph"},{"_SWFBlock"},{"_SWFTextField"},{"_SWFFill"},{"_SWFSound"},{"_SWFAction"},{"_SWFBrowserFont"},{"_SWFCharacter"},{0}};
static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *"},{"_p_int"},{0}};
static swig_type_info _swigt__SWFBrowserFont[] = {{"_SWFBrowserFont", 0, "SWFBrowserFont "},{"_SWFMovieClip"},{"_SWFMovie"},{"_SWFGradient"},{"_SWFDisplayItem"},{"_SWFShape"},{"_SWFBitmap"},{"_SWFText"},{"_SWFFont"},{"_p_void"},{"_SWFButton"},{"_SWFMorph"},{"_SWFBlock"},{"_SWFTextField"},{"_SWFFill"},{"_SWFSound"},{"_SWFAction"},{"_SWFBrowserFont"},{"_SWFCharacter"},{0}};
static swig_type_info _swigt__SWFCharacter[] = {{"_SWFCharacter", 0, "SWFCharacter "},{"_SWFMovieClip"},{"_SWFMovie"},{"_SWFGradient"},{"_SWFDisplayItem"},{"_SWFShape"},{"_SWFBitmap"},{"_SWFText"},{"_SWFFont"},{"_p_void"},{"_SWFButton"},{"_SWFMorph"},{"_SWFBlock"},{"_SWFTextField"},{"_SWFFill"},{"_SWFSound"},{"_SWFAction"},{"_SWFBrowserFont"},{"_SWFCharacter"},{0}};

static swig_type_info *swig_types_initial[] = {
_swigt__SWFMovieClip, 
_swigt__SWFMovie, 
_swigt__SWFGradient, 
_swigt__SWFDisplayItem, 
_swigt__SWFShape, 
_swigt__SWFBitmap, 
_swigt__p_SWFByteOutputMethod, 
_swigt__p_SWFCXform, 
_swigt__SWFText, 
_swigt__SWFFont, 
_swigt__p_void, 
_swigt__SWFMorph, 
_swigt__SWFButton, 
_swigt__SWFBlock, 
_swigt__SWFTextField, 
_swigt__SWFFill, 
_swigt__SWFSound, 
_swigt__SWFAction, 
_swigt__p_int, 
_swigt__SWFBrowserFont, 
_swigt__SWFCharacter, 
0
};


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

static swig_const_info swig_const_table[] = {
    { SWIG_PY_INT,     "SWFFILL_SOLID", (long) 0x00, 0, 0, 0},
    { SWIG_PY_INT,     "SWFFILL_GRADIENT", (long) 0x10, 0, 0, 0},
    { SWIG_PY_INT,     "SWFFILL_LINEAR_GRADIENT", (long) 0x10, 0, 0, 0},
    { SWIG_PY_INT,     "SWFFILL_RADIAL_GRADIENT", (long) 0x12, 0, 0, 0},
    { SWIG_PY_INT,     "SWFFILL_BITMAP", (long) 0x40, 0, 0, 0},
    { SWIG_PY_INT,     "SWFFILL_TILED_BITMAP", (long) 0x40, 0, 0, 0},
    { SWIG_PY_INT,     "SWFFILL_CLIPPED_BITMAP", (long) 0x41, 0, 0, 0},
    { SWIG_PY_INT,     "SWFTEXTFIELD_ONMASK", (long) 0x2085, 0, 0, 0},
    { SWIG_PY_INT,     "SWFTEXTFIELD_OFFMASK", (long) 0x38FF, 0, 0, 0},
    { SWIG_PY_INT,     "SWFTEXTFIELD_HASLENGTH", (long) (1<<1), 0, 0, 0},
    { SWIG_PY_INT,     "SWFTEXTFIELD_NOEDIT", (long) (1<<3), 0, 0, 0},
    { SWIG_PY_INT,     "SWFTEXTFIELD_PASSWORD", (long) (1<<4), 0, 0, 0},
    { SWIG_PY_INT,     "SWFTEXTFIELD_MULTILINE", (long) (1<<5), 0, 0, 0},
    { SWIG_PY_INT,     "SWFTEXTFIELD_WORDWRAP", (long) (1<<6), 0, 0, 0},
    { SWIG_PY_INT,     "SWFTEXTFIELD_DRAWBOX", (long) (1<<11), 0, 0, 0},
    { SWIG_PY_INT,     "SWFTEXTFIELD_NOSELECT", (long) (1<<12), 0, 0, 0},
    { SWIG_PY_INT,     "SWFTEXTFIELD_HTML", (long) (1<<9), 0, 0, 0},
    { SWIG_PY_INT,     "SWFTEXTFIELD_ALIGN_LEFT", (long) SWFTEXTFIELD_ALIGN_LEFT, 0, 0, 0},
    { SWIG_PY_INT,     "SWFTEXTFIELD_ALIGN_RIGHT", (long) SWFTEXTFIELD_ALIGN_RIGHT, 0, 0, 0},
    { SWIG_PY_INT,     "SWFTEXTFIELD_ALIGN_CENTER", (long) SWFTEXTFIELD_ALIGN_CENTER, 0, 0, 0},
    { SWIG_PY_INT,     "SWFTEXTFIELD_ALIGN_JUSTIFY", (long) SWFTEXTFIELD_ALIGN_JUSTIFY, 0, 0, 0},
    { SWIG_PY_INT,     "SWF_SOUND_COMPRESSION", (long) 0xf0, 0, 0, 0},
    { SWIG_PY_INT,     "SWF_SOUND_NOT_COMPRESSED", (long) (0<<4), 0, 0, 0},
    { SWIG_PY_INT,     "SWF_SOUND_ADPCM_COMPRESSED", (long) (1<<4), 0, 0, 0},
    { SWIG_PY_INT,     "SWF_SOUND_RATE", (long) 0x0c, 0, 0, 0},
    { SWIG_PY_INT,     "SWF_SOUND_5KHZ", (long) (0<<2), 0, 0, 0},
    { SWIG_PY_INT,     "SWF_SOUND_11KHZ", (long) (1<<2), 0, 0, 0},
    { SWIG_PY_INT,     "SWF_SOUND_22KHZ", (long) (2<<2), 0, 0, 0},
    { SWIG_PY_INT,     "SWF_SOUND_44KHZ", (long) (3<<2), 0, 0, 0},
    { SWIG_PY_INT,     "SWF_SOUND_BITS", (long) 0x02, 0, 0, 0},
    { SWIG_PY_INT,     "SWF_SOUND_8BIT", (long) (0<<1), 0, 0, 0},
    { SWIG_PY_INT,     "SWF_SOUND_16BIT", (long) (1<<1), 0, 0, 0},
    { SWIG_PY_INT,     "SWF_SOUND_CHANNELS", (long) 0x01, 0, 0, 0},
    { SWIG_PY_INT,     "SWF_SOUND_MONO", (long) (0<<0), 0, 0, 0},
    { SWIG_PY_INT,     "SWF_SOUND_STEREO", (long) (1<<0), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_HIT", (long) (1<<3), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_DOWN", (long) (1<<2), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_OVER", (long) (1<<1), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_UP", (long) (1<<0), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_OVERDOWNTOIDLE", (long) (1<<8), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_IDLETOOVERDOWN", (long) (1<<7), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_OUTDOWNTOIDLE", (long) (1<<6), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_OUTDOWNTOOVERDOWN", (long) (1<<5), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_OVERDOWNTOOUTDOWN", (long) (1<<4), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_OVERDOWNTOOVERUP", (long) (1<<3), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_OVERUPTOOVERDOWN", (long) (1<<2), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_OVERUPTOIDLE", (long) (1<<1), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_IDLETOOVERUP", (long) (1<<0), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_MOUSEUPOUTSIDE", (long) (1<<6), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_DRAGOVER", (long) ((1<<5)|(1<<7)), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_DRAGOUT", (long) ((1<<4)|(1<<8)), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_MOUSEUP", (long) (1<<3), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_MOUSEDOWN", (long) (1<<2), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_MOUSEOUT", (long) (1<<1), 0, 0, 0},
    { SWIG_PY_INT,     "SWFBUTTON_MOUSEOVER", (long) (1<<0), 0, 0, 0},
{0}};

static PyObject *SWIG_globals;
#ifdef __cplusplus
extern "C" 
#endif
SWIGEXPORT(void) initmingc(void) {
    PyObject *m, *d;
    int i;
    SWIG_globals = SWIG_newvarlink();
    m = Py_InitModule("mingc", mingcMethods);
    d = PyModule_GetDict(m);
    for (i = 0; swig_types_initial[i]; i++) {
        swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
    }
    SWIG_InstallConstants(d,swig_const_table);
}

