root/test/Movie/replace/test02.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. main

#include <ming.h>


int main()
{
        int i;
        SWFMovie m = newSWFMovieWithVersion(8);

        SWFShape shape1 = newSWFShape();
        
        SWFShape_setLine2(shape1, 1, 25, 0, 0, 128, SWF_LINESTYLE_FLAG_HINTING, 0);
        SWFShape_movePenTo(shape1, 5, 5);
        SWFShape_drawLineTo(shape1, 50, 30);

        SWFDisplayItem item = SWFMovie_add(m, shape1);
        SWFMovie_nextFrame(m);
        SWFMovie_replace(m, item, shape1);
        SWFMovie_nextFrame(m);

        SWFMovie_save(m,"test02.swf");

        return 0;
}

/* [<][>][^][v][top][bottom][index][help] */