/* [<][>][^][v][top][bottom][index][help] */
DEFINITIONS
This source file includes following definitions.
- main
#include <mingpp.h>
#include <cstdlib>
int main()
{
try {
SWFMovie *m = new SWFMovie();
SWFShape *s = new SWFShape();
SWFFillStyle *fill = SWFFillStyle::SolidFillStyle(255,255,0,255);
s->setLine(1, 255, 0, 0, 255);
s->setRightFillStyle(fill);
s->drawLine(100,0);
s->drawLine(0,40);
s->drawLineTo(0,0);
SWFButton *b = new SWFButton();
SWFButtonRecord *br1, *br2, *br3;
br1 = b->addCharacter(s, SWFBUTTON_HIT|SWFBUTTON_UP|SWFBUTTON_OVER|SWFBUTTON_DOWN);
br2 = b->addCharacter(s, SWFBUTTON_OVER|SWFBUTTON_DOWN);
br2->rotate(10);
br2->move(20,0);
br3 = b->addCharacter(s, SWFBUTTON_DOWN);
br3->rotate(20);
br3->move(40,0);
SWFDisplayItem *d = m->add(b);
d->moveTo(50, 100);
m->nextFrame();
m->save("test02.swf");
}
catch(SWFException &e)
{
std::cerr << "SWFException: " << e.what() << std::endl << std::endl;
return EXIT_FAILURE;
}
return 0;
}