logo
What's New
What's New
  Popular
Popular
  Top Rated
Top Rated
  Search
Search


Search :  

How to Add Link |   Modify Link   |   Login |     Register  |  Getting Rated |  Link to Us |  Feedback Us


Sponsors
FlashAdvisor.com
Web Directory
Custom Offshore Software Development
phpld Hacks
Software Download
Your Site Link




Categories
    3DS MAX
    ASP
    C And C++
    ColdFusion
    Database
    Dreamweaver
    Flash
    HTML
    Java
    JavaScript
    Linux
    Maya
    MS Excel
    MS PowerPoint
    MS Word
    Paint Shop Pro
    Perl and CGI
    Photoshop
    PHP
    Premiere
    Python
    Visual Basic
    Web Hosting
    XML
 

 

Adding a CallBack Function
  

Home  » Flash » 3rd Party  

A callback function is one that is not invoked explicitly by the programmer; rather the responsibility for its invocation is delegated to another function that receives the callback function's reference and instructions as to when to run the callback function. Ouch! ...one might say. But not really. It is the basis (sort-of) for understanding events: when this happens, do whatever is in this function. In this fade in/out example, we may want to fade an image in and then do something else like start several place effects for other movie components. Or fade one image out and immediately fade another image in. Not to get carried away, lets start simple and say after the fade-in/out let's simply pop-up an alert box. So first we define a CallBack function, say cbFunc, to generate a simple JavaScript alert to say, "Done..." In SWiSH, I define functions in the onLoad code sections like

Hits: 34
Rate:   0.0(out of 5)  
Vote : 0   
Submit Date  : 2007-01-12
Submit By  : swish-db
View Tutorial Adding a CallBack Function
 Add Review
 Report Error
Rating Graph

0.0%
0.0%
0.0%
0.0%
0.0%
 1  2  3  4  5 
Rate This :
More Tutorials by this user

Fade out sound in 3 styles
 Fade out sound in 3 styles
Understanding Object Properties
 Understanding Object Properties
RELOADING content in swishmax
 RELOADING content in swishmax
Weekly Effect tutorial no. 5
 Weekly Effect tutorial no. 5
Display MessageBox from within SWiSH
 Display MessageBox from within SWiSH
Creating a Simple Cursor
 Creating a Simple Cursor
Scrolling Drop-Down Menu
 Scrolling Drop-Down Menu
Loading all external swf files
 Loading all external swf files
Creating a presentation CD
 Creating a presentation CD
Creating Your Own Text Scroller
 Creating Your Own Text Scroller
  
Home | Sitemap | Feedback | Advertise with us
Best viewed in 800x600 resolution with Internet Explorer.
Site Developed and Hosted by EthicSolutions

Flash Tutorials    TemplateAdvisor.com    WebMastersHome.com

    Reseller Hosting    Reseller Hosting Linux