Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
trebam Mail Form u AS3

 
Post new topic   Reply to topic    mi3dot.org Forum Index -> Flash
View previous topic :: View next topic  
Author Message
gasjun



Joined: 23 Dec 2005
Posts: 43
Location: Beograd

PostPosted: 22.06.2008 11:40    Post subject: trebam Mail Form u AS3 Add user to your forum ignore list Reply with quote

Ima li neko da je radio u skorije vijeme Mail form u ActionScript3
znam da ga napravim u AS2 ali me nesto cima kod URLRequest i sendAndLoad

moj primer za AS2


Code:
on(release){
   gotoAndPlay("slanjeutoku");
   slanje = new LoadVars();
   primanje = new LoadVars();
   slanje.ime = ime.text;
   slanje.email = email.text;
   slanje.poruka = poruka.text;
   slanje.sendAndLoad("posaljimail.php", primanje, "POST");
   primanje.onLoad = function(success){
      if(success){
         gotoAndPlay("uspesno");
      } // else trace("ne radi");
   }
}

evo primjera mog starog ali kad sve to prebacim u AS3 izgleda ovako
Code:
posalji.addEventListener(MouseEvent.CLICK, posaljiClick);
function posaljiClick(event:MouseEvent):void{
gotoAndPlay("slanjeutoku");
   slanje = new LoadVars();
   primanje = new LoadVars();
   slanje.ime = ime.text;
   slanje.email = email.text;
   slanje.poruka = poruka.text;
   slanje.sendAndLoad("posaljimail.php",primanje,"POST");
   primanje.onLoad = function(success){
      if(success){
         gotoAndPlay("uspesno");
      }else trace("ne radi");
   }
   
}
i naravno cima me sad LoadVars i kad to popravim kaze mi
TypeError: Error #1006: sendAndLoad is not a function.
at mailAS3proba_fla::MainTimeline/posaljiClick()


Ima li neko resenje
Back to top
View user's profile Send private message MSN Messenger
budha



Joined: 02 Mar 2004
Posts: 1377
Location: Osijek

PostPosted: 28.06.2008 20:36    Post subject: Add user to your forum ignore list Reply with quote

adobe.com wrote:
XML.send and XML.sendAndLoad have been completely removed from AS3.0


a evo i rjesenja Wink
http://blog.paoloiulita.it/2008/02/20/as3-migration-goodbye-loadvars/

_________________
I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    mi3dot.org Forum Index -> Flash All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group