Flash Database: Starting Flash



Flash Database Step By Step Tutorial - Part 5: Now, we begin at client side. We create user interface use flash. In this practice, I use Flash 8. You can use Adobe Flash CS3.

Follow this step:

  1. Open Macromedia Flash 8.
  2. Open new document by click menu bar: File > New. Choose Flash Document. Click Ok.
  3. Right click at first frame.
  4. Choose actions. We will get actions panel.
  5. Enter following code to actions panel:
    stop();
    
    file = "http://localhost/test/flash/polling.php";
    System.useCodepage = true;
    
    myVar = new LoadVars();
    myVar.load(file)
    
    myVar.onLoad = function(){
    	if (this.allow = 'false'){
    		gotoAndStop(3);
    	}else{
    		nextFrame();	
    	}
    }
    


Series this article:
Flash Database: Text File
Flash Database: PHP for Reading Data
Flash Database: Saving Data at Server Side
Flash Database: Switching Task at Server Side
Flash Database: Starting Flash
Flash Database: Making Flash Polling Interface
Flash Database: Giving Action to Submit Polling
Flash Database: Trying Submiting Vote
Flash Database: Preparing Polling Result Interface


Tag: flash, database, interface Category: PHP Application Post : March 24th 2008 Read: 2,353 Bookmark and Share

blog comments powered by Disqus