|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Back Button Resets Form!!!!
I have a form in flash that has several comboboxes. Depending on how you answer the 8 different questions a dynamic button appears at the bottom of the page. This button take you to a different frame. But then when I create a back button it takes me back to frame 1 BUT all the answers are blank. How can I make sure when I come back to frame 1 all the same answers are chosen???
I have tried the setSelectedIndex, but can not seem to get it to work. HELP!!!! |
|
#2
|
|||
|
|||
|
Try this:-
Select all the items that make up the form and convert them to a symbol. Make sure that this symbol is in its own layer in the main timeline and that you give it an instance name. Make sure that this layer is extended over all the frames of the main timeline. In the button that lets users move the main movie to another frame, use a Set Property action in the button to set the visibility of the form instance to nothing. The code will look like this:- on (release) { gotoAndStop(aFrameNumber); setProperty(_root.formInstanceName, _visible, 0); } Then put another Set Property action in the 'back' button, this time to make the form instance visible again. The two buttons will alternately hide/show the form instance and the selections in the form should remain as entered. |
|
#3
|
|||
|
|||
|
That is why so many fools on the Internet?
That is why so profuse fools on the Internet?
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Flash Development > Back Button Resets Form!!!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|