Posts Tagged ‘swishminimax’
On Swishzone.com is a new Tutorial for a Magnifying Glass released.
Download see below….
This SWiSH Max2 project demonstrates how to make a magnifying glass effect that allows a section of an image (or movie clip) to be shown in ‘magnified’ detail. Try it by dragging the “magnifying glass” to the area that you wish to view in more detail.
The project demonstrates a number of useful concepts including:
- use of a pre-loader
- startDrag and stopDrag
- masking
- use of the library (sorry, the content library is not available in SWiSH miniMax2)
- The magnify movie clip has its Transform and Reference points set to center and its initial positon is 0,0.
- The magnify movie clip has the property ‘Use bottom object as mask’ checked.
Download
Download: Lupe mit Swishmax 2 - Magnifying Glass (377.67 kB - 392 x herunter geladen)
Description
This component allows the user to easily apply a simple Glow filter effects to any object(s) by copying them into the component. In addition, transition effects can be applied so that the effect parameters change over time. See below for animated filters.
To apply the effect:
1. Expand the Filter component in the outline panel:
2. Delete the text instructions
3. Add the objects you wish to apply the effect to:
The when the movie is exported, the effect will be applied to all of the child objects. In this case it will be applied to the Rounded Rect, Text and Shape.
Requirements
| Flash Export version | SWF 8 or later |
| SWiSH Max version | v2.0, build 20080328 or later |
Parameters
| Parameter name | Description |
| color | Color and alpha of the shadow |
| inner | If Shadow is inner or outer. For inner use true.
If inner, the shadow appears inside the object. If outer, it appears outside of the object. |
| knockout | True if object has knockout effect. The shadow is shown but the original object is hidden. |
| Filter Settings | Group Heading: Custom settings for the filter options |
| blurX | Blur in the X direction. values that are a power of 2 will render faster |
| blurY | Blur in the Y direction. values that are a power of 2 will render faster |
| quality | Quality of the filter. Higher quality = slower rendering. |
| strength | Strength of the effect (1..255) |
| Transition Settings | Group Heading: Transition from the initial settings to the ones defined below |
| transition | Select if you want to have a transition effect and if you want it to repeat |
| direction | Defines the transition direction. Alternate means go forward then return to original settings |
| frames | Number of frames that the transition is applied over. |
| transitionQuality | Select best for smoother transition, Select low for less CPU usage |
| Transitioned Filter Settings | Group Heading: Final settings applied to the filter |
| finalColor | Final color of the glow |
| finalBlurX | Final blur in the X direction. values that are a power of 2 will render faster |
| finalBlurY | Final blur in the Y direction. values that are a power of 2 will render faster |
| finalStrength | Final strength of effect |
Properties
This component has no user accessible properties.
Methods
The following methods can be used to …
| Method | Description |
| TransitionEffect
( bX:Number,bY:Number, color:Number,strength:Number, directionNormal:Boolean, alternate:Boolean, repeat:Boolean, frames:Number, quality:String ) |
Initiates a transition effect on the filter from the current settings to the settings specified by the following parameters:
bX,bY – final blur in the X and Y direction. color – final color expressed as 0xAARRGGBB strength – final strength of the effect 0..255 directionNormal – true if the transition is towards these settings, false if transition is reversed. alternate – true if the effect is to alternate between initial and final setting. repeat – true if the effect is to repeat continuously. frames – number of frames that the effect is applied over quality – quality of the transition. one of “low”,”medium”,”high”,”best”. (note lower case only). |
| PauseTransition(v:Boolean) | If true pauses the transition. If false restarts the transition. |
| SetFilterValues
( bX:Number,bY:Number, color:Number, strength:Number ) |
Sets the current filter settings.
bX,bY – blur in the X and Y direction. color – color expressed as 0xAARRGGBB strength – strength of the effect 0..255 |
Example
On frame 5 of the main movie, override the filter settings set via the parameters.
onFrame (5) { myFilter.SetFilterValues(4,32,0xFFFF0000,10); }
History
| v1.0 | 20080101 | First release |
| v1.5 | 20080604 | Added help references. |
Description

This component allows the user to display a calendar for the purposes of date selection. The currently selected date is shown with an underline.
Next and previous months can be selected via the single right and left arrow buttons. They can also be selected by clicking on the days of the previous or next month.
Next and previous years can be selected via the double right and left arrow buttons.
When a date is selected, the Event function referenced by the EventFunction parameter is called.
The current status of the button can also be sent to the named variable specified by the EventVariable parameter.
See the Methods and Properties section for a description of how to show the calendar with a date other than the current date as the default.
Requirements
| Flash Export version | SWF 8 or later |
| SWiSH Max version | v2.0, build 20080131 or later |
Parameters
| Parameter name | Description |
| EventFunction | Name of function that is called when new date entered. Leave blank if not used.
Function is of the form Events(name,val) The returned name is the name of the object. val is a string that contains the date in the format YYYY/M/D where M is in the range 1-12. The selected date can also be obtained from the G_Date property. |
| UseVectorFonts | Vector fonts (setting = true) look better if the calendar is large. The image above was made using vector fonts. Vector fonts look better if the object is made larger than its original size. In this case the calendar was scaled by 200%.
Pixel fonts (setting = false) look sharper if calendar is small. Use this setting if the calendar is displayed in its default size. The images below were made with scale of 100%, pixel based fonts. |
| AllowDragging | Setting this value to true allows the calendar to be dragged by its heading around the stage. |
| DayAndMonthNames | Group: Language specific month and day names |
| MonthHeadings | semicolon list of the month names in month order.
eg. January;February;March;April;May;June;July;August; September;October;November;December |
| DayHeadings | semicolon list of day abbreviations in day order.
eg. M;Tu;W;Th;F;Sa;Su |
| FirstDayOfWeek | The day that starts the week in the DayHeadings list.
For M;Tu;W;Th;F;Sa;Su select “Monday” Warning: Failure to set this parameter correctly will result in the days of the week being incorrect for all displayed months. |
| Heading Colors | Group: Defines the text and background color for the heading |
| ColorBgndHeading | Background color for a heading |
| ColorTextHeading | Text color for a heading |
| Month Background Colors | Group: Defines the colors for the date area |
| ColorNormal | Normal background color.
The alpha value of this color sets the overall opacity of the date section of the calendar. Setting a value less than 100 will result in a calendar that looks like the right hand screen capture below. |
| ColorOver | Background hover color |
| ColorPress | Press color |
| Month Text Colors | Group: Defines the colors of the text in the date display area |
| ColorTextN | Default text color |
| ColorTextO | Text color during mouse over |
| ColorTextP | Text color during mouse press |
| ColorTextDisabled | Text color of previous and next month days |
Two examples of the calendar component shown with background objects.
The example on the left has the ColorNormal parameter set with 100% alpha.
The example on the right has the ColorNormal parameters set with a 75% alpha.
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 |
| G_Date | A Date object that contains the selected date. |
Methods
The following methods can be used to override the values set by the component parameters. This can be used, for example, to dynamically change the contents of the combo box based on an event generated in the movie. eg. ComboBoxB can be updated based on the value chosen in ComboBoxA
| Method | Description |
| FillDates(dd,mm,yy) | Sets the calendar for display of the specified day, month and year.
Note that month is a number 0 to 11. 0 = January, 11 = December. eg. FillDates(2,4,2007) will setup the calendar to display May, 2007 with 2 as the underlined day. Note that a call to FillDates() should be followed by a call to DisplayDates(). Warning: DMY order is reversed when compaired with the Date object .setFullYear() method. |
| DisplayDates() | Updates and re-displays the calendar. |
| MonthOffset(inc) | if inc is true, calendar moves to next month and re-displays calendar. If inc is false, calendar moves to previous month and re-displays. |
| YearOffset(n) | n is the offset in years. Calendar is redisplayed based on the currently displayed year + n. |
| version() | returns the version build date as a string. eg “20080221″ |
Example
This example assumes that the movie contains a calendar component named “Calendar” that exists in the main movie.
The following script resides in the top level of the movie.
The following code will initialize the calendar to 2nd May 2007. Initialization cannot be done via the onSelfEvent (load) event as the calendar when initially loaded displays today as the default date.
The sample Events() function lists the selected date in the debug window.
function Events(name,val) { trace(name); if ("Calendar" == name) { // show the returned string date trace("val=" add val); // note hour, min defaults to time file was played. trace(Calendar.G_Date.toString()); // show in string format. } } onFrame (1, afterPlacedObjectEvents) { // initialize the calendar to 2nd May 2007 // note this must be done with onFrame(, afterPlacedObjectEvents) // as calendar initially loads with todays date and time. // month is 4 as 0=January. Calendar.FillDates(2,4,2007); // 2nd May 2007 Calendar.DisplayDates(); // update the calendar display.
Do your interesting on more feature and more power? Check out our Multiloader-Package with advanced Prelaoders:
Ultimate Preloader Multiloader !! Easy to use, easy to configure!
Please read the Manual!
- show loading status
- follow mouse
- change design
- customizing animations – 8 includec like Snowman , Sun, Ball – easy to expand for what you want
- watch external loading
- load multiple files and watch loading
- events for loading
- scriptable – select with script
- load in container
extend definitive your skill and movies for Swishmax 2
History
| v1.0 | 20080221 | First release |
| v2.0 | 20080221 | Added support fro Help files and links. (20080221) |
| v2.1 | 20080225 | Added dragging and alpha transparency. |
| v2.1a | 20080228 | Fixed bug with header text color and setting of date on update. Changed to be SWF8+ due to apparent bugs in SWF7 date object. |
Description

This component allows the user to display a menu that appears as items on a roller. This type of menu is convenient as it allows a large number of items to be displayed in a limited space. The roll spins at a speed that is proportional to the distance that the mouse is above or below the center of the component. If the mouse is over a specific item and near the center of the component then the rolling stops to allow selection of that item. Read the rest of this entry »






