GhostWire Panel - Actionscript API
Help/Reference Panel documentation for this flash component
is available with the installation of the component.
GWPanel
Example
// The following will dynamically attach a Panel onto the stage during run time
_root.attachMovie("GWPanel","myPanel",1);
// You can set the colors by passing in an object with the properties
_root.attachMovie("GWPanel","myPanel",1,{
face:0xFFFFFF,
highlight:0x404040,
highlight:0x808080,
shadow:0xD4D0C8,
darkshadow:0xFFFFFF});
// You can also set the width and height properties
// Note: always use width and height instead of _width and _height
_root.attachMovie("GWPanel","myPanel",1,{width:100});
GWPanel.getSize()
Parameters
None
Returns
An object containing two properties -
width An integer specifying the width of the panel, in pixels
height An integer specifying the height of the panel, in pixels
Description
Method; gets the width and height of the panel. The method returns an object containing the two properties width and height.
Example
// The following will get the width of the panel
myPanel.getSize().width;
// The following will get the height of the panel
myPanel.getSize().height;
GWPanel.setColor(obj)
Parameters
obj An object containing the color properties of the panel
Returns
Nothing.
Description
Method; sets the color properties of the panel. The component has five color properties: face, highlight, highlight3D, shadow, darkshadow
Example
// The following will set up myPanel to look like an input field:
myPanel.setColor({
face:0xFFFFFF,
highlight:0x404040,
highlight:0x808080,
shadow:0xD4D0C8,
darkshadow:0xFFFFFF});
GWPanel.setSize(width, height)
Parameters
width An integer specifying the width of the panel, in pixels.
height An integer specifying the height of the panel, in pixels.
Returns
Nothing.
Description
Method; sets the width and height of the panel at runtime. Calling this method overrides any sizing applied during authoring.
Example
// The following code resizes myPanel to 100 x 50 pixels at runtime.
myPanel.setSize(100,50);
Flash Components
Button
:: CheckBox
:: CollapsibleMenu
:: CollapsiblePane :: ColorPicker :: ComboBox
:: ContextMenu
:: DialogBox
:: InputField
:: ListBox :: Loader :: Menu
:: SlideMenu
:: NumericBox
:: Panel :: ProgressBar :: RadioButton
:: ScrollBar
:: ScrollPane
:: SlidePane
:: Slider
:: TabView
:: TextArea
:: TreeView
:: Window
See also
Documentation :: FAQs :: Testimonials
|