==================================================== BREAKING GLASS TRANSITION V1 :: by Zachary Knight ==================================================== DESCRIPTION :: Simple, single transition between two visuals with external MP3 sound effects. Notice the red circle is still animating in the broken, falling pieces. Content can be an external JPG or SWF with a dimension of 800x600. This can be re-sized (as it is above) and smaller dimensions can be used, but only 800x600 files will fill the entire "pane of glass". The picture frame sample above is included. Audio files in WAV form are also included in case you would like to edit or re-convert. FEATURES :: * sounds and sample included * easy user settings * drag-n-drop convenience SWF STATS :: * Dimension = 800x600 * Published File Size = about 4.5k (plus external content/audio) * Frame Rate = 24fps * Flash Player Version(s) = 7, 8 * ActionScript Version = 2.0 * Authored In Version = Professional 8 FILES INCLUDED :: * BreakingGlassV1__FP8_AS2.fla (Flash 8 authoring file) * BreakingGlassV1__FP8_AS2.swf (Flash 8 movie) * BreakingGlassV1__FP7_AS2.fla (Flash 7 authoring file) * BreakingGlassV1__FP7_AS2.swf (Flash 7 movie) * BreakingGlassV1__HELP.txt (this file) * au_CRACK.mp3 (audio ready for use) * au_CRACK.wav (uncompressed audio) * au_FALL.mp3 (audio ready for use) * au_FALL.wav (uncompressed audio) * 1.swf (sample content) * 2.jpg (sample content) * SAMPLE_A.fla (picture frame sample) * SAMPLE_A.swf (picture frame sample) --------------------------------------------------------------------------------------------------------------------------------- GETTING STARTED :: (1) Open your FLA file. (2) Open one of the "BreakingGlassV1" FLA files. Now you have both FLA files open. (3) In Flash, click the "New Library Panel" button. It is located on the top right of the Library panel (directly under the Library's menu button) and the icon depicts two blue documents with an arrow on top of them. (4) When the new panel opens, drag it to where you can also see the original Library. (5) Use the drop-down menus on both panels to make sure each has a different Library displayed. (6) Drag the entire "BreakingGlassV1" folder from one panel into your Library. (7) Close the floating Library panel, and the "BreakingGlassV1" FLA file. (8) Open the "BreakingGlassV1" folder in your Library, in which you will find a movieclip called "_BreakingGlassV1__(AS)". Drag this onto the Stage. (9) It will appear as a large pink rectangle. This is only for positioning and resizing purposes. Once you wish to remove the pink area, you can double-click the "_BreakingGlassV1__(AS)" mc in the Library to open it for editing. Now you can turn the "SIZING_GUIDE" Layer into a Guide Layer by right-clicking the layer, choose "Properties", and in the dialog box, select "Guide" from the "Type:" list. --------------------------------------------------------------------------------------------------------------------------------- HOW TO ADJUST SETTINGS AND SPECIFY CONTENT :: Click in Frame 2 of the "_BreakingGlassV1__(AS)" mc, on the "--> SCRIPT" Layer and open the Actions panel. At the top of the code you will find the following "USER_SETTINGS": v_Slide1 = "1.swf"; // path to the first slide that breaks (SWF or JPG) (800x600) v_Slide2 = "2.jpg"; // path to the second slide that is revealed (SWF or JPG) (800x600) v_FX1 = "au_CRACK.mp3"; // path to the cracking glass sound effect v_FX2 = "au_FALL.mp3"; // path to the falling glass sound effect v_FXVol1 = 80; // volume of cracking glass sound effect (0 - 100) v_FXVol2 = 60; // volume of falling glass sound effect (0 - 100) v_FallTo = 1500; // how far down (in pixels) should the shards fall in order to clear the stage (out of view)? v_FallSpeed = .5; // how many seconds should it take for the shards to fall? v_FallRandom = true; // if "true", they fall in random order...if "false", they fall in the order below arr_ORDER = [3,6,10,5,11,8,1,4,2,9,7]; // order shards will fall if "v_FallRandom" is set to "false" --------------------------------------------------------------------------------------------------------------------------------- HOW TO TRIGGER THE TRANSITION :: (1) Give the "_BreakingGlassV1__(AS)" mc on the stage an instance name..."GLASS" for example. (2) The following script will cause it to "break"... GLASS.gotoAndPlay("frm_FALL"); (3) The supplied FLA file uses an "onPress" event to trigger it. This can be found in the code on Frame 2, lines 109 thru 115. --------------------------------------------------------------------------------------------------------------------------------- I hope you enjoy it! Please contact me through FlashDen if you have questions. Zachary Knight :: Media Design ZacharyKnight.com ~ END ~