that looks awesome great work xarma
Posted 3 months ago
attachmentForm is a Flash/php form with file attachment capabilities. Autovalidation, autodetection of MIME types, extensive error handling and displaying.
Filetypes and groups of filetypes to allow for attachment are user configurable.
Posted 3 months ago
Sure Papishampoo, to do this you have to configure the allowed files for upload in the attachmentForm.as file.
Posted 3 months ago
Xarma,
I purchased this file and tried to integrate this within flashcs3 using a button function gotoAndPlay (); Thats not where the problem lies, when I integrate this within my flash site, it is giving me an error of:
Location: Symbol=attachmentForm, layer=formBg, frame=1, Line 1
Description: The class or interface ‘attachmentForm’ could not be loaded.
So then I tried loading this on stage with a loader component which does not allow the form to obtain the uploadandsend.php file.
Possibly you have a solution to this?
Posted 3 months ago
Xarma,
I have placed the entire contact form on frame 26 of my flash timeline which moved all the assets to the library, Now when I run your contact form independently it runs fine with no problems but the problem occurs when I place this in my flash timeline and I have been taking a stab at this for about 4 hours and cannot seem to find the problem. I know it is not a structure problem and the main movie clip linkage is mirrored just like the one I purchased. Perhaps you can give me a hand or someone on here can help out by trying to figure out the problem as I have narrowed this down to an internal flash syntax error. Let me know if you have an idea or someone on here has an idea of what the problem may be. Here is the error below that I am getting:
Location Symbol=attachmentForm, layer=formBg, frame=1, line 1
Description The class or interface ‘attachmentForm’ could not be loaded
Posted 3 months ago
hi brianmann, you have to import the class attachmentForm, in order to have your form working. As you can see from the porprtyies of the movieclip named ‘attachmentForm’ in the library, it has a linkage with the class ‘attachmentForm’ defined in the fila attachmentForm.as. When you compile your movie this file must be in the same directory of your main fla, or in a flash class path (a standard one or one defined by you)
Bye.
Posted 3 months ago
hi, this seems to work on a PC, but not on a mac (firefox or Safari), on a mac the browse for files shows ALL files in grey so you cannot select them to attach. Does anyone else have this problem?
Posted 2 months ago
I’m sorry Alexio, i can’t test the file on a Mac; for sure it depends on the syntax of the FileReference.browse method, at line 49 in attachmentForm.as; you can give a look at Adobe Live Docs for the correct Mac syntax: http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002206.html
Posted 2 months ago
success = this._fileRef.browse([{description: “Files”, extension: “.jpg;.gif;.png;.txt;.pdf;.wav;”}]);
i have had some success on a mac with this modification to line 50.
I get an email result with attachment, but the email does not include any text variables input by the user.. eg name, etc
still testing away.. 
Is it possible to add more fields for info entry and have the email subject be hardcoded? If so, let me know what the additional cost would be. j@jgilman.net
Posted 2 months ago
Sorry for my late answer Suspire, i’ve been on holiday
Yes, of course is possible to add more field and is very simple to hardcode the mail subject. If you read the AS and the PHP code you’ll find very simple ways to do this. At this time i’m very busy, sorry.
Bye, Xarma
Hello. I’m having some problems
I uploaded the files to a certain directory of my site, but i had to remove the .htaccess file because every time i tried to access that section of the website i always get an “500 Internal Server Error”. I removed the file and everything loaded fine.
An other problem is when i receive the form in my e-mail box, i don’t get the information that the person wrote in the form. I only receive this in my e-mail:
A visitor of Your Website sent the following infos:
Name: Town: Subject: Email: Phone:
Message:
User Info: Hostname: no ip IP: Date/Time: 08/07/2008 16:59:44
-//-
All the info that the person wrote in the form is missing. The only thing that i receive is the attachment. Does it happen to anyone else?
Thanks
Posted 28 days ago
hi im getting the browser page shwing 500 Internal Server Error what di di do wrong
Posted 28 days ago
hi guys, i’ve been away. - rtavares i sent you an email. - bahij, you,ve the same problem of rtavares, i post here the mail i’ve sent him:
“Hi,the problem you’re encountering maybe is related to the fact that you’ve removed the .htaccess file. This file, infact, include a directive that instructs the apache server to accept flash headers (normally blocked by the mod_security module).
I don’t know the reason for the “500 internal error”, maybe your server doesn’t allow you to disable the filters with an .htaccess file.
Check also if php is correctly running.
You should try on another server, let me know. Sorry for me not being able to solve your problem.
In my experience and in very rare cases, for some obscure cause, some flash forms don’t work well with some servers. I spent many hours in the last two weeks trying to fix a flash form in one of my client’s websites. The form is fully functional on any server, except my client’s server; i still couldn’t find a clue for this strange behaviour… Maybe it’s something related to some php setting on that particular server…
Let me know if you fix your problems.”
Posted 27 days ago