[TR] |
[TD] |
[/TD][/TR] |
[TR] |
[TD] |
[img][/img] |
0 && image.height>0){if(image.width>=510){this.width=510;this.height=image.height*510/image.width;}}"> |
[img][/img] |
0 && image.height>0){if(image.width>=510){this.width=510;this.height=image.height*510/image.width;}}" border=0>[/TD][/TR] |
[TR] |
[TD] |
setFont( $f ); |
$t->setColor( 0, 0, 0 ); |
$t->setHeight( 400 ); |
$t->addString( 'Hello World' ); |
$m = new SWFMovie(); |
$m->setDimension( 2500, 800 ); |
$m->add( $t ); |
$m->save( 'hello.swf' ); |
?> |
[/TD][/TR] |
[TR] |
[TD]header( 'Content-type: application/x-shockwave-flash' ); |
$m->output( ); |
[/TD][/TR] |
[TR] |
[TD] |
[img][/img] |
0 && image.height>0){if(image.width>=510){this.width=510;this.height=image.height*510/image.width;}}"> |
[img][/img] |
0 && image.height>0){if(image.width>=510){this.width=510;this.height=image.height*510/image.width;}}" border=0>[/TD][/TR] |
[TR] |
[TD] |
setFont( $f ); |
$pt->setColor( 0, 0, 0 ); |
$pt->setHeight( 400 ); |
$pt->addString( '1000' ); |
$tt = new SWFTextField(); |
$tt->setFont( $f ); |
$tt->setColor( 192, 192, 192, 90 ); |
$tt->setHeight( 350 ); |
$tt->addString( 'Points' ); |
$m = new SWFMovie(); |
$m->setDimension( 2500, 800 ); |
$pts = $m->add( $pt ); |
$pts->moveTo( 0, 0 ); |
$tts = $m->add( $tt ); |
$tts->moveTo( 1300, 200 ); |
for( $i = 0; $i nextframe(); |
$pts->scaleTo( 1.0 + ( $i / 10.0 ), 1.0 + ( $i / 10.0 ) ); |
} |
$m->save( 'text.swf' ); |
?> |
[/TD][/TR] |
[TR] |
[TD] |
[img][/img] |
0 && image.height>0){if(image.width>=510){this.width=510;this.height=image.height*510/image.width;}}"> |
[img][/img] |
0 && image.height>0){if(image.width>=510){this.width=510;this.height=image.height*510/image.width;}}" border=0>[/TD][/TR] |
[TR] | |||||||||
[TD] | |||||||||
[img][/img] | |||||||||
0 && image.height>0){if(image.width>=510){this.width=510;this.height=image.height*510/image.width;}}"> | |||||||||
|
[TR] |
[TD] |
setDimension( 300, 300 ); |
$s = new SWFShape(); |
$s->setLine( 10, 0, 0, 0 ); |
$s->movePenTo( 10, 10 ); |
$s->drawLineTo( 290, 290 ); |
$m->add( $s ); |
$m->save( 'line.swf' ); |
?> |
[/TD][/TR] |
[TR] |
[TD] |
setDimension( 300, 300 ); |
$s = new SWFShape(); |
$s->setLine( 5, 0, 0, 0 ); |
$s->movePenTo( -100, -100 ); |
$s->drawLineTo( 100, 100 ); |
$ts = $m->add( $s ); |
$ts->moveTo( 150, 150 ); |
for( $i = 0; $i rotate( 10 ); |
$m->nextframe(); |
} |
$m->save( 'rotate.swf' ); |
?> |
[/TD][/TR] |
[TR] |
[TD] |
[img][/img] |
0 && image.height>0){if(image.width>=510){this.width=510;this.height=image.height*510/image.width;}}"> |
[img][/img] |
0 && image.height>0){if(image.width>=510){this.width=510;this.height=image.height*510/image.width;}}" border=0>[/TD][/TR] |
[TR] |
[TD] |
addFill( $); |
$s->setRightFill( $); |
$s->movePenTo( 0, 0 ); |
$s->drawLineTo( $img->getWidth(), 0 ); |
$s->drawLineTo( $img->getWidth(), $img->getHeight() ); |
$s->drawLineTo( 0, $img->getHeight() ); |
$s->drawLineTo( 0, 0 ); |
$m = new SWFMovie(); |
$m->setDimension( $img->getWidth() * 2, $img->getHeight() * 2 ); |
$is = $m->add( $s ); |
$is->moveTo( $img->getWidth() / 2, $img->getHeight() / 2 ); |
for( $i = 0; $i skewx( 0.02 ); |
$is->skewy( -0.03 ); |
$m->nextframe(); |
} |
$m->save( 'image.swf' ); |
?> |
[/TD][/TR] |
[TR] |
[TD] |
[img][/img] |
0 && image.height>0){if(image.width>=510){this.width=510;this.height=image.height*510/image.width;}}"> |
[img][/img] |
0 && image.height>0){if(image.width>=510){this.width=510;this.height=image.height*510/image.width;}}" border=0>[/TD][/TR] |
[TR] |
[TD] |
[img][/img] |
0 && image.height>0){if(image.width>=510){this.width=510;this.height=image.height*510/image.width;}}"> |
[img][/img] |
0 && image.height>0){if(image.width>=510){this.width=510;this.height=image.height*510/image.width;}}" border=0>[/TD][/TR] |
[TR] |
[TD] |
[img][/img] |
0 && image.height>0){if(image.width>=510){this.width=510;this.height=image.height*510/image.width;}}"> |
[img][/img] |
0 && image.height>0){if(image.width>=510){this.width=510;this.height=image.height*510/image.width;}}" border=0>[/TD][/TR] |
欢迎光临 时时商务社区 (http://bbs.4435.cn/) | Powered by Discuz! X3.2 |