Flash Database: Button for back to PollingTag: flash, database Category: PHP Application post: 27 Mar 2008 read: 69
Flash Database Step By Step Tutorial - Part 11: Now, we will create a button to back to polling page.
- Still on third frame. Drag and drop button from User Interface Component. Put on bottom page.
- Give name "back_btn" and on label give "Back".

- Right click on third frame. Choose Actions.
- 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);
|
|
| Give Your Opinion | Recommend
|