Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    May 2004
    Location
    Earth
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Flash as submit?

    Does anyone know how I can make a .swf file act as a submit button on a form?

  • #2
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    As far as I know, that is impossible.
    Your next best option is to create the entire form in Flash, but remember to make an HTML version for people without the plugin
    Here's some help making Flash forms:
    Actionscript - The Definitive Guide: Forms
    Flashkit.com - Creating Forms in Flash
    Flash Technotes - Forms in Flash
    That should get you well on your way

    I take no responsibility for the above nonsense.


    Left Justified

  • #3
    New Coder
    Join Date
    May 2004
    Location
    Earth
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Bummer.

    Can it be done with a Flash button do you know, or is that regarded as the same thing? Have I got to stick with dull old gifs and jpgs?

    Thanks for the links if not, I'll take a look when my brain doesnt hurt so much.

  • #4
    New Coder
    Join Date
    Mar 2004
    Posts
    78
    Thanks
    0
    Thanked 0 Times in 0 Posts
    umm...this shouldn't be impossible...make your flash button and use this code attatched to the first frame...
    btw...make sure to give your button a name in the property inspector and that it matches the name in the function.
    i.e. here I use myButton as the name of the button instance. Also, "myform" would be the name you give your form element.
    Code:
    mybutton.onPress=function(){
    getURL=("javascript:document.myform.submit()");
    }
    Cheers,
    Simon

  • #5
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Of course! Using javascript with getURL in the A.S. should do the trick
    Although now you are relying on two technologies that can't be relied on

    I take no responsibility for the above nonsense.


    Left Justified


  •  

    Posting Permissions

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