|
Prev: Static Text Twitch on Stage.onResize
Next: Parent Code
From: CipiClaudiu on 5 May 2008 06:16 Hi, I need help with creating contact form even if it requires using php in flash. The design of this contact form can be seen http://www.claudiudesign.org/001.gif What I need here is "name", "email", "comments" to be replaced with user's text when he clicks on any of this. + of course a box to send the mail when clicked. (yes...I forgot to add that in the design :d ) Please help me if you know this. Thanks Regards
From: dzedward on 5 May 2008 10:07 as2: http://forums.flashgods.org/as2-email-form-t64.html as3: http://forums.flashgods.org/as3-email-form-t65.html
From: CipiClaudiu on 5 May 2008 10:48 thank you for trying to help, but this is not what I'm asking. What I need is the input text to dispaly: name and when the user click on this input, "name" automaticaly delets it self and let's room for the user to type his name. What you gave me doesn't display "name" text in the start.
From: CipiClaudiu on 5 May 2008 10:58 should I add this to your current as2 from your forum, or replace something with this? btw...I belive the same functions apply to email and comments, right? Thanks
From: dzedward on 5 May 2008 10:52
ahh, I see. as2: name_txt.onPress = function(){ name_txt.text = ""; }; as3: name_txt.addEventListener(MouseEvent.CLICK, txtClicked); function txtClicked(e:MouseEvent):void{ name_txt.text = ""; }; |