phpeveryday.com

The best tutorial of php, php framework, php strategies, object oriented oriented,


Flash Database: Button for back to Polling

Tag: flash, database   Category: PHP Application
post: 27 Mar 2008 read: 339


Flash Database Step By Step Tutorial - Part 11: Now, we will create a button to back to polling page.
  1. Still on third frame. Drag and drop button from User Interface Component. Put on bottom page.
  2. Give name "back_btn" and on label give "Back".

  3. Right click on third frame. Choose Actions.
  4. Add following code:
    
    function myBackHandler(eventObj:Object){
      if(eventObj.type == "click"){
    	_root[question].removeTextField();
    	a = 1;
    	while(myVar['choice' + a] != undefined){
          _root['answer' + a].removeTextField();
          _root['bar' + a].removeMovieClip();
          _root['persen' + a].removeTextField();
          _root['lpersen' + a].removeTextField();	  
    	  a++;
    	}
    	prevFrame();  
      }	
    }
    
    back_btn.addEventListener("click", myBackHandler);
    


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
Flash Database: Creating Polling Result Interface
Flash Database: Action Script for Polling Result
Flash Database: Button for back to Polling

| Give Your Opinion | Recommend
Share and Bookmark to: These icons link to social bookmarking sites where readers can share and discover new web pages.
digg del.icio.us technorati Ma.gnolia BlinkList

Recommended articles by other readers:
Web Services: How PHP Kiss VB.NET? (Part 1)
Chart: How to Build Cool Animation Real Time Chart
Joomla: Fast Road to Understand Component Programming
Email: Send Attachement Mail
SMS : Sending SMS with PHP and ActiveXperts (Part 1)

What do You Think?
Your Name *:
Email *:
(Will not be published)
Website/URL:
Your Comment *:
* Required


624
posting