📄 test02-cxx.c
字号:
#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;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -