Having problems with mailscript for my flash site :(

I posted this on another part of this form but thought it may
be more applicable to this portion of the site so I thank you once
again in advance for your help!
I want to say hello to all and thanks for letting me a part
of this great forum. I am having some problems with my flash site
(www.alliancedirect.net) and I am using Adobe Flash CS4 now with my
site with ActionScript 1.0.
I have a form already made on the site (under contact us) but
whatever I do....I can't make it work! I use GoDaddy and their
gdform.psp is what they provide but they don't give the code in
flash. I downloaded some different flash mail scripts and programs
but I don't know how to incorporate it within my own site and I
don't know what to do! I just want the information to be submitted
to me via email and the other forms I will make away from the flash
portion if it is too complicated.
Please let me know what specific information you may need
from me and how you can hopefully help me as soon as possible as I
need this website completely up and running. Again, I appreciatre
the help and look forward to being a part of your community!
-sasss

I found this here:
http://www.actionscript.org/resources/articles/82/3/Send-Email-via-Flash-and-PHP/Page3.htm l
THE CODE
stop ();
function lineAdapt () {
message_send = message;
while (msg_count<length(message)) {
msg_count = msg_count+1;
if ((substring(message_send, msg_count, 2)) eq "
message_send = (substring(message_send, 1, msg_count-2))
+"
"+(substring(message_send, msg_count+2,
(length(message_send))-msg_count+2));
message = message_send;
delete msg_count;
delete message_send;
WHAT THE ABOVE MEANS
Line 1 - Stops the play head.
Line 2 - Defines a custom function lineAdapt which will
convert the flash carriage return marker ( " ") to the PHP
equivalent (" "). This ensures that if the user types a comment
with paragraph breaks, these breaks will be reflected in the email,
rather than it being one very long line of text :o)
Line 3 - Sets variable message_send to the value of message.
This is a storage variable: we will adapt message_send rather than
message because message is being displayed in a text box on screen
and adapting it may cause strange visual output.
Line 4 - Begins a loop which will continue until the newly
created variable msg_count is greater than or equal to the length
of the string contained in message.
Line 5 - Increments msg_count by 1.
Line 6 - Conditional statement which checks if the 2
characters within the string message_send starting at letter number
msg_count are equal to the string " ". If you type data into a text
box in Flash and enter carriage returns, you wills see that the
variable which stores that text fields value is adapted with a " "
inserted where each carriage return should be, so we are looking
for these markers using Line 6.
Line 7 - If Line 6 returns True, replace the " " we just
found with " " (which is the PHP equivalent of " "). This code
looks complicated but it isn't really. Al it does it 'copies' the
characters before and after the " ", the pastes those before,
enters " " and pastes those after. The result is the equivalent
string with " " instead of " ".
Line 8 - Sets the variable message to the finalized version
of message_send, which contains no " " markers. We do this because
when we post our variables PHP will look for variables with the
same name. Remember in the PHP code we refer to the variable
messagenot message_send so we must make sure the correct variable
holds the correct value.
Line 9 - Deletes the counter variable for our loop from
memory
Line 10 - Deletes the temporary message_sendvariable we used
for altering the new line markers.
SEND BUTTON CODE
on (release) {
if (subject eq "" or message eq "" or from eq "") {
stop ();
} else {
lineAdapt();
loadVariablesNum ("mail.php3", 0, "POST");
gotoAndStop (2);
WHAT THE ABOVE MEANS
Line 1 - Says "Perform these actions when this button is
clicked then released"
Line 2 - Checks to see if any variable has no value. We don't
want people sending us mail with no reply address for instance.
Line 3 - Line 2 returns True, stop.
Line 4 - Line 2 returns False, go on.
Line 5 - Perform the predefined function lineAdapt () on our
currently entered variables.
Line 6 - Send variables, using the POST method, to our PHP
script which will send the email off. (Note that you could also use
LoadVars objects in place of LoadVariables if you wish to make this
more synchornous. See the LoadVariables and LoadVars tutorial.)
Line 7 - Go to the confirmation message and stop once the
email is sent.

Similar Messages

  • Is anyone else having problems with Office for Mac and Lion?

    Since installing Lion 10.7.1 on a macbook pro 2.53 Ghz 4GB 1067 MHz DDR3 I have had no end of problems. Both Excel and Word hang, crash and saving an Excel file is a pain. A 12mb spread sheet just took 4 minutes to save! I have MS Office for Mac 2011 version 14.1.3.
    Another problem that may not be related to Office is that opening Finder is so slow and most of the time it takes a minute to display folders in Desktop or Documents.
    Any suggestions would be welcome .. I regret installing Lion .. I had no problems with Snow Leopard!

    botro wrote:
    I'm unable to install the MS Office 14.1.3 update - I keep getting "Installation Failure"
    I have not found a solution on this board or Microsoft community
    This thread had some things to try.

  • I'm having problems with Outlook for the Mac, anyone else?, I'm having problems with Outlook for the Mac, anyone else?

    I have recently purchased a Mac.  I'm very dissapointed at the way Outlook 2011(the newest version, what?!?)interfaces with the Mac.  I used the contacts feature all the time when I had a microsoft system.  Now, I can't do that with Outlook for the Mac.  Does anyone have any alternative Apps that they've used for Business contacts?  Thanks much.

    thank you both for your responses.  I'm having trouble mostly with a way to handle my business contacts. I'm self employed and when I had Outlook for Microst(before I switched to Apple)I was so pleased with this softward. Esp the way it would keep track of any correspondense between me and my customer.  I could also track billing thru Outlook contacts. 
    Now, I get my mail thru outllook and use ical and @contacts.  I see that I can have a separate group of contacts thru @contacts, but, it's not the same or nearly as good as Outlook contacts for Microsoft.
    So, right now I'm really disapointed with my Mac purchase and hoping to find an app that will help.  I will investigate Thunderbird.
    thanks again.

  • Looking for FLV player with playlist for my Flash site

    I've been looking for an FLV player that I can embed "inside" my flash site--most likely loaded as an external swf via loadClip inside my main swf file.  I also need it to be AS2 compatible for my current project.  If anyone has some ideas please share, thanks.
    -David

    I have a sample here http://www.smithmediafusion.com/blog/?p=337 that uses an rss feed as the playlist.
    Regards,
    Dan
    http://www.dsmith.tv
    http://www.smithmediafusion.com/blog

  • My Apple TV is having problems with slideshows for photos synced from iTunes. How can I make it play thew whole slideshow without starting the loop again half way through?

    My Apple TV randomly returns to the beginning in the middle of the slideshow for no reason. I don't habve the photos on shuffle
    I started the slide show many times and somtimes it got through 20 photos, other times 50. Then all of a sudden, it goes back to the beginning and starts again. It's so frustrating as there is no reason for this and it doesn't loop back to the start on the same photo each time. I have about 350 photos in the album and they all loaded fine as thumbnails before I played the slideshow.
    Can anyone help please?
    Thanks, Adam

    Have solved my own problem. My PC sits on the floor so I have a four-port USB hub on my desktop with one port in use. I use one of the other three ports for USB-related task. As I was shutting down for the night I had a - what turned out to be inspired - thought about whether there was an adequate power supply from the hub. I then tried the iPod USB connection directly into the front of my machine and everything worked. It seems that an inadequate power supply was the cause of this strange set of conditions.

  • Having problems with ios6 for iPad

    Just recently installed ios6 to my iPad witht he following problems:
    Cannoct connect to itunes store
    Cannot download any apps
    The new Maps app is unable to locate my current location
    Some Facebook features are disabled. "Tap retry" doesn't respond
    Some other apps are not working
    Safari is not able to connect to the server.
    My internet is fine throhg my apple laptop. No problems on this end
    I have shut the iPad off completely and turned back on. No difference
    I have accessed all the apps in "Settings" to locate possible problem. No difference
    HELP!

    with network problems, try toggling airplane mode, leave it on for a solid 10 seconds, then off. if that doesn't help, try resetting the network settings by Setting> General> Reset
    if those don't work, perhaps restoring the device would be in order. just be sure to save a backup of the device.

  • Problems with Adobe Reader and Flash Player

    I had an Adobe update last Monday and, ever since then, I can't view documents (eg credit card statements) on screen and sites that I previously visited regularly without problem suddenly say that I need to have Adobe Flash Player installed. I've downloaded Adobe Flash Player and it says it's installed correctly but when I return to the site, it still says I need Adobe Flash Player. I've also tried doing an uninstall first and then an instal but the same thing happens. I've run disk first aid and it found a problem with the Head which it fixed but I still can't open documents using Adobe in Safari. Adobe Plug ins tells me that the Internet Access plug in is not loaded but when I ran 'repair Adobe Reader installation", it said there were no missing components detected and repair was not needed. I don't know if it's relevant but I've been having problems with Safari for several weeks, quitting 3 or 4 times a day, mainly when I'm switching from Safari to another programme such as Entourage or Excel.
    Message was edited by: Aileen2

    Hi Carolyn
    I don't think I made it clear on the original post that I'm having problems with both Adobe Reader AND Adobe Flash Player. Unfortunately, all the Adobe Reader sites are confidential so I can't give you an illustration on that but for the Adobe Flash Player, try www.jacquielawson.com/ - you can preview cards without being signed in. With the Adobe Reader problems, I get a picture of a blank 'piece of paper' with a small blue square in the top right hand corner that has a white question mark inside it. The first time this happened to me, I was on the UK Inland Revenue site trying to print out some end of year forms. I phoned the Revenue's helpline and they said to try doing a 'save as' to my desktop. It seemed bizarre - saving a blank piece of paper - but lo and behold, when I opened it on my desktop, the forms appeared exactly as normal. However, I've since tried this 'save as' technique with my credit card statement and I still get a blank piece of paper with a blue square and white question mark when I open the desktop copy.
    Thanks for your help and patience. I really appreciate it.
    Aileen

  • HT1657 I am having problems with sound in my rental movies

    We rent movies all the time but lately we are having problems with sound for our movie rentals.  We watch the first half hour without a problem than the voice is choppy all the time.  Sometimes it is good for five minutes than noting for a while.  We  have tried everything we could think of with no avail.  I could see one movie but the last 5 or so have been the same.  Done trying we need to fix this!  Help!  Any ideas?

    First try resetting your iPad by simultaneously pressing and holding the Home and Sleep/Wake buttons until you see the Apple Logo. This can take up to 15 seconds so be patient and don't release the buttons until the logo appears. Try again to see if the problem persists.
    If you still have the same issue, it's possible that something is lodged in the earphone jack. This can cause the iPad to think earphones are plugged in when they are not. Use a vacuum to try to suck any dust, lint or other foreign matter from the jack. If that still doesn't work, try CAREULLY using a toothpick.

  • I am having problems with certain websites that require adobe flash player because of the restrictions that apple has put in place. Is there a way to get to sites that require flash player?

    I am having problems with certain websits that require adobe flash player

    Please don't start the 1 millionth thread on this subject, which has been answered over and over and over and over and over and over and over.........Use the search bar and type flash and you'll see thousands of posts on this.

  • Hey everyone I am haveing problems with Flash Button

    Hello everyone I am new here so I am haveing problems with
    Flash Button because of the html address it wont go to the address
    that i put into it it keep going to
    http://www.faithdesigner.net/www.faithdesigner.net/pricing.html/www.faithdesigner.net
    why does it do that? this is a link problem issue with flash
    button in macromedia dreamweaver 8?
    someone please help me?
    Jeremy

    >
    http://www.faithdesigner.net/www.faithdesigner.net/pricing.html/www.faithdesig
    > ne
    > r.net
    In the dialog box for the Flash Button, in the link box, put
    the full
    absolute path if an external page. Including the
    http:// part.
    http://www.example.com/page.html
    for pages inside your site- use the browse to file icon, and
    use a relative
    path.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • I am having problems with flash player it keeps crashing i have unistalled it then reinstalled it bu

    i am having problems with flash player it keeps crashing i have unistalled it then reistalled it and it still keeps crashing i use firefox as my web browser can anyone help me thanks

    Hello,
    The last really supported Flash for PPC was 10.1.102.64, but if it's for like Facebook or such, people have been fooling FB to think they have a leter version installed.
    Texas Mac Man's Flash hack/post...
    https://discussions.apple.com/thread/3599648?tstart=0
    Flash player 11.1 hack on PowerPC - https://discussions.apple.com/message/16990862
    Might be later ones around also... saw 11.3 I think.
    (If you are running a PPC Mac with Flash Player 10.1.102.64 and are having problems with watching videos on FaceBook or other sites, contributor Texas Mac Man suggests the following solution which fools the site into thinking that you are running the latest version:)
    Download this http://www.steelbin.com/FPforFBPPC.zip to your desktop, unzip it, and replace the current Flash Player plug-in which is in your main/Library/Internet Plug-Ins folder, (not the user Library). Save the old one just in case this one doesn't work.
    You should also consider the Shockwave Player, which displays Web content that has been created by Adobe Director, much used for multimedia: For PPC Macs:  http://get.adobe.com/shockwave/
    See in each Browser which version of Flash it thinks it has...
    http://kb2.adobe.com/cps/155/tn_15507.html
    Then Test Adobe Shockwave & Flash Players...
    http://www.adobe.com/shockwave/welcome/

  • HT4539 I'm having problems with my iPad I downloaded I downloaded pro for two dollars and now when I try to download other apps in the app store it wAnts to kno my personal card info on free items and won't let me download items I already erase the I down

    I'm having problems with my iPad I downloaded I downloaded pro for two dollars and now when I try to download other apps in the app store it wAnts to kno my personal card info on free items and won't let me download items I already erase the I downloadeder pro but I don't kno way to do?

    Also, when I go on to safari, another alert pops up that safari cannot verify the identity of the website, anything that I type in to as common as google.com. It gives me 3 options to either cancel, look at details, and continue. I've looked at the details of the website of Google and it is legitimate the site. Any help?

  • For users having problems with Mail functionality...

    Hello! I have been having problems with Mail functionality as well, so, I took a few steps to see if I could solve the problem on my own.
    My problems were:
    Mail would freeze when sending mail, or, when I pressed quit, it would freeze.
    If I toggled between inboxes too much it would freeze up.
    Even after trying the many techniques others offered on this board, Mail still froze up. So.. here's what I did:
    1.) Turn off the auto-retrieve mail function in the preferences/general menu. Set it to a manual check. Just check it yourself every once in awhile. It may not be as convenient, but it works, trust me.
    2.) Under the fonts and colors menu, set all three fonts to the SAME font (mines Century Schoolbook, but anything works) and turn off fixed-width font. Sometimes mail has a tough time decoding and working with texts, and causes it to freeze.
    3.) Clean our your main inbox! Place the emails that you want to keep, but don't need to be in your inbox in a new folder on your inbox bar (mines aptly named 'Saved Messages.' That way, when you open up Mail to your default account, it doesn't have 1,000+ messages to index. Also, try to keep the inboxes from having more than 100-200 messages per. It seems to frown on any more than that.
    After trying these three easy, steps, restart mail and see if things run smoother. I have had no problems since these changes, and mail runs a ton better. Plus you don't have to worry about deleting your library/mail folder anymore. Let me know if things work out so I can see if my theory is a universally proven thing. Thanks and good luck!
    iMac G5 20"   Mac OS X (10.4.5)  

    Good question. I have worked very little with IMAP other than as a testing device, so, on a daily routine I cannot say how it would function. However, I can only expect that by having the option to download all emails for offline viewing selected, you are right in it being a lag creator. Another suggestion would be, if you are running a single-computer setup, to have the account delete emails from the server after recieving them on your computer. Thus, you reduce the risk of repeat downloads or unnecessary build-up on the server end. DO NOT select this option if you run multiple computer set ups on one AppleMail account system or you will cause some discrepancies and/or data loss from system to system. Or, if you have emails redirected from a seperate server to Mail (i.e. I redirect mail from my university email account into Mail so that I don't have to go to the web-mail site to check it--> just like Gmail or Yahoo etc etc) you won't be able to check them from the web-based email system if you have the system delete them. Ok that sounded confusing. Solution: have the system remove emails from the server after a week (or any period of time, just not immediately) so that, in the off-chance you need to use the online system, you will have access, and will give you a chance to check the emails on other systems without a threat of data corruption (by corruption i mean that frustrating feeling you get when you can't find that super important email that was in your inbox just 10 seconds ago on your desktop etc.)
    I will see if I can learn anything more about IMAP Ernie. Its definitley the biggest problem source for Mail, POP and .Mac being simple and functional as long as you don't play with the settings too much. As far as the issue of Offline viewing goes, try turning it off and seeing how Mail functions.
    BEFORE you turn it off, however, I recommend saving all of your emails in your inbox as a text file or something so, in case the server burps and has a brain flatuence, you don't lose anything. Been there, done that, thrown the books against the wall in a frustrated rage.
    My only reserve about the Offline Viewing is whether or not Mail will, when you click "recieve mail," have to re-download the emails from the server each time. If so, then it may end up taking longer and lagging more. The issue here is obviously minimizing the amount of activity between Mail and the email server without jeapordizing information on the server or multiple Mail programs on the same account. When we can find that balance, I think Mail's potential will be realized. Keep the questions coming.

  • I'm having problems with iPad 2 and my smart cover.  The attachment seems to be depolarized and it moves around causing the device to toggle and flash like its coming on or shorting.  Anyone having problems?

    I'm having problems with iPad 2 and my smart cover.  The attachment seems to be depolarized, trys to connect using the back (curved) edge of the magnetized bracket.  When I try to attach it, it moves around causing the device to toggle in a way that looks like the camera flash.  Anyone having problems? Help.

    Update. My carrier says the antenna of my iPhone 4s is not so good as the one in the iPhone 3G. They can't solve the problem. Their signal is too weak for the 4s at places I spend most of my time. Not the answer I expected, but I'm free to choose an other carrier. Hope this will help.
    This was not the correct answer, I accidentially clicked the button..
    Message was edited by: vasch

  • I'm having problems with Flash Videos (Youtube and ESPN)

    I have been having this problem for the last couple of days now and it is really annoying. Whenever I watch a flash video like on youtube or espn my computer freezes up and the audio will make a loud buzzing sound. I have attached a video with the post so you can see what happens. I don't have problems with anything else except this. I also get this error no matter what browser I use. I have system restored my PC as far as I can go, and I've ran a ton of scans and driver update checks and nothing seems to work.

    merci a tous pour les nombreuses réponse. j'ai dû mal a les lire vue que je ne lit que le français. je vous remercié encore une fois amicalement. Blanchette 2.
    Date: Mon, 25 Jul 2011 19:50:19 -0600
    From: [email protected]
    To: [email protected]
    Subject: Re: I'm having problems with Flash Videos (Youtube and ESPN)
    What I meant is Hardware Acceleration off (disabled).
    >

Maybe you are looking for

  • How to Load Arabic Data from flat file using SQL Loader ?

    Hi All, We need to load Arabic data from an xls file to Oracle database, Request you to provide a very good note/step to achieve the same. Below are the database parameters used NLS_CHARACTERSET AR8ISO8859P6 nls_language american DB version:-10g rele

  • Problem with DBMS_OUTPUT and SQL statment with a function

    I am using SQL Developer version 3.0.04 and I have a function that has a dbms_output statment in it. I am running the following SQL to select the output of that statment. select A.A_FUCTION('TEST') from dual; The output works fine but the dbms_output

  • [SOLVED] FreeNX missing characters

    Hi, whenever I reconnect to a suspended session (linux to linux), my remote desktop, menu and some windows are kind of empty.  Look here : I read that suspend is a bit buggy, and there are people seeing square brackets where characters should be.  Bu

  • IPhone 5 running iOS 6.0.1 randomly crashing

    running various apps. Tried restoring multiple time using new profiles each time still getting same results. Help? This is the second phone to do this. Took first phone back to Apple Store & got a new one. New one is doing exactly the same thing. Get

  • Expression Encoder crashes when connecing to live source video device under Server 2012

    I have setup Axis Streaming Assistant as a video device for Expression Encoder 4  every time I try and select  any video device either this one or the screen capture source, I get a "has stopped working" window and then it closes expression encoder.