Form in swf flash website?

  • Profile Image
    mat
    Asked on March 21, 2011 at 11:52 AM

    can i add a form into a swf flash website?

    i don't usually use flash websites, just html so please be specific with any instructions.

  • Profile Image
    DanielGriffin
    Answered on March 21, 2011 at 12:05 PM

    hi there,

    Flash does have some limited support for html areas using the htmlText property.  However you might have some problems with the associated javascript.  You could try to embed Jotform using a script block rather than the full source code.  To do that, go to your form and click "Embed Form", then select "Embed"

    Also take a look at this Adobe page in htmlTest

    http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary745.html

    thanks,

    Daniel

  • Profile Image
    exactrepair
    Answered on March 21, 2011 at 12:33 PM

    where would i embed the code?

    or

    is there a way to use a form made within flash through jotform?

    I put this in the actions for the frames:

    formtext.html = true;
    formtext.html = <script src="http://www.jotform.com/jsform/10792747219"></script>;

    The above code gives me a operand error...

    Let's say i do this:

    formtext.html = true;
    formtext.html = "<script src="http://www.jotform.com/jsform/10792747219"></script>";

    Then the "<script src=" turns green and the rest of the code greys out... what operand can i put in there to avoid this?

  • Profile Image
    DanielGriffin
    Answered on March 22, 2011 at 10:30 AM

    Sorry,

    As I say, there is only limited support for HTML and many tags are ignored, so it might not work.  But you should be using fieldname.htmlText rather than fieldname.html. Also, you are using the same quotes throughout your string, so actionscript thinks that the quote closes half way through the string.  Try using double and single quotes (for the src part)  to break it up.

    So, using your example code it would be.

    formtext.html = true;
    formtext.htmlText = "<script src='//www.jotform.com/jsform/10792747219'></script>";

    Thanks,

    Daniel