PDA

View Full Version : Adding Actions


mediaman
03-19-2001, 03:10 PM
Okay, I know how to add actions to frame or button, the simple way anyway. You know, pull down the "+" and click on which one you need.. so on and so forth. However many of the tutorial and stuff that I've looked at tells me to add script that is different than anything on the pull down menu. I quess they are expressions? Like this...

mySound = new Sound();
mySound.attachSound("liabrarySound");

I understand the script but how do I attach it to my frame or button? Also..

on (release) {
mySound.start(1,100)
}

I get the on (release)part, but how do I insert the rest?

Can anyone offer me a clue?

Marx
03-19-2001, 03:51 PM
Hi..

To manually type your code use the evaluate action or change the actions panel to Expert.

To use the evaluate action:

Click the '+' sign, then select 'evaluate' from the 'actions' menu.

Hope this helps.

Jesse
03-20-2001, 01:44 AM
It sounds to me like you're using Flash 4. I seem to remmeber that Flash 4 had a Plus which was a pull down menu for the actions.
If you're using Flash 4 you may have some dificulties recreating the tutorials as the files and code are Flash 5 based and Flash 4 was pretty low on functions...

Cheers

Jesse