-
[CS3] trigger several functions
Hi.
This is really basic, I guess, but I need help.
I want like to create a button which will perform three or four functions one after the other.
I don't know the syntax.
Do I have to build and write the functions first?
How do I call them from the button.onRelease?
Thanks in advance
-
OOP is one letter from OOPS
I assume this is AS2 syntax
btnInstanceName.onRelease = function (){
functionOne();
functionTwo();
functionThree();
}
-
And where do I write the content of the functions?
-
OOP is one letter from OOPS
Where ever you are writing the rest of the code.
btnInstanceName.onRelease = function (){
functionOne();
functionTwo();
functionThree();
}
function functionOne(){
}
function functionTwo(){
}
function functionThree(){
}
-
Thank you so much, kortex!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|