A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: need flash web form help

  1. #1
    Junior Member
    Join Date
    Feb 2009
    Posts
    2

    Question need flash web form help

    Im using Flash CS3. this can be in as 2 or 3 whichever is easiest.

    I am trying to take a standard webform and make it into a flash web form and for some reason I cant figure out what the action script should be or where it should go (ie in a particular frame or the submit button)

    My requirements are:
    - the method be POST
    - action has to be "http://domain.net/servlet/UserSignUp?f=525639&postMethod=HTML&m=0&j=MAS2"
    - my script source has to be "http://domain.net/ui/library/formValidate.js"


    can anyone here help me come up with the actionscript that I should use for this? I also need to know how/what to associate the as with....like the button or just a frame or what. This is a very basic form that submits an email address, first name and last name to a email list.


    Thanks!!!!

  2. #2
    Junior Member
    Join Date
    Feb 2009
    Posts
    2
    so far I have come up with this:

    Code:
    on (click) {
    	getURL("http://domain.net/servlet/UserSignUp?f=525639&postMethod=HTML&m=0&j=MAS2", "", "POST");
    }
    When I try this though i get a msg back from my server that there was not an email address present....like it didnt pass the info. A coworker has a script that I used to test to see what variables were actually being passed and this is what that showed:
    Name Value
    tfList [object Object]
    invalidateFlag false
    __labelPlacement right
    __toggle false
    enabled true
    _minHeight 0
    _minWidth 0
    __width 100
    __height 22
    stylecache [object Object]
    useHandCursor false
    rolloverIcon falseUpIcon
    childrenCreated true
    __f_click [type Function]
    initializing false
    upSkin _level0.submit.fus
    skinName _level0.submit.frs
    phase rollover
    rolloverSkin _level0.submit.frs
    downSkin _level0.submit.fds
    keyHandler [object Object]


    Also for some reason all of my fields are pre-filled in with:
    "_level0.email"
    "_level0.fname"
    "_level0.lname"

    email fname and lname are my VAR values and they are showing in the correct fields but i specifically have nothing set to pre-fill those text input areas. Why is it so hard to find a tutorial for something like this??

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center