1. Open Flash by clicking on the Flash Icon on the dock:



  2. Create a new document. Make sure it is Actionscript 2



  3. Save (+SHIFT+S) document in work folder:



  4. Create these basic layers, you might need more:
    • background
    • crystal ball
    • fortune
    • crystal ball effects
    • table
    • shadow
    • instructions
    • actions



  5. Make a static text field for the instructions


  6. Make a crystal ball graphic symbol


  7. Make a table graphic symbol


  8. Make a shadow graphic symbol


  9. Make a dynamic text field and name the instance fortune




  10. Here's the code for the button:
    stop();
    
    _root.btn.onPress=function(){
    	_root.fortune=""
    }
    
    _root.btn.onRelease=function(){
    	responses=new Array;
    	//for each response write the code this way
    	responses.push("Yes");
    	
    
    	
    	//you want to find the length of the array responses and assign it to n
    	n=responses._______;
    	
    	//you want to get a random number between 1 and n and assign it to r
    	___=Int(Math.random()*n);
    	
    	//you want to assign the r element of the array responses to fortune
    	_root.__________.text=responses[r];
    	
    	//you want to play your animation
    	_root.gotoAndPlay(2);
    	
    	
    }
    





  11. Start your "magic" animation in frame 2