ActionScript 2.0 :: Submit And Reset Buttons?
Jul 18, 2005anyone know any good tutorials where the drawing drawn with the drawing API can be submitted to a database.Also a reset button to clear the drawing?
View 1 Repliesanyone know any good tutorials where the drawing drawn with the drawing API can be submitted to a database.Also a reset button to clear the drawing?
View 1 Repliesim working on a zoom/pan gallery and i have a problem that i can't solve.URL...the pan buttons are not working but the zoom and reset buttons works. im working on movie the image using the mouse now, if you will hold the image and move it it will drag it on stage.the image is a loader the loads and image and placed on screen.there is a mask on top of it and a frame that indicates the size of the gallery.when the user pan the image loader content i want it to stop as soon as it gets to the gallery frame,but i cant seem to find the best way to do it.so basicly when the image is in 100% i dont want the user to be able to drag it but after you zoom the user will be able to drag it but only to the edge of the frame so there wont be any white spaces.i tried a lot of different ways to do it but all of them are complicated and not working the way that i want them to work.
View 2 RepliesI created radio buttons from an XML node[code....When I click the submit button, I want to code in the listener to remove the radio buttons.I have tried using this in my submit listener
for (rd=0; rd<myQStems.length; rd++)[code]....but that doesnt delete them.
I am trying to send information from a flash form to a php script using radio buttons without a submit button ie as soon as a radio button is selected the info is sent but I can't get anything to work.
View 1 RepliesI have an array of buttons. I need to be able to disable the selected button and enable the reset.Ex: 5 buttons on stage when click on btn1, btn1 disbale and btn2> btn5 enable.I´ve attached the main code.[code]
View 9 RepliesI need to reset or deselect a group of radio buttons. How do I do that ?
View 2 RepliesI'm using Flash CS3 and ActionScript 2. I've created a simple contact page, inside a movie clip (because I got it fading in and out), I've put the script on the main timeline, so not inside the movie, but the send and reset buttons won't respond all. I've checked the instance names and spellings are correct, here's the script I'm using:
[Code]...
ps. contact_tween is the name of movie I created to fade the whole contact page in and out.
I haven't been able to find the answer to this: I have a quiz-like animation that uses a group of radio buttons, I need the group to reset, clear or deselect the previous selection after submitting the answer on each question, is that possible?
[Code]....
I have a flash form that need to submit values to a PHP file.I am using in flash: varsToSend.send("subsrcibe.php","process","POST"); The "subsrcibe.php" contains a form that is connected directly to a database.What i want to do is, to load the variables from Flash to this PHP file, and then submit them automatically to the database (The PHP page should not open to the users).
View 2 RepliesJust new in forum and just new in as3 programming. All i want to do is to make some physics simulations (i'm physics teacher...). So i made my first sim with the following code, just to simulate a simple motion with constant velocity. It works ok, except the part i need to reset the display by the means to start the motion all over again (reset button). Then the motion starts but the traces of the previous motion remains on stage. I tried the null command (sp=null) but the sim could not start again because the sp nedded to be non-null...
[CODE]...
I have an issue with adding a reset button to my drag and drop movie clips.The problem is, if a student drags a movie clip to a wrong location on the SWF file I want them to be able to hit a reset button that would take them the same SWF that they opened and what would showup would a clear page for them to restart their drag and drop exercise.I know how to make the button for this just want the proper action script to be able for user to start over with no movie clip symbols on the page.
View 3 Repliesreset in google yields only its use for timers.However I have code bg.reset() which I suppose puts the background back to the beginning of its timeline.
View 3 RepliesI have an HTML form that I want to upload to MySQL with PHP. That part's easy, but the thing is I want the submit button to be a Flash object. Somehow I need the Flash button to submit the form, but I think I can figure that out. The tricky part is that I need it to set another PHP variable before submitting the form. The variable will be determined by a bunch of stuff, but I can code that in actionscript later. I just need to figure out how to pass the variable back to the webpage. A $_POST variable would probably be fine.
edit: What if the flash object returned some javascript and set a variable that way? making it submit the form as well while still catching a variable?
With out getting into a ton of background I am wondering if there is a command that will reset all the variables in a swf at once with out having to do them individually?
I've googled and searched my books and can't find anything. Another option I could see is having the current flash reload, that would set everything back to the start but I couldn't find how to do that either.
Anyone know?
i have this action on a button:
loadVariables ("http://www.gogisdesign.com/bytavi/sendmail.php", "", "POST");
and it works when i preview it in the flash console but when i go to the actual site it does not work becaue i do not get the email that the PHP creates. any thoughts?
the PHP works (if you put [URL] this in it works...) but on the site below when you ht the votenow it does not (although again, it does in teh flash preview when i run that)
site: [URL]
i am working on a project and i need some so called landing pages. it works like this: <embed src="index.swf?wmode=transparent&index=client" ... i can submit a var to an embeded swf per parameter. does it also work per text in the url-field? example: [URL] client is the var i want to submit to the swf as a parameter.
View 3 RepliesI've just inherited a flash file on a project since I was the only one who has even seen actionscript code before. So, I'm pretty new to this, but have been programming a pretty long time. What we want is for the animation to begin upon the user clicking it and then when it finishes proceed to the html post submit. From what I see, the code seems mostly to be there, there is a 'stop' event, move next event, and even a 'on press' event. How do I get this to work? I can see the cod in the actions frame, but can't seem to edit it. Attempting to debug it, gives me errors on publishing. (How do I change my publishing?)
This is currently actionscript 2.0. (but we seemingly have no external restrictions on keeping it so) As I mentioned, I'm pretty new to this, so if I am asking the wrong questions,
I've been looking to submit some bug reports regarding CS5.5 Pro and there just isn't an option in the "Report a Bug/Feature Request" form. WHY not?? I paid for CS5.5 and autoformat breaks my code, but there's no way to report it.
View 2 RepliesI'm Trying to make a very simple E mail form using textinput boxes and sending variables to php.Thing is that my erase button stops functioning once I hit the Submit button.[code]
View 1 Repliescorrect flash code and php script for the send button on our church website. I've tried everything, but still can't get it to work. Here is the ActionScript code that is listed:
on (rollOver){this.gotoAndPlay("s1");}
on (releaseOutside, rollOut){this.gotoAndPlay("s2");}
on (release) {
[code]...
I'm Trying to make a very simple E mail form using textinput boxes and sending variables to php.Thing is that my erase button stops functioning once I hit the Submit button.here are the scripts for Submit and Erase:
Submit script:
on (release) {
name = _parent.mailer.name.text;[code].....
I'm trying to create a submit form in flash that will post the form data to my php script. How do I make a button post
View 1 RepliesHas anyone been successful at submitting an app to the Apple store? I created a Lion virtual machine to use the Application Loader. All I ever get is that it doesn't recognize any of my files as application files, so I can't upload the app.
View 1 RepliesI am working on a game it is almost complete. The problem that i am having is in the codes for the submit button and the checkboxes the pseudo code is:
1. player chooses two choices for each element listed
2. when the submit button is hit the checkboxes are given a number value
3. those values are added together and compared to the value pulled from the database
4. if correct they go to next substance - it should just reload frame 8 (i think)
5. if incorrect it goes to frame 11
the submit button is not working so i can not tell if the checkboxes are working The full files can be seen at [URL]
Code:
substance.text = myVars.substance;
sum.text= myVars.sum;
score.text = Score;
[Code]....
I know this seems like a stupid question but I am really not able to get this to work.I need an input box with a submit button.I gave the box a var of levelCodeInput and the frame has a code of [code]When I type skiptut into the input box it doesn't go to frame 8.It just stays the same and nothing happens.I tried tracing accepted in the code on the button as well and that didn't make any output.
View 2 RepliesI'm trying to submit a form using a AS3.I have a button on my .swf which calls a javascript function in the header of the .html document.I've tested this with javascript alert, and it is working.But I can't seem to make it submit the form.The javascript call I wrote is: [code]
View 2 RepliesI don't like cookies. For saving data, submitting scores, etc. I'd like everything to be submitted into user's accounts in a mySQL database. I can do all that very easily with PHP, but how would I make it worth with flash/actionscript (I mainly/am used to working with AS2, but I have Flash CS5 now, so I can work with AS3 if necessary or more efficient). I have no idea how to mix actionscript with other languages (other than using a link with get variables, but, aside from the obvious reasons why that won't work, I'd prefer, if possible, to transmit data without any page reloading).
Are there any security holes or downsides I should consider before making a flash login system? I'd like to allow users to login if they wish to submit their score or save their data (mainly for users playing on a third-party site).
I have a text field for product code and a submit button. When a certain code would be submitted, data from an external .txt file will be loaded into a number of other fields.
View 4 RepliesI'm building a flash-game-site for a while. The big trouble is Secure Score Submitting System .I search on the net and find some ineffective techniques:
-Secret word method: there is an secret word (crypto pass) on the server and flash gets it from server and uses for crypting score data then sends it to server. But the algoritm that does the crypto job, can be accesible with a swf decompiler. Also getting the secret word from server outside of flash is simple. Not safe!
-HTTP_REFERER method: php (or what else) check HTTP_REFERER data to determine where the post coming from. But with a simply firefox extensions, the referer header can be changed. Not safe!
That is my own idea but can only make cracking harder, not more:
-We can get flash vars with js (:swliveconnect) and send to server. Flash just make a fake submit that makes no effect. Just a trick. But not safe
I've got a FLA with the facility of changing colors, adding text, etc...
Does anyone know a method or referance link on how to SUBMIT the online edited graphic data? I'm wondering whether it's possible to get a screenshot on click to be mailed.