Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-01-2004, 03:13 PM   PM User | #1
rossored
New Coder

 
Join Date: May 2004
Location: Earth
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
rossored is an unknown quantity at this point
Flash as submit?

Does anyone know how I can make a .swf file act as a submit button on a form?
rossored is offline   Reply With Quote
Old 06-01-2004, 03:41 PM   PM User | #2
mindlessLemming
Senior Coder

 
Join Date: Oct 2003
Location: Australia
Posts: 1,963
Thanks: 0
Thanked 0 Times in 0 Posts
mindlessLemming is an unknown quantity at this point
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
mindlessLemming is offline   Reply With Quote
Old 06-01-2004, 04:38 PM   PM User | #3
rossored
New Coder

 
Join Date: May 2004
Location: Earth
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
rossored is an unknown quantity at this point
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.
rossored is offline   Reply With Quote
Old 06-01-2004, 05:45 PM   PM User | #4
sidvorak
New Coder

 
Join Date: Mar 2004
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
sidvorak is an unknown quantity at this point
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
sidvorak is offline   Reply With Quote
Old 06-02-2004, 12:29 PM   PM User | #5
mindlessLemming
Senior Coder

 
Join Date: Oct 2003
Location: Australia
Posts: 1,963
Thanks: 0
Thanked 0 Times in 0 Posts
mindlessLemming is an unknown quantity at this point
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
mindlessLemming is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:37 AM.


Advertisement
Log in to turn off these ads.