If you need to move the contents of an entire layer in a flash movie:-
In the timeline, above the layer names (Flash MX) or below the timeline (CS4), there is a button with three solid squares on it which is an “Edit Multiple Frames” button. Select this and you will find that the current frame marker gets littleĀ arrows on either side. These set the range of frames you wish to modify. Move these to encompass the range you wish to relocate, and then drag all the items on that layer throughout the timeline will now be repositioned.
Posts Tagged ‘Flash’
Flash – how to move the content of an entire layer
Friday, February 5th, 2010Reskinnning the Flash Flv playback component – 2
Monday, February 1st, 2010Some handy tutorialsĀ on customising the Flv playback component in Flash:-
http://www.ultrashock.com/tutorials/flash8/flvPlayBack.php
http://www.skidgel.com/blog/2007/10/01/customizing-flvplayback-components/
http://www.taterboy.com/blog/2009/03/flash-as2-pro-video-player/
http://library.creativecow.net/articles/ross_tony/Simple_Multi-VideoPlayer_AS2.php
And general Flash tutorials:-
Reskinning the Flash Flv playback component – 1
Monday, February 1st, 2010If you put your custom UI components on the same Timeline and frame as the FLVPlayback component and you have not set the skin property, FLVPlayback will automatically connect to them without the need for any ActionScript.
If you have multiple FLVPlayback components on Stage or if the custom control and the FLVPlayback are not on the same Timeline, you must write ActionScript code to connect your Custom UI components to your instance of the FLVPlayback component. First, you must assign a name to the FLVPlayback instance and then use ActionScript to assign your FLV Playback Custom UI component instances to the corresponding FLVPlayback properties. In the following example, the FLVPlayback instance is my_FLVPlybk, the FLVPlayback property names follow the periods (.), and the FLV Playback Custom UI control instances are to the right of the equal (=) signs:
//FLVPlayback instance = my_FLVPlybk my_FLVPlybk.playButton = playbtn; // set playButton prop. to playbtn, etc. my_FLVPlybk.pauseButton = pausebtn; my_FLVPlybk.playPauseButton = playpausebtn; my_FLVPlybk.stopButton = stopbtn; my_FLVPlybk.muteButton = mutebtn; my_FLVPlybk.backButton = backbtn; my_FLVPlybk.forwardButton = forbtn; my_FLVPlybk.volumeBar = volbar; my_FLVPlybk.seekBar = seekbar; my_FLVPlybk.bufferingBar = bufbar;
The following steps create custom StopButton, PlayPauseButton, MuteButton, and SeekBar controls:
- Drag the FLVPlayback component to the Stage, and give it an instance name of my_FLVPlybk.
- Set the source parameter through the Component inspector to http://www.helpexamples.com/flash/video/cuepoints.flv.
- Set the Skin parameter to None.
- Drag a StopButton, a PlayPauseButton, and a MuteButton to the Stage, and place them over the FLVPlayback instance, stacking them vertically on the left. Give each button an instance name in the Property inspector (such as my_stopbttn, my_plypausbttn, and my_mutebttn).
- In the Library panel, open the FLVPlayback Skins folder, and then open the SquareButton folder below it.
- Select the SquareBgDown movie clip, and double-click it to open it on the Stage.
- Right-click (Windows) or Control-click (Macintosh), select Select All from the menu, and delete the symbol.
- Select the oval tool, draw an oval in the same location, and set the fill to blue (#0033FF).
- In the Property inspector, set the width (W:) to 40 and the height (H:) to 20. Set the x-coordinate (X:) to 0.0 and the y-coordinate (Y:) to 0.0.
- Repeat steps 6 to 8 for SquareBgNormal, but change the fill to yellow (#FFFF00).
- Repeat steps 6 to 8 for SquareBgOver, but change the fill to green (#006600).
- Edit the movie clips for the various symbol icons within the buttons (PauseIcon, PlayIcon, MuteOnIcon, MuteOffIcon, and StopIcon). You can find these movie clips in the Library panel under FLV Playback Skins/Label Button/Assets, where Label is the name of the button, such as Play, Pause, and so on. Follow these steps for each one:
- Select the Select All option.
- Change the color to red (#FF0000).
- Scale to 300%.
- Change the X: location of the content to 7.0 to alter the horizontal placement of the icon in every button state.
Note: By changing the location this way, you avoid opening every button state and moving the icon movie clip instance.
- Click the blue Back arrow above the Timeline to return to Scene 1, Frame 1.
- Drag a SeekBar component to the Stage, and place it in the lower-right corner of the FLVPlayback instance.
- In the Library panel, double-click the SeekBar to open it on the Stage.
- Scale it to 400%.
- Select the outline, and set the color to red (#FF0000).
- Double-click SeekBarProgress in the FLVPlayback Skins/Seek Bar folder, and set the color to yellow (#FFFF00).
- Double-click SeekBarHandle in the FLVPlayback Skins/Seek Bar folder and set the color to red (#FF0000).
- Click the blue Back arrow above the Timeline to return to Scene 1, Frame 1.
- Select the SeekBar instance on the Stage, and give it an instance name of my_seekbar.
- In the Actions panel on Frame 1 of the Timeline, add an import statement for the video classes, and assign the button and seek bar names to the corresponding FLVPlayback properties, as shown in the following example:
import fl.video.*; my_FLVPlybk.stopButton = my_stopbttn; my_FLVPlybk.playPauseButton = my_plypausbttn; my_FLVPlybk.muteButton = my_mutebttn; my_FLVPlybk.seekBar = my_seekbar;
- Press Control+Enter to test the movie.
Flash CS4 ‘Insert Keyframe’ keypress
Sunday, January 31st, 2010Mostly F6 – OSX sometimes Hold down ‘Function’ and then press ‘F6′