Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-28-2005, 04:55 PM   #1
nikmark
Registered User
 
Join Date: Mar 2005
Posts: 10
Default email form help

I'm so close. Everything works but the text fields. They don't return user info. This is what I have so far:
ActionScript Code:
on (rollOver) {           gotoAndPlay(2); } on (rollOut) {           gotoAndPlay(10); } on (release) {     rsvp_lv = new LoadVars();     rsvp_lv.content3 = "t3";     rsvp_lv.content2 = "t2";     rsvp_lv.content1 = "t1";     rsvp_lv.recipient = "[email protected]";     rsvp_lv.subject = "requested information";     rsvp_lv.redirect = "http://www.nikmarkmedia.com/thank-you.html"; rsvp_lv.send("http://nikmarkmedia.com/cgi-sys/FormMail.cgi", "_blank", "POST"); }

Last edited by CyanBlue; 03-29-2005 at 02:32 AM. Reason: AS tag is applied...
nikmark is offline   Reply With Quote
Old 03-28-2005, 05:14 PM   #2
Gibberish
WHAT!?
 
Join Date: Aug 2004
Location: San Diego, CA
Posts: 1,774
Default

is having the content variables hardcoded as strings a test?
ActionScript Code:
rsvp_lv.content3 = "t3"; rsvp_lv.content2 = "t2"; rsvp_lv.content1 = "t1";
This would return content3 as t3, content2 as t2, content1 as t1. if you are trying to grab the values of input boxes with the instance names of t3 - t1 then do this and make sure the target to the t3- t1 is correct:
ActionScript Code:
rsvp_lv.content3 = t3; rsvp_lv.content2 = t2; rsvp_lv.content1 = t1;
__________________
Please reply on the forums with any questions regrading code or anything related. Other people cannot learn from private PM chats.
Gibberish is offline   Reply With Quote
Old 03-28-2005, 06:21 PM   #3
nikmark
Registered User
 
Join Date: Mar 2005
Posts: 10
Default

I'm still getting nothing. Any ideas? Thanks for the help
nikmark is offline   Reply With Quote
Old 03-28-2005, 06:29 PM   #4
Gibberish
WHAT!?
 
Join Date: Aug 2004
Location: San Diego, CA
Posts: 1,774
Default

are you just copyin and pasting my code or are you trying to point to the right target?

Copying and pasting will result in nothing because I doubt the t3-t1 values reside in your button. You need to point them to the mc where the input values reside.

here is an example if your input fields were in a mc instance named 'myForm' on the root timeline.

ActionScript Code:
rsvp_lv.content3 = _root.myForm.t3; rsvp_lv.content2 = _root.myForm.t2; rsvp_lv.content1 = _root.myForm.t1;
If you still can't get it to work post your fla.
__________________
Please reply on the forums with any questions regrading code or anything related. Other people cannot learn from private PM chats.

Last edited by Gibberish; 03-28-2005 at 06:32 PM.
Gibberish is offline   Reply With Quote
Old 03-28-2005, 06:44 PM   #5
nikmark
Registered User
 
Join Date: Mar 2005
Posts: 10
Default

I'm sorry I'm real new (as if you couldn't tell) How do i post my fla?
nikmark is offline   Reply With Quote
Old 03-28-2005, 07:29 PM   #6
rippazinc
RippaZ Inc.
 
rippazinc's Avatar
 
Join Date: Jun 2004
Location: Edison, NJ
Posts: 319
Default

first go advanced reply mode then click "manage attachments"

make sure ur posting a ZIP with your FLA ...if you dont know how 2 zip then go to www.winzip.com or if you have winxp then right click on your file and click "send to compressed folder" and then just upload your file

a quick question: what will this form accomplish? i'm trying to do an email form too but i had to use PHP which doesnt wokr good on my server....please tell me what this script is up to

thanks
rippazinc is offline   Reply With Quote
Old 03-28-2005, 07:31 PM   #7
rippazinc
RippaZ Inc.
 
rippazinc's Avatar
 
Join Date: Jun 2004
Location: Edison, NJ
Posts: 319
Default

after looking back ay ur code i think ur using CGI...please send me ur CGI script to take a quick look at please? also, what program did u use to write it?
rippazinc is offline   Reply With Quote
Old 03-28-2005, 08:07 PM   #8
Gibberish
WHAT!?
 
Join Date: Aug 2004
Location: San Diego, CA
Posts: 1,774
Default

lets do one thing at a time.

Post a sample fla (meaning take out any graphics that arent associated as to lower file size) with the form script and movies.

Or you can test movie in flash(ctrl + enter), the hit ctrl+L and copy/paste the output to here.
__________________
Please reply on the forums with any questions regrading code or anything related. Other people cannot learn from private PM chats.

Last edited by Gibberish; 03-28-2005 at 08:10 PM.
Gibberish is offline   Reply With Quote
Old 03-28-2005, 08:25 PM   #9
nikmark
Registered User
 
Join Date: Mar 2005
Posts: 10
Default

Here's my output. Again thanks so much for the help. This is an unfinished template I'm working with
Code:
Level #0: Frame=10 Label="s1"
  Movie Clip: Frame=415 Target="_level0.main" Label="s4"
    Movie Clip: Frame=30 Target="_level0.main.comp_name"
      Movie Clip: Frame=4 Target="_level0.main.comp_name.des"
        Movie Clip: Frame=1 Target="_level0.main.comp_name.des.instance139"
          Edit Text: Target="_level0.main.comp_name.des.instance139.instance140" Variable=_level0.comp_name1 Visible=true Text = <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"RIGHT\"><FONT FACE=\"Pragmatica\" SIZE=\"27\" COLOR
            =\"#81070B\">Nikmark</FONT></P></TEXTFORMAT>"
      Movie Clip: Frame=1 Target="_level0.main.comp_name.instance143"
        Edit Text: Target="_level0.main.comp_name.instance143.instance144" Variable=_level0.comp_name2 Visible=true Text = <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Pragmatica\" SIZE=\"27\" COLOR=
          \"#353435\">Media</FONT></P></TEXTFORMAT>"
    Movie Clip: Frame=27 Target="_level0.main.instance175"
      Movie Clip: Frame=25 Target="_level0.main.instance175.item4" Label="s1"
        Movie Clip: Frame=1 Target="_level0.main.instance175.item4.instance193"
          Shape:
        Movie Clip: Frame=1 Target="_level0.main.instance175.item4.instance194"
          Movie Clip: Frame=1 Target="_level0.main.instance175.item4.instance194.instance195"
            Shape:
          Movie Clip: Frame=1 Target="_level0.main.instance175.item4.instance194.instance196"
            Shape:
          Movie Clip: Frame=1 Target="_level0.main.instance175.item4.instance194.instance197"
            Shape:
          Movie Clip: Frame=1 Target="_level0.main.instance175.item4.instance194.instance198"
            Shape:
        Movie Clip: Frame=1 Target="_level0.main.instance175.item4.instance189"
          Edit Text: Target="_level0.main.instance175.item4.instance189.instance190" Variable=_level0.link4_2 Visible=true Text = <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"kroeger 0853\" SIZE=\"8\" COLOR
            =\"#858585\">contacts.</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LE
            FT\"><FONT FACE=\"kroeger 0853\" SIZE=\"8\" COLOR=\"#858585\"></FONT></P></TEXTFORMAT>"
        Button: Target="_level0.main.instance175.item4.instance191"
      Movie Clip: Frame=1 Target="_level0.main.instance175.item3"
        Movie Clip: Frame=1 Target="_level0.main.instance175.item3.instance186"
          Edit Text: Target="_level0.main.instance175.item3.instance186.instance187" Variable=_level0.link3_2 Visible=true Text = <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"kroeger 0853\" SIZE=\"8\" COLOR
            =\"#858585\">portfolio.</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"L
            EFT\"><FONT FACE=\"kroeger 0853\" SIZE=\"8\" COLOR=\"#858585\"></FONT></P></TEXTFORMAT>"
        Button: Target="_level0.main.instance175.item3.instance188"
      Movie Clip: Frame=1 Target="_level0.main.instance175.item2"
        Movie Clip: Frame=1 Target="_level0.main.instance175.item2.instance183"
          Edit Text: Target="_level0.main.instance175.item2.instance183.instance184" Variable=_level0.link2_2 Visible=true Text = <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"kroeger 0853\" SIZE=\"8\" COLOR
            =\"#858585\">services.</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LE
            FT\"><FONT FACE=\"kroeger 0853\" SIZE=\"8\" COLOR=\"#858585\"></FONT></P></TEXTFORMAT>"
        Button: Target="_level0.main.instance175.item2.instance185"
      Movie Clip: Frame=1 Target="_level0.main.instance175.item1"
        Movie Clip: Frame=1 Target="_level0.main.instance175.item1.instance180"
          Edit Text: Target="_level0.main.instance175.item1.instance180.instance181" Variable=_level0.link1_2 Visible=true Text = <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"kroeger 0853\" SIZE=\"8\" COLOR
            =\"#858585\">about.</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"
            ><FONT FACE=\"kroeger 0853\" SIZE=\"8\" COLOR=\"#858585\"></FONT></P></TEXTFORMAT>"
        Button: Target="_level0.main.instance175.item1.instance182"
      Movie Clip: Frame=1 Target="_level0.main.instance175.instance179"
        Shape:
      Movie Clip: Frame=1 Target="_level0.main.instance175.instance178"
        Shape:
      Movie Clip: Frame=1 Target="_level0.main.instance175.instance177"
        Shape:
      Movie Clip: Frame=1 Target="_level0.main.instance175.instance176"
        Shape:
    Movie Clip: Frame=1 Target="_level0.main.instance160"
      Edit Text: Target="_level0.main.instance160.instance161" Variable=_level0.copyright Visible=true Text = <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"RIGHT\"><FONT FACE=\"tahoma\" SIZE=\"10\" COLOR=\"#B
        4B4B4\"><B>Nikmark Media </B> © 2004 - <U>Privacy Policy</U></FONT></P></TEXTFOR
        MAT>"
    Movie Clip: Frame=1 Target="_level0.main.instance154"
      Shape:
    Movie Clip: Frame=32 Target="_level0.main.instance155"
      Movie Clip: Frame=1 Target="_level0.main.instance155.instance157"
        Shape:
      Movie Clip: Frame=1 Target="_level0.main.instance155.instance158"
        Edit Text: Target="_level0.main.instance155.instance158.instance159" Variable=_level0.title Visible=true Text = <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Pragmatica\" SIZE=\"28\" COLOR=
          \"#FFFFFF\">contacts.</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEF
          T\"><FONT FACE=\"Pragmatica\" SIZE=\"28\" COLOR=\"#FFFFFF\"></FONT></P></TEXTFORMAT>"
      Shape:
      Edit Text: Target="_level0.main.instance155.instance162" Variable=_level0.title1 Visible=true Text = <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Pragmatica\" SIZE=\"18\" COLOR=
        \"#FFFFFF\">contacts</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT
        \"><FONT FACE=\"Pragmatica\" SIZE=\"18\" COLOR=\"#FFFFFF\"></FONT></P></TEXTFORMAT>"
      Edit Text: Target="_level0.main.instance155.instance163" Variable=_level0.txt1 Visible=true Text = <P ALIGN=\"LEFT\"><FONT FACE=\"tahoma\" SIZE=\"11\" COLOR=\"#FFFFFF\"><B>USA - PHILADELP
        HIA</B></FONT></P><P ALIGN=\"LEFT\"><FONT FACE=\"tahoma\" SIZE=\"11\" COLOR=\"#FFFFFF\">
        <B></B></FONT></P><P ALIGN=\"LEFT\"><FONT FACE=\"tahoma\" SIZE=\"11\" COLOR=\"#FFFFFF\">
        <B>701 North Broadway Avenue</B></FONT></P><P ALIGN=\"LEFT\"><FONT FACE=\"tahoma\" S
        IZE=\"11\" COLOR=\"#FFFFFF\"><B>Gloucester City 08030 NJ</B></FONT></P><P ALIGN=\"LEF
        T\"><FONT FACE=\"tahoma\" SIZE=\"11\" COLOR=\"#FFFFFF\"><B>E -mail: [email protected]</B
        ></FONT></P><P ALIGN=\"LEFT\"><FONT FACE=\"tahoma\" SIZE=\"11\" COLOR=\"#FFFFFF\"><B></B
        ></FONT></P><P ALIGN=\"LEFT\"><FONT FACE=\"tahoma\" SIZE=\"11\" COLOR=\"#FFFFFF\"><B>Pho
        ne:  1-800-1234567</B></FONT></P><P ALIGN=\"LEFT\"><FONT FACE=\"tahoma\" SIZE=\"11\" C
        OLOR=\"#FFFFFF\"><B>Fax:  1-800-1234567 </B></FONT></P><P ALIGN=\"LEFT\"><FONT FACE=
        \"tahoma\" SIZE=\"11\" COLOR=\"#FFFFFF\"><B></B></FONT></P><P ALIGN=\"LEFT\"><FONT FACE=
        \"tahoma\" SIZE=\"11\" COLOR=\"#FFFFFF\"><B>Praesent justo dolor, lobortis quis, lobor
        tis dignissim, pulvinar ac, lorem. Vestibulum sed ante. Donec sagittis euismod p
        urus.</B></FONT></P><P ALIGN=\"LEFT\"><FONT FACE=\"tahoma\" SIZE=\"11\" COLOR=\"#FFFFFF
        \"><B></B></FONT></P>"
      Edit Text: Target="_level0.main.instance155.instance164" Variable=_level0.title2 Visible=true Text = <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Pragmatica\" SIZE=\"18\" COLOR=
        \"#FFFFFF\">contact form</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"
        LEFT\"><FONT FACE=\"Pragmatica\" SIZE=\"18\" COLOR=\"#FFFFFF\"></FONT></P></TEXTFORMAT>"
      Edit Text: Target="_level0.main.instance155.instance165" Variable=_level0.txt2 Visible=true Text = <P ALIGN=\"LEFT\"><FONT FACE=\"tahoma\" SIZE=\"11\" COLOR=\"#FFFFFF\"><B>Etiam cursus le
        o vel metus. Nulla facilisi.</B> Aenean nec eros. Vestibulum ante ipsum primis i
        n faucibus orci luctus et ultrices.</FONT></P><P ALIGN=\"LEFT\"><FONT FACE=\"tahoma
        \" SIZE=\"11\" COLOR=\"#FFFFFF\"></FONT></P>"
      Movie Clip: Frame=1 Target="_level0.main.instance155.instance166"
        Movie Clip: Frame=1 Target="_level0.main.instance155.instance166.instance167"
          Shape:
        Movie Clip: Frame=1 Target="_level0.main.instance155.instance166.instance168"
          Text:
          Text:
        Button: Target="_level0.main.instance155.instance166.instance169"
      Edit Text: Target="_level0.main.instance155.instance170" Variable=_level0.label1 Visible=true Text = <P ALIGN=\"LEFT\"><FONT FACE=\"tahoma\" SIZE=\"11\" COLOR=\"#FFFFFF\">Your name:</FONT><
        /P><P ALIGN=\"LEFT\"><FONT FACE=\"tahoma\" SIZE=\"11\" COLOR=\"#FFFFFF\"></FONT></P>"
      Edit Text: Target="_level0.main.instance155.instance171" Variable=_level0.label2 Visible=true Text = <P ALIGN=\"LEFT\"><FONT FACE=\"tahoma\" SIZE=\"11\" COLOR=\"#FFFFFF\">E-mail address:</F
        ONT></P><P ALIGN=\"LEFT\"><FONT FACE=\"tahoma\" SIZE=\"11\" COLOR=\"#FFFFFF\"></FONT></P
        >"
      Edit Text: Target="_level0.main.instance155.instance172" Variable=_level0.label3 Visible=true Text = <P ALIGN=\"LEFT\"><FONT FACE=\"tahoma\" SIZE=\"11\" COLOR=\"#FFFFFF\">Message:</FONT></P
        >"
      Edit Text: Target="_level0.main.instance155.t1" Variable=_level0.main.instance155.t1_2 Visible=true Text = type your name"
      Edit Text: Target="_level0.main.instance155.t2" Variable=_level0.main.instance155.t2_2 Visible=true Text = type your address"
      Edit Text: Target="_level0.main.instance155.t3" Variable=_level0.main.instance155.t3_2 Visible=true Text = "
      Movie Clip: Frame=1 Target="_level0.main.instance155.instance173"
        Button: Target="_level0.main.instance155.instance173.instance174"
        Movie Clip: Frame=1 Target="_level0.main.instance155.instance173.cont"
          Shape:
    Button: Target="_level0.main.instance192"
Level #7: Frame=0
Level #5: Frame=0
Level #4: Frame=0
Level #3: Frame=0

Last edited by CyanBlue; 03-29-2005 at 02:33 AM. Reason: CODE tag is applied...
nikmark is offline   Reply With Quote
Old 03-28-2005, 10:24 PM   #10
Gibberish
WHAT!?
 
Join Date: Aug 2004
Location: San Diego, CA
Posts: 1,774
Default

ok try this out:

ActionScript Code:
on (release) { rsvp_lv = new LoadVars(); rsvp_lv.content3 = _level0.main.instance155.t3_2; rsvp_lv.content2 = _level0.main.instance155.t2_2; rsvp_lv.content1 = _level0.main.instance155.t1_2; rsvp_lv.recipient = "[email protected]"; rsvp_lv.subject = "requested information"; rsvp_lv.redirect = "http://www.nikmarkmedia.com/thank-you.html"; rsvp_lv.send("http://nikmarkmedia.com/cgi-sys/FormMail.cgi", "_blank", "POST"); }

also please try to start using the code tags to wrap your code. puch the lil flash icon near the new message text box to have it create the code for you and then just put your code inbetween the tags.
__________________
Please reply on the forums with any questions regrading code or anything related. Other people cannot learn from private PM chats.
Gibberish is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:50 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.