Posts Tagged ‘swishmax 2 komponente’
Description

This component allows the user to easily add a numeric stepper list control into their movie.
When the selection is changed, the Event function referenced by the EventFunction parameter is called.
The current status of the component can also be sent to the named variable specified by the Value parameter.
Requirements
| Flash Export version | SWF 7 or later |
| SWiSH Max version | v2, build 20080505 or later |
![]() Swishmax 2 |
![]() Swishminimax 2 |
Parameters
| Parameter name | Description |
| Initial Value | Default Value |
| Step | Increase for each ‘up’ button click. A negative value will reverse count direction. |
| Minimum | Lower limit of the count. Stepping stops at this value even if Step is not evenly divisible into Minimum. |
| Maximum | Upper limit of the count. Stepping stops at this value even if Step is not evenly divisible into Maximum. |
| Event Notification | Group Heading: Change notification and read variable |
| Event Function | Function in the parent movie that is called on change.
The function is expected to have two parameters, name and state. The Event Handling section gives a general description on how to use and define this function. |
| Event Variable | Name of the variable to hold the current value |
| Repeat Timing | Group Heading: Adjust the speed of continuous mouse press |
| Initial Delay | Initial auto repeat delay. Bigger number is bigger delay. |
| Repeated Delay | Frame delay between auto steps. |
| Layout | Group Heading: General layout of the control |
| Text Justification | Position of number (left, right, center). |
| Format | Number of decimal places. |
| Background Color | Background color. Use an alpha of 0 if background is to be transparent. |
| Border Color | Border color. Use an alpha of 0 if a border is not to be shown. |
| Arrow Color | Color of the up / down arrows. |
Text Font
To adjust the displayed text font, open the object in the outline panel then select the num text object. The font can then be altered via the Properties panel.

Do not adjust the referencePoint or name the text object with a different name as this will prevent the component from working.
Properties
The following properties can be accessed via objectname.property where objectname is the final name of the object on the stage. This allows scripting to override the initial values set in the parameters panel.
| Property | Description |
| Value | The currently displayed numeric value. |
Methods
This component does not support any Methods.
Example
The use of the component is demonstrated in the supplied samples files, Use File | Components | lists_example.swi
Note: In this example, a common events function is used by the NumericStep_silver and TextStep_silver components.
Additional sample script demonstrating the use of the methods is shown below.
The following script appends the name and value parameters to the end of the text displayed in a scrolling text box assumed to be named textscroll.
function Events(name,value) { var s:String = "Events(" add name add ", " add value add ") called" add newline; // append the name and value to the text box. _root.textscroll.AppendText(s); }
The component is included in Swishminimax 2 and Swishmax 2.
History
| v1.0 | First release | |
| v1.1 | 20080516 | Simplified internal structure and made color selections appear on stage. |
Description
An example of a Mirror effect
This component allows the user to easily reflect or mirror objects that they have created.
Simply remove the objects that exist within the Mirror movie clip
and replace with the objects that you wish to reflect or mirror.
Once the object(s) have been placed into the Mirror movie clip, select either Reflect or Mirror in the Mode parameter and the desired action will be applied to the object. To reapply the action repeat the process. The Mode will return to Normal after each application of a Mirror or Reflect effect.
Requirements
| Flash Export version | SWF 6 or later |
| SWiSH Max version | v2.0, build 20080131 or later |
Parameters
| Parameter name | Description |
| Mode | Defines if the objects within the Mirror movie clip are to be Mirrored, Reflected or have no change (Normal). |
Properties
There are no user accessible properties.
Methods
There are no user accessible methods.
History
| v1.1 | 20080411 | First release |




