Ho creato il from mail tutto in flash 8 e funziona alla perfezione.
Sto imparando il flash dal libro ufficiale di macromedia flash 8.
Adesso nelle istruzioni dice praticamente di inserire questo nell'actions:
Guardate questa riga:codice://stops things from goofing up. stop(); //sets a tab index for the components tiEmail.tabIndex=1; tiSubject.tabIndex=2; taMessage.tabIndex=3; bSend.tabIndex=4; //sets a default component to react to the enter key on the keyboard focusManager.defaultPushButton=bSend; //sets form focus focusManger.setFocus(tiEmail); //sends the data out bSend.onRelease = function() { var targetLoadVars:LoadVars = new LoadVars(); var myLoadVars:LoadVars = new LoadVars(); myLoadVars.emailFrom = tiEmail.text; myLoadVars.emailTo =tiEmailTo.text; myLoadVars.subject = tiSubject.text; myLoadVars.message =taMessage.text; myLoadVars.sendAndLoad ("http://www.flash-mx.com/ws/submit_feedback.cfm", targetLoadVars, "POST"); targetLoadVars.onLoad = function() { trace(this.success); }; gotoAndStop("thankyou"); };
myLoadVars.sendAndLoad ("http://www.flash-mx.com/ws/submit_feedback.cfm" targetLoadVars, "POST");
In pratica mi fà inviare il post tramite qualcosa che stà su flash-mx.com... Ecoo io vorrei che quella cosa (non so cosa sia se sia altro codice action script o che cos altro perchè sono alle prime armi) sta sul mio dominio.
Ecco il link: http://www.fabiospecial.it/lol.swf

Rispondi quotando