Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

input text behind mask 1

Status
Not open for further replies.

jubalj

IS-IT--Management
Oct 5, 2003
13
NZ
Hi guys,

I want to have input fields behind a mask layer. It took me a while to figure out that I needed to embed the fonts in the input text field to see the the text frame, but despite embedding it I cant enter any text into the input boxes, because the boxes although visible wont receive focus - only the cursor changes to a little hand over the text box.

I have embedded all common glyphs (95 of them) and am using MX 2004 + flash 7 player. Does anyone know how I can have input fields behind a mask.

Regards
Jubal
 
A hand cursor? Using invisible buttons?

Regards,

cubalibre2.gif
 
I havent quite worked out what the problem was but when i recreated the movie clip that was behind the mask, it seemed to work fine?

The only difference that I could think was that the original movie clip was actually from another fla (i.e. in the library when clicked on update it would show the file from which I had originally got the mc).
 
I see what the problem is: If the movies timeline has any actionsctipt in it then it disables the ability to enter text into input fields within the movie! anyone know of a way around this please.

Regards
Jubal
 
You're definitely doing something wrong somewhere because I've had no problems putting inout fields into masked areas.

The fact that you're seeing a hand cursor appear leads me to think that you have a button, perhaps an invisible one, which is overlapping the textfield and receiving focus denying focus to the input field.
 
Thanks, sorry I've been a bit unclear, since I'm new to the lingo.

I worked out the masked field was not the problem. The problem can be reproduced if I do the following:
1. Create an Input text field
2. Convert it to a Symbol, and make it a Movie clip.
Now the the problem step
3. Add some activescript within the movie clip thats just been created something like "
on (release){
trace ("hello");
}"

Now if I test movie, I cant input text into text input field. Instead when I am over it I get the little hand.There must be some sort of actionscript command I could issue to allow input to rhe field.

I'm using MX 2004 + player v7

Regards
Jubal
 
You don't need any script to use a field as an input textbox - it works automatically. You do need some script to pick up what is entered and use it.

Give the textbox an instance name ('textbox' wil do)

You can then get the entered value via some script like this:

trace(textbox.text)

By adding an onRelease action you're effectively turning that clip into a button killing the focus on the textfield and stopping it working.
 
Thanks wangbar,

but is there anyway I could trigger an event when the textbox receives focus, and then still receive input?

I basically want to bring up some sort of tool tip or prompt when the person enters the field.

Since i'm using MX2004, i had another screen with the tooltip, and had a 'show screen' behaviour when the input field received focus.

Is there a suggested method to display a large tooltip that appears when focus is received by an input field?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top