| 
                      
                        
                           Previous Example
                             | 
                  
                      
                        
                           Next Example
                             | 
               
ActionScript on the Timeline
Illustrates how to define global functions on the timeline and the scope of global
      functions. The cube() function defined in frame 3 is unavailable when the timeline first
      reached frame 2 however once it has been defined in frame 3 it becomes available in frame
      2 in the next iteration.
            
| 
                      
                        
                           Previous Example
                             | 
                  
                      
                        
                           Next Example
                             |