Wish Max allows you to add Flash animation to Your webpage more quickly and easily, with over 230 preset effects available. swish is a fast, simple, and economical solution that allows you to add Flash animation to Your webpage. with just a few mouse clicks, you can add the cool animation effects that make your webpage eye-catching on many websites. you can create shapes, text, buttons, and moving paths. you can also choose over 150 preset animation effects, such as explosion, vortex, 3D rotation, and wave. you can use new actions to create your own effects or create an interactive movie.
Swish will output the same swf format as Macromedia Flash, so more than 97% of the Internet enthusiasts can see your animation without downloading a plug-in. Program . You can preview your animation with swish and edit it directly before posting it to the Internet or other players so that you can make any changes while playing the animation. swish can create all the files you need to upload to the Web server, or generate html Code So that you can paste it to an existing webpage.
If the flash generated by the green Chinese Version swishmax is black and white and the text is displayed upside down, download the English green version and generate it again.
Recommended download: Swish Max V2.0 2008.08.12 _ Green English Special Edition _ silly flash production tool
Swishmax2 script
Onframe (1 ){
} Callback function -- indicates the event-callback -- in a queue,
Onload (){
} An event is triggered when both introduction and sending are introduced.
Onenterframe (){
} The function of the event processing function will be appended to the affected frame.
Event-button-
It can be understood as releasing the mouse button when the mouse pointer goes through the button ......
Press: A simple mouse click event can be divided into two processes: Press and release ).
When you move the mouse to a button's clickable area and click the button, the press event occurs. This is applicable when the button is used as a switch.
On (Press ){
} Press the mouse
On (release ){
} Release the mouse button when the mouse pointer goes through the button
On (rolover ){
} Move the mouse pointer to the button
On (rolout ){
} Move the mouse pointer out of the button Area
On (dragover ){
} When the mouse pointer slides over the button, press the mouse button, then slide out the button, and then slide back the button. This is a very useful event and can be used in many occasions, such as games.
On (dragout ){
} When the mouse pointer slides over the button, press the mouse button and then slide out of the button Area
On (releaseoutside ){
} When the mouse pointer is inside the button, move the mouse pointer outside the button and release the mouse button.
On (keypress ("<space> ")){
} Press the specified key on the keyboard. This is special, not the mouse or the keyboard.
Event-itself-please refer to event-the button here will not be described
Onselfevent (Press ){
}
Onselfevent (release ){
}
Onselfevent (rolover ){
}
Onselfevent (rolout ){
}
Onselfevent (dragover ){
}
Onselfevent (dragout ){
}
Onselfevent (releaseoutside ){
}
Onselfevent (keypress ("<space> ")){
}
In the frame:
Setlabel (); fixed label
Preloadcontent (); preload content
Video control in gotoandplay:
Gotosceneandplay ("<current scene>", 1); play a video in a certain scene
Nextframeandplay (); play the next frame
Prevframeandplay (); play the previous Frame
Nextsceneandplay ();
Gotoandplay (""); jump to the specified frame and play it
Prevsceneandplay (); play in the previous scenario
Video control in gotoandstop
Gotosceneandstop ("<current scene>", 1); pause the animation at a certain scene in a video.
Gotoandstop (""); jump to the specified frame and stop playing
Nextframeandstop (); plays the next frame and stops at the next frame.
Prevframeandstop (); play the previous frame and stop it in the previous frame.
Nextsceneandstop (); enter the next scene to stop
Prevsceneandstop (); stop in the previous scenario
In the sound:
Playsound (); playing sound
Stopsound (); stop sound
Stopallsounds (); stops playing all sounds.
In the genie: Tell target refers to "Tell target", for example, it is allocated to a specific frame used to prompt the video clip to jump to a specific frame, so that the video clip to this clip
Telltarget (){
} Duplicatesprite ("", 1 );
Removesprite ();
Move the cursor:
Startdragunlocked (); start to drag
Startdraglocked (); controls the movement of a target within a specific range
Stopdrag (); stop dragging
Some simple swishmax tips
I. Create loading!
1. Add the dynamic text percent_text to scenario 1 and check the target. The variable is percent_output.
2. Add a rectangle named loaderbar1.
3. Add a solid color rectangle named loaderbar2 and hook the object to make it writable.
4. Adjust the position in the editing window. Loaderbar2 is before loaderbar1.
5. Add a script in scenario 1
Onframe (3, afterplacedobjectevents ){
Percentloaded = _ root. getpercentloaded ();
Loadedbytes = _ root. getbytesloaded ();
Totalbytes = _ root. getbytestotal ();
Loadedkb = math. Round (loadedbytes/1024 );
Totalkb = math. Round (totalbytes/1024 );
Loaderbar. _ XScale = percentloaded;
Percent_output = percentloaded Add "% ";
If (loadedkb> = totalkb ){
Nextsceneandplay ();
}
}
Onframe (4, afterplacedobjectevents ){
Prevframeandplay ();
}
6. Test the film (the film following may not be visible if it is too small, because the load speed is too fast)
Ii. display of time:
1. Add the text time with the content "00:00:00"
2. Change the text to dynamic text and add the variable "timedisplay ".
3. Add scripts in the scenario
"
Onenterframe (includingfirstframe ){
Thedate = new date ();
Month = thedate. getmonth () + 1;
If (month <10 ){
Month = "0" add month;
}
Day = thedate. getdate ();
If (day <10 ){
Day = "0" add day;
}
Year = thedate. getfullyear ();
DMY = month Add "-" add day add "-" Add year;
TimeDate = new date ();
Hours = TimeDate. gethours ();
Mins = TimeDate. getminutes ();
Secs = TimeDate. getseconds ();
Ampm = "am ";
If (hours> 12 ){
Hours = hours-= 12;
Ampm = "PM ";
}
If (hours <10 ){
Hours = "0" + hours;
}
If (hours> 12 ){
Hours = hours-12;
}
If (mins <10 ){
Mins = "0" + mins;
}
If (SECs <10 ){
Secs = "0" + secs;
}
Timedisplay = hours + ":" + mins + ":" + secs + "" + ampm;
}
3. Movable Window
1. Add a scene and a rectangle to the scene.
2. convert a rectangle into a genie
3. Select the wizard and write it in script EXPERT mode.
On (Press ){
_ Root. fenetre. swapdepths (99 );
_ Root. fenetre. startdragunlocked ();
_ Root. fenetre. _ alpha = 80;
}
On (release ){
Stopdrag ();
_ Root. fenetre. _ alpha = 100;
}
4. Test the film
4. Load SWF files prepared by flash
In general, it is easier to control the size and attributes of the SWF file to be loaded on the wizard. Here are the main statements:
1. Load on Genie:
A. loadmovie ("http://www.supidea.com/netradio.swf"); (select the absolute path of the file to load)
A. _ XScale = 50;
A. _ yscale = 50; (x \ y coordinate point)
A. _ x = 100;
A. _ y = 50; (X, Y axis length)
A. _ alpha = 100; (transparency)
2. Delete from genie:
A. unloadmovie ();
5. Button control statements:
1. Stop playing
On (Press ){
Stop ();
}
2. Start Playing
On (Press ){
Play ();
}
3. jump between scenarios (press the button to jump to scenario 2)
On (Press ){
Gotosceneandplay ("scene_2", 1 );
}
4. Jump to the first scenario with 100th Frames
Onframe (100 ){
Gotosceneandplay ("scene_1", 1 );
}
5. Jump to the URL address:
On (Press ){
Geturl ("")
}
6. playing audio (swishmax only supports WAV and MP3 formats)
1. Import
2,
Onframe (1 ){
Playsound ("sound1.mp3 ");
}
3. You can drag the frame to the appropriate frame on the time line.