Linking Flash to FormMail.pl

I'm trying to put together a simple form in flash but have
had trouble getting it to recognize the formmail.pl file in my
cgi-bin folder. Do I need to indicate in the .swf file who the
"recipient" is and if so, how and where to I type that information.
Any help would be greatly appreciated. The "join" form is currently
under the "contact us" tab at www.elkhornpeakcellars.com if you'd
like to see what fields are involved in the form itself. Thanks in
advance.
Below is the code at the first frame of my timeline:
stop();
//-----<send form LoadVars>-----\\
var gatherForm:LoadVars = new LoadVars();
function sendForm() {
gatherForm.email_to = "[email protected]";
gatherForm.visitor_comments = contactForm.userComments.text;
gatherForm.visitor_name = contactForm.userName.text;
gatherForm.visitor_email = contactForm.userEmail.text;
gatherForm.send("../cgi-bin/formmail.pl", "_blank", "POST");
//-----</send form LoadVars>-----\\
_global.style.setStyle("fontFamily", "Bitstream Vera Sans
Bold");
_global.style.setStyle("embedFonts", true);
_global.style.setStyle("FontSize", 12);
_global.style.setStyle("color", 0x5C754E);
//--------------------<submit button
AS>---------------------\\
this.contactForm.submitBtn.btnLabel.autoSize = "center";
this.contactForm.submitBtn.btnLabel.text = "submit";
// onRollOver
this.contactForm.submitBtn.onRollOver = function() {
contactForm.submitBtn.gotoAndStop (2);
// onRollOut
this.contactForm.submitBtn.onRollOut = function() {
contactForm.submitBtn.gotoAndStop (1);
// onRelease
this.contactForm.submitBtn.onRelease = function() {
if (contactForm.userEmail.text =="" ||
contactForm.userName.text == "" || contactForm.userComments.text ==
gotoAndStop ("error");
} else {
sendForm();
gotoAndStop ("correct");
//--------------------</submit button
AS>---------------------\\

Yes, you need to specify who the recipient is.
gatherForm.recipient = "email address here"
Dan Mode
--> Adobe Community Expert
*Flash Helps*
http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio*
http://www.tornadostream.com
*Must Read*
http://www.smithmediafusion.com/blog
"dvdbsqt" <[email protected]> wrote in
message
news:[email protected]...
> I'm trying to put together a simple form in flash but
have had trouble
> getting
> it to recognize the formmail.pl file in my cgi-bin
folder. Do I need to
> indicate in the .swf file who the "recipient" is and if
so, how and where
> to I
> type that information. Any help would be greatly
appreciated. The "join"
> form
> is currently under the "contact us" tab at
www.elkhornpeakcellars.com if
> you'd
> like to see what fields are involved in the form itself.
Thanks in
> advance.
>
> Below is the code at the first frame of my timeline:
>
> stop();
>
> //-----<send form LoadVars>-----\\
> var gatherForm:LoadVars = new LoadVars();
>
> function sendForm() {
> gatherForm.email_to = "[email protected]";
> gatherForm.visitor_comments =
contactForm.userComments.text;
> gatherForm.visitor_name = contactForm.userName.text;
> gatherForm.visitor_email = contactForm.userEmail.text;
>
> gatherForm.send("../cgi-bin/formmail.pl", "_blank",
"POST");
> }
> //-----</send form LoadVars>-----\\
>
> _global.style.setStyle("fontFamily", "Bitstream Vera
Sans Bold");
> _global.style.setStyle("embedFonts", true);
> _global.style.setStyle("FontSize", 12);
> _global.style.setStyle("color", 0x5C754E);
>
> //--------------------<submit button
AS>---------------------\\
>
> this.contactForm.submitBtn.btnLabel.autoSize = "center";
> this.contactForm.submitBtn.btnLabel.text = "submit";
>
> // onRollOver
> this.contactForm.submitBtn.onRollOver = function() {
> contactForm.submitBtn.gotoAndStop (2);
> }
>
> // onRollOut
> this.contactForm.submitBtn.onRollOut = function() {
> contactForm.submitBtn.gotoAndStop (1);
> }
>
> // onRelease
> this.contactForm.submitBtn.onRelease = function() {
> if (contactForm.userEmail.text =="" ||
contactForm.userName.text == "" ||
> contactForm.userComments.text == "") {
> gotoAndStop ("error");
> } else {
> sendForm();
> gotoAndStop ("correct");
> }
> }
>
> //--------------------</submit button
AS>---------------------\\
>
>

Similar Messages

  • How to link flash animations in dreamweaver 8

    Hey everyone i have been trying to learn dreamweaver 8, flash
    8, and others in a short time. My question is,
    I am trying to create a website in dreamweaver 8 but i am
    having trouble making a link to another page of the site out of the
    flash animation once it's done. I can't find a option for that
    anywhere, I was able to link the table in which the animation sits
    but it does nothing. For now i just have the word ENTER below the
    animation so the rest of the site can be viewed.
    here's the link to the site where the animation first page is
    www.fatcatzcreative.com
    I have spent days trying to figure this out and being the
    typical man i have finally broken down and am askin for help.
    Thanks in advance to all.

    HTML cannot link Flash.
    If you want links in Flash, you will have to edit the Flash
    file's
    actionscript and add the links there.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "crayzboost" <[email protected]> wrote in
    message
    news:ekkfm4$2rl$[email protected]..
    > Hey everyone i have been trying to learn dreamweaver 8,
    flash 8, and
    > others in
    > a short time. My question is,
    >
    > I am trying to create a website in dreamweaver 8 but i
    am having trouble
    > making a link to another page of the site out of the
    flash animation once
    > it's
    > done. I can't find a option for that anywhere, I was
    able to link the
    > table in
    > which the animation sits but it does nothing. For now i
    just have the word
    > ENTER below the animation so the rest of the site can be
    viewed.
    >
    > here's the link to the site where the animation first
    page is
    > www.fatcatzcreative.com
    >
    > I have spent days trying to figure this out and being
    the typical man i
    > have
    > finally broken down and am askin for help.
    >
    > Thanks in advance to all.
    >

  • $$$%%%   Linking flash file PLZ HELP  $$$%%%

    hello and thankyou for whoever is reading this for taking the
    time! Im makinga band
    web site and I made flash buttons in flash 8(not the
    flash buttons in dreaweaver). now I need to add a link to each
    button. How can I do this. I see that a lot of band pages are made
    like this. take a look at www.relientk.com. Thats what im trying to
    make. Can any one help me with Ho I could link a flash file????
    linking flash FILE PLZ HELp
    thank you so much

    See your answer on the DW forum.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "beliy333" <[email protected]> wrote in
    message
    news:enffbg$c3f$[email protected]..
    > hello and thankyou for whoever is reading this for
    taking the time! Im
    > makinga
    > band
    web site and I made flash buttons in flash 8(not the
    flash
    > buttons
    > in dreaweaver). now I need to add a link to each button.
    How can I do
    > this. I
    > see that a lot of band pages are made like this. take a
    look at
    > www.relientk.com. Thats what im trying to make. Can any
    one help me with
    > Ho I
    > could link a flash file????
    >
    linking flash FILE PLZ HELp
    >
    > thank you so much
    >

  • Linking flash buttons to website using div sections

    Ok, I am a total Newbie at Flash and Dreamweaver and I am
    having serious issues linking flash the flash buttons from my
    navigation bar to the main frame on my webpage. I have the buttons
    working, and they do link to a page, just they do not link to the
    frame, instead they load the page as a full page itself.
    I am using Dreamweaver and a website template I found online.
    I believe the problem to why it is not working is because this
    template doesn't seem to be using frames, and I can not find the
    name of the frame to reference in the flash button actions. This
    template is using a lot of <div> tags to separate the
    sections in the index file.
    Does anyone out there know how to link flash button actions
    to open a page in a specific div section? Also, how can I make sure
    that it is these div tags that are creating the frames, and how to
    find out what each section is called? (I'm new to dreamweaver as
    well)
    This is my first post and last resort, forums don't fail me
    now! Thanks to anyone out there who helps me.
    Darian

    use a javascript function to change the div content and the
    flash externalinterface class to call the javascript
    function.

  • Linking Flash Pages

    What code do you use to link flash pages in a flash website?
    Anything will help!!

    Nate, the first thing to do would be some basic reading on
    publishing Flash documents (i.e. "converting from FLA to SWF").
    Start with the Live Docs here:
    http://livedocs.macromedia.com/flash/8/main/00000805.html
    This will help you in producing the SWF file that you can
    then place in your HTML template using Dreamweaver.
    Good luck!

  • Linking Flash Banners to a Web Page

    I've had a bunch of Flash banners created.
    In DW CS3 (on Mac OS X 10.5.8), they display just fine, but I can't link them to a web page, like I can with any other graphic.
    Some old info I saw (three years old) says I have to create an invisible button in Flash (which of course I don't have) and place it on top of the banner. Can that be true?
    It seems to me incomprehensible that there isn't a reasonably simple method to link ANYTHING in DW to a web site.
    Can anyone guide me? Thanks.

    I haven't seen any Flash affiliate banners.  But I'm not hugely active with affiliate advertising.
    Basically,  you want to give your  affiliates a  snippet of JavaScript or HTML code they can copy & paste into their web pages.  The  code retrieves an image (most often a Jpg or animated Gif) from your server.  When someone clicks the link, your site collects and tracks the   affiliate ID using cookies and most likely stores this info for later use.
    If you're new to "affiliate marketing,"  there are tools & services to help you.
    Commission Junction has been around for quite a while.
    http://www.cj.com/
    A Google search will reveal others.
    Good luck,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Linking flash buttons

    I am new to this. I have followed several tutorials with no
    luck. I am using action code 3. I want to link an invisible button
    to an url. I placed the code in the layer with the button. The
    following code I have used, but then follows the error message. I
    can't figure it out. Thanks.
    1180: Call to a possibly undefined method on.
    1120: Access of undefined property release.
    1180: Call to a possibly undefined method getURL.

    How are you making the invisible button? I'm assuming it's
    not a button component, but rather one you authored in Flash. Your
    options then would be to use a simple button or a MovieClip as a
    button.
    In either case you are going to have to do this:
    1. Give your button an instance name. For this example I'll
    use my_btn
    2. On a frame on the main timeline where your button is
    created, add this:
    import flash.events.Event
    my_btn.addEventListener(Event.CLICK, handleClick)
    function handleClick(e:Event):void
    // code you want to execute once the button is clicked
    getURL("
    http://www.google.com");
    That should do it.
    Don't put code in the button, put it on the main timeline
    (the best thing would be to use a document class or some other code
    outside Flash, but that would take to long to explain and this way
    will work).

  • Linking flash with an access database

    can someone point me to a tutorial or sample file i can take
    apart... ive got my database done and im ready to link it up with
    my flash site.. i know i need to use a php or asp file to pass the
    info over...
    please help
    trey

    // in the exmple below - m1 is movieClip on your stage
    // imgnam is the variable to be passed from your ASP/PHP page
    to Flash.
    // i guess this will help u
    var imgnam:String;
    imgnam = loadVariables("
    http://your.com/urpg.asp","post");
    m1.loadMovie(imgnam,"post");
    m1._x = 10;
    m1._y = 10;

  • Link flash text to center frame

    Hello,
    I generated a flash text with dreamweaver. This text should
    be a link that opens in the center target frame. The problem is
    that I cannot choose the center frame as target (only self, parent,
    blank, top).... . What can I do to make the link open in the center
    frame?
    Thanks in advance,
    Jeremy

    that' just the code to place the swf file. You need to get
    into the .fla file...
    However, I think I see what you mean... if you're creating
    this entirely in Dreamweaver, then you probably don't have access
    to the actual actionscript. It's also limiting when you just place
    an flv within Dreamweaver because you can delete skins and many
    other things.
    how did you generate the text animation within
    Dreamweaver?

  • Flash link(button) problem via xml link (Flash popup error)

    hi...
    I'm getting a problem when i run a swf file from HTML/Outside(i mean to say from folder) and click on the button (button calling xml file which has link in it), i get a adobe flash popup error/msg. As shown below....
    my codes are as follows
    XML CODE:
    <?xml version="1.0" encoding="utf-8"?>
    <tree>
    <link>
    <port>http://www.marcomanie.com</port>
    <news>http://www.asdfmanie.com</news>
    <gallery>http://www.wesdmanie.com</gallery>
    </link>
    </tree>
    My flash codes are as follows
    LOADING AS
    function loadXML(loaded) {
    if (loaded) {
    _root.port = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
    _root.news = this.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue;
    _root.gallery = this.firstChild.childNodes[0].childNodes[3].firstChild.nodeValue;
    port.text = _root.port;
    news.text = _root.news;
    gallery.text = _root.gallery;
    } else {
      trace("file not loaded!");
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("linker.xml");
    BUTTON AS
    on (release) {
    getURL(_root.port, "_self");
    Pls let me know what i have to do, to get away with that error
    im very much new to these kind of errors, any fast help will be appreciated.
    thank u
    sunder

    fix your security settings to trust that swf:
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l

  • Linking flash slideshow into HTML?

    Please excuse me if this is a very "noobish" question, but is it possible to make a flash slideshow using 4 pictures,
    but have each picture linked to a webpage? A family friend just got me a copy of Flash Pro CS6 through his company but I have genuinely zero experience with flash (Just HTML and CSS).  
    I set all 4 images to the same size. I realize I could do this in HTML, I'd just rather get some flash practice in.
    Thanks in advance for the help.

    Yes, you can create the images as objects and assign code to them to have them open html pages.  If you are using Actionscript 3 you want to look into using the navigateToURL() function for linking to web pages.

  • Can not link flash buttons to other pages

    i cant get my flash buttons to link to any pages. i keep
    getting warning messages. please can some one help

    You have to do this when you create the buttons in DW, or
    when you make them
    in Flash.
    If you want to use Flash for navigation, consider this -
    1. Some people don't have Flash installed - what do they do?
    2. Search engines don't parse Flash links - your site will
    not be spidered
    3. Screen assistive devices don't parse Flash links - what
    will those users
    do?
    4. DW cannot maintain links within a Flash movie, so if you
    move or rename
    a linked file, your navigation will break - what will you do?
    It's usually a very bad idea for these reasons...
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "TEEJAY123" <[email protected]> wrote in
    message
    news:fo4scm$1oa$[email protected]..
    >i cant get my flash buttons to link to any pages. i keep
    getting warning
    >messages. please can some one help

  • Can you link flash buttons to a embedded cue point

    I have a video that I exported to flv with 10 embedded
    navigation cue points. I also have 10 buttons in a flash file that
    I would like to link to those cue points. I can't find any info on
    how to do that. I see info on making a cue point make a event
    happen, but nothing on linking a button to a cue point. Basically
    I'm looking for the same interaction as a DVD were the user clicks
    on a chapter they want and the video goes to it.

    There are players that will play a swf with volume mute stop start that sort of thing I downloaded one a couple of years ago  I don't recall where I got it.

  • Linking Flash and Adobe Captivate

    Greetings all;
    I have a .swf file generated out of Adobe Captivate showing a
    product demonstration. I also have an introduction to said
    demonstration created in Flash CS3. What I want to do is link them
    so that at the end of the intro the demo will play. I also would
    like the demo to download while the intro is playing as the file is
    15mb in size. I have added a second scene to the intro and placed
    in frame 1 a command to load the movie (the Captivate movie). At
    the end of the intro on Scene 1 I have a frame with a command to go
    to scene 2 and play. It functions but the captivate .swf file has
    not yet loaded when the scenes switch, hence causing a long break
    between scenes.
    Any thoughts and/or hints would be greatly appreciated.
    JN

    What is your operating system & version?
    What do you mean by "Flash": Flash Player, Flash Builder, Flash Professional?
    What do you mean by "Adobe": Adobe Reader?

  • Link Flash buttons with typo3

    hi
    I have a problem. I want to link my flash menu with typo3 and
    I don't know what i should do.
    Please help he, I'm very desperate.
    Sincerely Mia

    typo3?
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

Maybe you are looking for

  • Please Help - 2006-007 - Can't Install Office -Archive & Install?

    Did the new security update; then went to upgrade from Office X to Office 2004. Everything works but Entourage - it won't even launch. Hours with Micro s**t on the phone and they have no idea. Should I revert back to my pre 2006-007 version with my S

  • Fill Interactive report Filter function with the last month

    Version: APEX 4.1 Functions: Interactive Reports - Filter Image: http://i.imgur.com/tG7si.png http://i.imgur.com/UCoZ5.png Is it possible to have a button when click would filter the last month of whatever the current date is. (Without making a 2nd i

  • Cannot cancel Urgent Change document in Solman 7.1

    Hi all, After we upgraded to Solman 7.1, we found that the Urgent Change documents in CHARM are not allowed to be withdrawn/cancelled when tranports have already been imported to QA system. In previous Solman 7.0, we were able to cancel/withdraw Urge

  • Create a Contract inserting Catalog products

    Hi all, I would create a new Contract inserting products which are present in a Catalog. In SRM portal I found the possibility to add catalog items. After I choiced Catalog and, than, item/items, I clicked on the only avilable button "add to shopping

  • HT4436 How do I change my iCloud id name?

    How do I change my icloud user name?