Re: Re[5]: [Flashcoders] AS2 Vs. AS1
It traces out the email to send --- [EMAIL PROTECTED] wrote: You need to copy the code he gave you - put it in an as file, make a movieclip with the assets he stated and bind it in the library to the class via the linkage properties (AS2 class). As for your previous post - what do you mean by traced out okay. What exactly traced out? Can you trace the variable you are looking for success? Ivan, I'm etting an error on the class says it needs to be external? --- Iv [EMAIL PROTECTED] wrote: Hello stone, - yes. a little trick needed: import mx.utils.Delegate; class EmailForm extends MovieClip { private var submit_btn:Button; private var new_lv : LoadVars; private var email : TextField; // private var request_url : String = emailSubmit.php; private var request_url : String = emailSubmit.txt; private function EmailForm () { this.submit_btn.onRelease = Delegate.create(this, this.onReleaseHandler); } private function onReleaseHandler() : Void { this.sendEmail(); } private function sendEmail() : Void { trace(sendEmail+this); var lv:LoadVars = new LoadVars(); this.new_lv = new LoadVars(); lv[email] = this.email.text; this.new_lv.onData = Delegate.create(this, this.getResponse); lv.sendAndLoad(this.request_url, this.new_lv); // , POST } private function getResponse (loaded_data:String):Void { if (loaded_data == null) { trace(Error); return; } trace(EmailForm.getResponse(+[arguments]+)); // trick var lv:LoadVars = new LoadVars(); lv.onData(loaded_data); for (var i : String in lv) { trace(i+=+lv[i]); } } } -- Ivan Dembicki [EMAIL PROTECTED] | | http://www.design.ru ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: Re[5]: [Flashcoders] AS2 Vs. AS1
Ivan and Stacey, Thanks for your help on my AS1 to AS2 issue. again, much thanks, got it figured out with your help. -S __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re[5]: [Flashcoders] AS2 Vs. AS1
Hello stone, - yes. a little trick needed: import mx.utils.Delegate; class EmailForm extends MovieClip { private var submit_btn:Button; private var new_lv : LoadVars; private var email : TextField; // private var request_url : String = emailSubmit.php; private var request_url : String = emailSubmit.txt; private function EmailForm () { this.submit_btn.onRelease = Delegate.create(this, this.onReleaseHandler); } private function onReleaseHandler() : Void { this.sendEmail(); } private function sendEmail() : Void { trace(sendEmail+this); var lv:LoadVars = new LoadVars(); this.new_lv = new LoadVars(); lv[email] = this.email.text; this.new_lv.onData = Delegate.create(this, this.getResponse); lv.sendAndLoad(this.request_url, this.new_lv); // , POST } private function getResponse (loaded_data:String):Void { if (loaded_data == null) { trace(Error); return; } trace(EmailForm.getResponse(+[arguments]+)); // trick var lv:LoadVars = new LoadVars(); lv.onData(loaded_data); for (var i : String in lv) { trace(i+=+lv[i]); } } } -- Ivan Dembicki [EMAIL PROTECTED] || http://www.design.ru ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: Re[5]: [Flashcoders] AS2 Vs. AS1
Ivan, I'm etting an error on the class says it needs to be external? --- Iv [EMAIL PROTECTED] wrote: Hello stone, - yes. a little trick needed: import mx.utils.Delegate; class EmailForm extends MovieClip { private var submit_btn:Button; private var new_lv : LoadVars; private var email : TextField; // private var request_url : String = emailSubmit.php; private var request_url : String = emailSubmit.txt; private function EmailForm () { this.submit_btn.onRelease = Delegate.create(this, this.onReleaseHandler); } private function onReleaseHandler() : Void { this.sendEmail(); } private function sendEmail() : Void { trace(sendEmail+this); var lv:LoadVars = new LoadVars(); this.new_lv = new LoadVars(); lv[email] = this.email.text; this.new_lv.onData = Delegate.create(this, this.getResponse); lv.sendAndLoad(this.request_url, this.new_lv); // , POST } private function getResponse (loaded_data:String):Void { if (loaded_data == null) { trace(Error); return; } trace(EmailForm.getResponse(+[arguments]+)); // trick var lv:LoadVars = new LoadVars(); lv.onData(loaded_data); for (var i : String in lv) { trace(i+=+lv[i]); } } } -- Ivan Dembicki [EMAIL PROTECTED] | | http://www.design.ru ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: Re[5]: [Flashcoders] AS2 Vs. AS1
You need to copy the code he gave you - put it in an as file, make a movieclip with the assets he stated and bind it in the library to the class via the linkage properties (AS2 class). As for your previous post - what do you mean by traced out okay. What exactly traced out? Can you trace the variable you are looking for success? Ivan, I'm etting an error on the class says it needs to be external? --- Iv [EMAIL PROTECTED] wrote: Hello stone, - yes. a little trick needed: import mx.utils.Delegate; class EmailForm extends MovieClip { private var submit_btn:Button; private var new_lv : LoadVars; private var email : TextField; // private var request_url : String = emailSubmit.php; private var request_url : String = emailSubmit.txt; private function EmailForm () { this.submit_btn.onRelease = Delegate.create(this, this.onReleaseHandler); } private function onReleaseHandler() : Void { this.sendEmail(); } private function sendEmail() : Void { trace(sendEmail+this); var lv:LoadVars = new LoadVars(); this.new_lv = new LoadVars(); lv[email] = this.email.text; this.new_lv.onData = Delegate.create(this, this.getResponse); lv.sendAndLoad(this.request_url, this.new_lv); // , POST } private function getResponse (loaded_data:String):Void { if (loaded_data == null) { trace(Error); return; } trace(EmailForm.getResponse(+[arguments]+)); // trick var lv:LoadVars = new LoadVars(); lv.onData(loaded_data); for (var i : String in lv) { trace(i+=+lv[i]); } } } -- Ivan Dembicki [EMAIL PROTECTED] | | http://www.design.ru ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com