| Basic drawing commands revealed, uninteresting shape rendered. In red. |
| Everything you want to know -- everything you could know -- about adding text to SWF movies. |
| The previous example shows how to make text objects. This shows how to draw glyph outlines into shape objects. The difference is this allows you to set fill/line properties for the text, instead of just being able to change the text color. |
| Stare in amazement as your very own words spin nauseatingly in front of you. What will you choose- your name? an onomatopoeia? random symbols? perhaps a trite obscenity? |
| The happy red square spins gleefully! |
| The happy red square turns into a mean blue square! |
| Can now use PNG images in shapes.. |
| ..even those with alpha channels. |
| ..plus jpegs, too! |
| And you can put an alpha mask on a jpeg fill. |
| A red splotch in a grey field. |
| A morphing gradient fill. |
| A morphing bitmap fill- if only it worked.. |
| ..the spooky halloween/landing-on-jupiter version. |
| The happy red square swims gracefully across the screen! |
| Shows how to follow the mouse around the window. Warning: users with nervous disorders should avoid this one. |
| Shows how to add a keypress action to a button. Hint: use SWFBUTTON_KEYPRESS() as a flag to SWFButton::addAction. |
| Fancy button actions and text fields. |
% ruby newbutton.rb newbutton.rb:54: undefined method `set_name' for #<Ming::SWFTextField:0x2acc6778> (NameError) newbutton.rb:54: [BUG] Segmentation fault ruby 1.6.7 (2002-03-01) [i386-linux-gnu] zsh: 11523 abort ruby newbutton.rb
| This one's a real drag. Ha! Get it? A DRAG! whew boy. |
| The happy red square changes color when you click on it! |