Ultrashock Forums > Flash > ActionScript
AS2 - Flash + PHP problem.
Member Blogs
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!
AS2 - Flash + PHP problem.
Old 4 Weeks Ago

Hello everyone,

I have uploaded a swf and php file in my website.
The swf contains an email contact form.
When I click the send button,it works,I receive the email.Although it gets "undefined"
Any suggestions?

Thanks
postbit arrow 4 comments | 174 views postbit arrow Reply: with Quote   
Zenor
Registered User
Zenor is offline
seperator
Posts: 12
2007-12-31
Zenor lives in Greece
seperator

Ultrashock Member Comments:
Gregaz81's Avatar Gregaz81 Gregaz81 is offline Gregaz81 lives in Sweden 3 Blog Entries 4 Weeks Ago #2 Old  
Would help alot if you posted your code...
Im guessing there´s an issue with your post variables not matching your vars in your swf.

Post your code and I´ll take a look at it.
Reply With Quote  
Zenor Zenor is offline Zenor lives in Greece 4 Weeks Ago #3 Old  
Hey Gregaz,thanks for your answer.I think I know why email gets undefined.
Firstly,the contact form is part of an external swf.This external swf loads in the main file.
This main file uses a code,that pre-loads multiple swfs,by attaching them off the stage and when you click the button for each swf,they appear using TweenLite.
If I enter the url of the external swf which contains the contact form,for example mysite.com/contact.swf then the contact form works.It sends the email correctly.
But when the whole site loads,and you go to the contact section,it doesn't work.
Hope that helps
Reply With Quote  
Gregaz81's Avatar Gregaz81 Gregaz81 is offline Gregaz81 lives in Sweden 3 Blog Entries 4 Weeks Ago #4 Old  
you got any _lockroot somewhere in there?
how do you collect the vars you´re sending to your php-script?
sounds like an scope issue...
Reply With Quote  
Zenor Zenor is offline Zenor lives in Greece 4 Weeks Ago #5 Old  
Last edited by Zenor : 4 Weeks Ago at 08:35.
Okay,I changed every _root with _parent in the code.
Works like a charm now,thanks.
Reply With Quote  
Thread Tools
Display Modes Rate This Thread
Rate This Thread: