Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

swf::button(3pm) [debian man page]

.::SWF::Button(3pm)					User Contributed Perl Documentation				       .::SWF::Button(3pm)

NAME
SWF::Button - SWF button class SYNOPSIS
use SWF::Button; $button = new SWF::Button(); $button->setUp($shape1); $button->setDown($shape2); DESCRIPTION
Creates buttons for flash movies. Buttons are controlled by various methods for visible design and triggered actions, see below: METHODS
new SWF::Button() Creates a new Button object. $button->addShape($shape, FLAG) Adds $shape to the button. Using this method is not recommended, better use addCharacter(), see next item for details. Also unlike addCharacter() this method does not return any SWF::ButtonRecord objects $buttonrecord = $button->addCharacter($character [, $flags]) Adds character $shape to the button. Valid FLAGs are: SWFBUTTON_HIT SWFBUTTON_UP SWFBUTTON_DOWN SWFBUTTON_OVER Unlike addShape() this method returns an object of SWF::ButtonRecord class. The flag states can be combined using the binary or operator. $buttonrecord = $button->setOver($shape) Shortcut for $button->addCharacter($shape, SWFBUTTON_OVER); $buttonrecord = $button->setHit($shape) Shortcut for $button->addCharacter($shape, SWFBUTTON_HIT); $buttonrecord = $button->setUp($shape) Shortcut for $button->addCharacter($shape, SWFBUTTON_UP); $buttonrecord = $button->setDown($shape) Shortcut for $button->addCharacter($shape, SWFBUTTON_DOWN); $button->addAction($action [,FLAG]) $button->setAction($action [,FLAG]) Adds $action object (see SWF::Action). Valid FLAGs are: SWFBUTTON_MOUSEUP SWFBUTTON_MOUSEOVER SWFBUTTON_MOUSEOUT SWFBUTTON_MOUSEDOWN SWFBUTTON_DRAGOVER SWFBUTTON_DRAGOUT SWFBUTTON_MOUSEUP is the default value of FLAG. $button->setMenu(0|1) Parameter is 0 (off) or 1(on). Can be used for a slight different behavior of buttons. $soundinstance = $button->addSound($sound, $flags) Plays a prepared SWF::Sound object and returns an object of SWF::SoundInstance. Once more valid flags are: SWFBUTTON_MOUSEUP SWFBUTTON_MOUSEOVER SWFBUTTON_MOUSEOUT SWFBUTTON_MOUSEDOWN For example: $sound = new SWF::Sound("wow.mp3", SWF_SOUND_MP3_COMPRESSED ); $soundinstance = $button->addSound($sound, SWFBUTTON_MOUSEDOWN ); $button->setScalingGrid($x, $y, $w, $h) This function (available from SWF>=8) sets a 9 slice scaling grid: 1 2 3 4 5 6 7 8 9 X, y, w and h define a rectangle, which is the dimension of the center slice(5). All other slices are determined out of the characters bounds and the defined rect. While slice 5 is scaled vertical and horizontal, slice 2 and 8 are only scaled horizontal. Slice 4 and 6 only vertical. The 4 corner slices are not scaled (1, 3, 7, 9). $button->removeScalingGrid() Removes scaling grid rectangles. AUTHOR
wrapper written by Soheil Seyfaie (soheil at users dot sourceforge dot net) Peter Liscovius (peterdd at users dot sourceforge dot net) and many others. SEE ALSO
SWF, SWF::Action, SWF::Shape, SWF::Movie, SWF::MovieClip, SWF::Constants, SWF::Sound, SWF::SoundInstance perl v5.14.2 2011-10-26 .::SWF::Button(3pm)

Check Out this Related Man Page

.::SWF::Constants(3pm)					User Contributed Perl Documentation				    .::SWF::Constants(3pm)

NAME
SWF::Constants - Constants defined in ming SYNOPSIS
use SWF::Constants 'SWFBUTTON_MOUSEUP'; # import SWFBUTTON_MOUSEUP use SWF::Constants ':Button'; # import all constants for SWF::Button DESCRIPTION
SWF::Constants allows importing constants defined in ming. EXPORT TAGS
Button This tag imports constants most commonly used by SWF::Button. SWFBUTTON_MOUSEUP SWFBUTTON_HIT SWFBUTTON_DOWN SWFBUTTON_OVER SWFBUTTON_UP SWFBUTTON_MOUSEOVER SWFBUTTON_MOUSEOUT SWFBUTTON_MOUSEDOWN SWFBUTTON_DRAGOUT SWFBUTTON_DRAGOVER SWFBUTTON_MOUSEUPOUTSIDE SWFBUTTON_KEYPRESS SWFBUTTON_ONKEYPRESS DisplayItem This tag imports constants most commonly used by SWF::DisplayItem. SWFACTION_ONLOAD SWFACTION_ENTERFRAME SWFACTION_UNLOAD SWFACTION_MOUSEMOVE SWFACTION_MOUSEDOWN SWFACTION_MOUSEUP SWFACTION_KEYDOWN SWFACTION_KEYUP SWFACTION_DATA SWFBLEND_MODE_NULL SWFBLEND_MODE_NORMAL SWFBLEND_MODE_LAYER SWFBLEND_MODE_MULT SWFBLEND_MODE_SCREEN SWFBLEND_MODE_DARKEN SWFBLEND_MODE_LIGHTEN SWFBLEND_MODE_ADD SWFBLEND_MODE_SUB SWFBLEND_MODE_DIFF SWFBLEND_MODE_INV SWFBLEND_MODE_ALPHA SWFBLEND_MODE_ERASE SWFBLEND_MODE_OVERLAY SWFBLEND_MODE_HARDLIGHT Fill This tag imports constants most commonly used by SWF::Fill. SWFFILL_SOLID SWFFILL_GRADIENT SWFFILL_LINEAR_GRADIENT SWFFILL_RADIAL_GRADIENT SWFFILL_FOCAL_GRADIENT SWFFILL_BITMAP SWFFILL_TILED_BITMAP SWFFILL_CLIPPED_BITMAP available since SWF8: SWFFILL_FOCAL_GRADIENT SWFFILL_NONSMOOTHED_TILED_BITMAP SWFFILL_NONSMOOTHED_CLIPPED_BITMAP Sound This tag imports constants most commonly used by SWF::Sound. SWF_SOUND_NOT_COMPRESSED SWF_SOUND_NOT_COMPRESSED_LE SWF_SOUND_ADPCM_COMPRESSED SWF_SOUND_MP3_COMPRESSED SWF_SOUND_NELLY_COMPRESSED SWF_SOUND_5KHZ SWF_SOUND_11KHZ SWF_SOUND_22KHZ SWF_SOUND_44KHZ SWF_SOUND_8BITS SWF_SOUND_16BITS SWF_SOUND_MONO SWF_SOUND_STEREO This tag imports constants most commonly used by SWF::Video. SWFVIDEOSTREAM_MODE_AUTO SWFVIDEOSTREAM_MODE_MANUAL Text This tag imports constants most commonly used by SWF::TextField. SWFTEXTFIELD_NOEDIT SWFTEXTFIELD_PASSWORD SWFTEXTFIELD_DRAWBOX SWFTEXTFIELD_MULTILINE SWFTEXTFIELD_WORDWRAP SWFTEXTFIELD_NOSELECT SWFTEXTFIELD_ALIGN_LEFT SWFTEXTFIELD_ALIGN_RIGHT SWFTEXTFIELD_ALIGN_CENTER SWFTEXTFIELD_ALIGN_JUSTIFY SWFTEXTFIELD_HTML SWFTEXTFIELD_HASLENGTH SWFTEXTFIELD_USEFONT SWFTEXTFIELD_AUTOSIZE = item Shape This tag imports constants most commonly used by SWF::Shape. SWF_SHAPE_USESCALINGSTROKES SWF_SHAPE_USENONSCALINGSTROKES SWF_LINESTYLE_CAP_ROUND SWF_LINESTYLE_CAP_NONE SWF_LINESTYLE_CAP_SQUARE SWF_LINESTYLE_JOIN_ROUND SWF_LINESTYLE_JOIN_BEVEL SWF_LINESTYLE_JOIN_MITER SWF_LINESTYLE_FLAG_NOHSCALE SWF_LINESTYLE_FLAG_NOVSCALE SWF_LINESTYLE_FLAG_HINTING SWF_LINESTYLE_FLAG_NOCLOSE SWF_LINESTYLE_FLAG_ENDCAP_ROUND SWF_LINESTYLE_FLAG_ENDCAP_NONE SWF_LINESTYLE_FLAG_ENDCAP_SQUARE Filter This tag imports constants most commonly used by SWF::Filter, all available since SWF8: SWF_FILTER_MODE_INNER SWF_FILTER_MODE_KO SWF_FILTER_MODE_COMPOSITE SWF_FILTER_MODE_ONTOP SWF_FILTER_CLAMP SWF_FILTER_FLAG_PRESERVE_ALPHA Gradient This tag imports constants most commonly used by SWF::Gradient, all available since SWF8: SWF_GRADIENT_PAD SWF_GRADIENT_REFLECT SWF_GRADIENT_REPEAT SWF_GRADIENT_NORMAL SWF_GRADIENT_LINEAR AUTHOR
Soheil Seyfaie (soheil at users.sourceforge.net). Peter Liscovius Albrecht Kleine and see AUTHORS in ming lib distribution (ming.sf.net) SEE ALSO
SWF, SWF::Action, SWF::Bitmap, SWF::Button, SWF::Fill, SWF::Gradient, SWF::Movie, SWF::MovieClip, SWF::Shape, SWF::Sound, SWF::TextField, SWF::Filter perl v5.14.2 2011-10-26 .::SWF::Constants(3pm)
Man Page