Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | FW: [flasher] RE: CAN IT BE DONE |
| From: | Ian Richardson |
| Date: | Fri, 09 Mar 2001 15:45:31 -0000 |
Thanks Tony,
But still facing a problem, the SWF is to be used by director, and as i
understand it, director can only work with V4, and the functions only work
with V5...problem. Any idea's?
Also, would you know how to do the following: the swf has 9 frames, the user
inputs info into a text box in frame one, this is then assigned to a
variable a1, to progress to the next frame i have a next button ( fairly
logical) but my client wants the user to be able to press enter/return and
then progress.. any ideas. thanks BTW, if i had any hair it would be pulled
out by now, can't find a way to do it, almost a week now and still no
further on.. cheers
Ian
>>
>>> <quote>
>>> What i want to happen is for the cursor, each time to move to the text input
>>> box automatically. Ie you fill in the first variable in frame one, press
>>> next and the go to frame two, and the cursor to be in the box ready for the
>>> user to enter..
>>> </quote>
>>
>
> I use this in Flash 5 to tab between fields:
>
> For every field you want to be able to tab to, they will have to be inside a
> movieclip. For example, you will see my movieclip below as "mcName" being the
> movieclips name in the Library as well as its Instance name after I drag it
> onto
> the stage. The "Name" is the Variable name given to the input field after it
> was
> created inside of the mc. After you have your fields created, then create
> another
> mc symbol and place it in frame 1 on the stage. In frame 1 of this mc, I put
> the
> following actionscript in it. In a nutshell, it traps all "tab keys" and
> performs
> the script below. All other key input is allowed to be passed and entered
> into
> the fields as a user types it. It works by first finding out which field it is
> in
> by Selection.getFocus(). After finding that, it then
> Selection.setFocus("_level0.mcStreet.Street"); to the next field I have
> indicated. I also set mine to go back to the first field ("Name") if it is
> currently in the last field.
>
> Hope this helps.
>
> // THIS CODE AUTOMATES TABBING BETWEEN THE FIELDS AS I WANT IT
> onClipEvent (keyDown) {
> if (Key.getCode()==Key.TAB) {
> if (Selection.getFocus()=="_level0.mcName.Name") {
> Selection.setFocus("_level0.mcStreet.Street");
> } else if (Selection.getFocus()=="_level0.mcStreet.Street") {
> Selection.setFocus("_level0.mcCity.City");
> } else if (Selection.getFocus()=="_level0.mcCity.City") {
> Selection.setFocus("_level0.mcState.State");
> } else if (Selection.getFocus()=="_level0.mcState.State") {
> Selection.setFocus("_level0.mcName.Name");
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

