Wednesday, 24 October 2012

Demo


Robot Demonstration

Firstly I imported an image of a robot and turned it into a vector by creating a new layer and drawing over the robot using the line tool. I then filled in the colours and also applied gradients.  
Next, I then started the animation by getting the robot to walk across the screen.

After I accomplished that task, I then had to use scripting to get him to stop and make him fall over at the wall. 

I then used scripting to get a roll over which bought up a speech bubble. After I finished this small animation I then applied sounds to make the animation better.

Sounds demonstration

I changed the shape at frame thirty and added a frame at thirty in actions so the sound would happen when the shape changed. 


TO PLAY SOUND VIA SCRIPT IN FLASH

Firstly import the sound to the library.
Then give the sound a library linkage name by:
1.    Right click on the library symbol
2.    Select properties
3.    Select the actionScript tab
4.    Tick the “export for actionScript” box
5.    Ensure that the name that appears in the  Class box is something sensible like jump


Then where you want the sound to start:
Put a keyframe in the actions layer.
Type in the following script, editing the relevant names:

var stormCh:SoundChannel; - This creates a sound channel variable called stormCh

var storm:Sound = new Storm - This creates a variable to "hold" the sound AND puts the sound in it

stormCh=storm.play() - This assigns the sound to the channel  AND plays it 

Use the following line where you want the sf/x to stop, it stops the channel

stormCh.stop();

(note you don’t need to stop the sound if it is a short effect that finishes by itself)



No comments:

Post a Comment