access function


how can access function (function myfunction(){...}) have in 'actions' on stage, click event actions of 1 of buttons? thank you!

you can have access functions using variables below :

 

normal way : ( have no access through click action )

 

function myfunction (){

 

// codes in here

 

}

 

 

the way call :

 

myfunction();

 

 

special way : ( have access every )

 

x = {

 

          myfunction:function(){

                             

                              // codes here

 

                              } // myfunction

 

} // x our variable name can anything

 

the way call :

 

x.myfunction();

 

 

and can make functions 1 variable as want below :

 

 

x = {

 

          myfunctiona:function(){

                             

                              // codes here

 

                              },

 

          myfunctionb:function(){

                             

                              // codes here

 

                              },

          myfunctionc:function(){

                             

                              // codes here

 

                              }

 

} // x our variable name can anything

 

the way call :

 

x.myfunctiona();

x.myfunctionb();

x.myfunctionc();

 

 

i hope can you

 

zaxist



More discussions in Edge Animate CC


adobe

Comments

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues