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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form: active field 1

Status
Not open for further replies.

bubu

Programmer
Mar 3, 2002
463
RO
Hy guys!!!
I have made a form with 7 input text boxes.

What i want: when i play the movie i want the first input text box to be "active" (as i have clicked with the mouse in it).

It's attached variable is: "name" .

I don't want to add an animated line outside the text box...

Regards,
dragos.jpg

 
onClipEvent (enterFrame) {
Selection.setFocus("_level0.name");
_level0.name = "";
}


(flash mx)
this should work mate as long as this text box is directly on your stage if it is in a movie clip it becomes
_level0.youmovieclipinstancename.name
 
Hello!

The text box is in a movie clip: so it becomes: content_contact.name

I have added this action on the movie that contains the text box but it doesn't work....where am i doing wrong.

Regards,

P.S. Using MX.

dragos.jpg

 
Hello again!!

The "line" appears but i want it to appear with a delay of 2 seconds...because my text box is animated and it appears in about 2 seconds from the start of the movie.

And i cannot type any text in the boxes or change the cursor on another text box......

I can send you the .fla

Regards,
dragos.jpg

 
ok mate you have to trick it
now i think you must have a movie clip playing with an animation with a text box appearing at the end of it. am i wrong?
if it is the case then put this text box in a movie clip on its own nested in animation's MC and add the same code as above on this new MC.
which would be

onClipEvent (enterFrame) {
Selection.setFocus("_level0.animationMC.textboxMC.name");
_level0.animationMC.textboxMC.name = "";
}

understood?
izatastarworth?
 
"now i think you must have a movie clip playing with an animation with a text box appearing at the end of it. am i wrong?"

That's right.

Ok!
processing......
dragos.jpg

 
Yet another movie clip in this movie, Dragos?
Don't wonder why this whole thing will slow down at some point. I'm on a 1.8 P4, and it's already slowing down as it is! Regards,

oldman3.gif
 
just needs synchronizing Bubu.. Oldnewbie may have to be humble when talking to someone who doesn't have his skills whatever good they are..
 
Hello!!!

Not working booya!!!
I have made a movieclip that contains the text box but it's not working.

Nothing is animating anymore in the movie...

Regards,

dragos.jpg

 

"...Oldnewbie may have to be humble when talking to someone who doesn't have his skills whatever good they are..."


What does that mean, Booya? Regards,

oldman3.gif
 
Dragos, to solve your problem, simply give an instance name to your name textfield. I have used namefield, and then on frame 21 of your content_contact mc, just add this:

Selection.setFocus(namefield);

I have updated the contact_mc in the last link I emailed you. You can check it out!

By the way, you should start using an "actions only" layer in all your movie clips, where you should concentrate all of your actionscripts. Much easier for someone like me, trying to help you out (even if Booya thinks I'm condescending!), to find them, rather then looking for a burried stop action(); somewhere on some layer, burried in a folder. Regards,

oldman3.gif
 
Thanks old!!!

Please don't get angry non of you!!!...every person is different and we have to accept that!!!


Works like a charm oldnewbie!!! Thanks a lot!

Thanks you too booya for your replies!

Regards,
dragos.jpg

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top