7 Replies Latest reply on Sep 28, 2008 5:40 AM by mindforge

    Email Script

    mindforge Level 1
      Hi,

      I'd like to use the components in the Director Library to make an e-mail form (your name, your e-mail address, your friends e-mail address and the message). Does anyone know a Script that can be attached to the Submit button that will actually send the message directly from Director (without using an e-mail client)?

      Also, does anyone know a Script for a browse button that will open your local directory and allow you to attach a file to the e-mail (directly from Director)?

      Lastly, does anyone know a Script for an error message that will inform the person that not all fields were filled or a message that tells them that their message was sent successfully?

      I've looked all over. Lots of stuff in Flash which I could use but I'm trying to do this in Director.

      Thanks,

      mindforge
        • 1. Re: Email Script
          James Newton, ACP Level 3
          If you know the IP address of the email server, you could use the technique described at http://www.adobe.com/go/tn_14182. You can find a number of third-party xtras which can send emails for you at http://www.deansdirectortutorials.com/MileHighTable/#Internet.
          • 2. Re: Email Script
            mindforge Level 1
            Hello -

            It was really nice of you to provide those links. I'll let you know how I make out.

            All the best,

            Mindforge
            • 3. Re: Email Script
              mindforge Level 1
              Hi,

              I was able to complete my project with the help of Dean Utian. The Email Xtra that I ended up using is from DirectXtra. The version of Director that I used to create the movie is MX2004 (Windows XP).

              The strange thing is that although the browse (attachment) and send email both function in the authoring environment when I create the projector (XTra's embeded in the projector) the send email feature works but the browse button that I use to attach a file doesn't work in the projector.

              Sorry for being so thick but when you create a projector for a standalone application (e.g. CD ROM) is it supposed to work for PC and Mac? Or, do you need to publish a different projector for the Mac and distribute different versions of the CD?

              Thanks,

              mindforge
              • 4. Re: Email Script
                Level 7
                > Sorry for being so thick but when you create a projector for a standalone
                > application (e.g. CD ROM) is it supposed to work for PC and Mac? Or, do you
                > need to publish a different projector for the Mac and distribute different
                > versions of the CD?

                A Windows executable will not run on a Mac, nor will a Mac app run on
                Windows. Have a look at the File -> Publish Settings dialog
                • 5. Re: Email Script
                  mindforge Level 1
                  Hi Sean,

                  Just to be clear, since the settings are check boxes, does that mean that I can check both the Windows and the Mac Projector check boxes and publish (1) Projector that will work with both platforms?

                  Again, sorry for being thick.

                  mindforge
                  • 6. Re: Email Script
                    Level 7
                    Hi,

                    No need to apologise for questions that may be 'thick'. Once you know the
                    answer, the question may appear stupid. But it's definitely not the case when
                    you're just learning.

                    Director movies - DIRs (source files), DCRs (Shockwave) and DXRs (protected
                    files) are all cross platform. The same file can run on a PC or Mac. The
                    projector self executable is platform specific. With Director MX 04 +, you can
                    create a PC and Mac projectors from a single computer. But, you create 2
                    separate files. The projectors can link to DIRs, DCRs, DXRs, that can be shred
                    between the Mac and PC versions.

                    When you use Xtras, like DirectEmail, the Xtra extension is also platform
                    specific so you need to bundle the Mac one with the mac projector and PC version
                    for the PC projector.

                    I have a stub projector tutorial that covers the creation process for projectors
                    and using Xtras. it is at:
                    http://www.deansdirectortutorials.com/publishing/projector.htm

                    regards
                    Dean

                    Director Next Roadmap Survey
                    http://www.deansdirectortutorials.com/survey/DirectorRoadmap/

                    Director Lecturer / Consultant / Director Enthusiast
                    http://www.deansdirectortutorials.com/
                    http://www.multimediacreative.com.au
                    email: d.utian@unsw.edu.au

                    • 7. Re: Email Script
                      mindforge Level 1
                      Hi Dean,

                      Thanks for the clarification and link to the stub projector tutorial.

                      Since my Director and Flash classes typically spend all their time working in the authoring environment (so the instructor and other students can share and see what each other is doing) I realized towards the end of the class that I really hadn't thought enough about publishing settings for different platforms (and/or embedding an xtra with a projector or keeping it in an xtras folder outside the projector).

                      I completed the course with an excellent result. Thanks for your help!!

                      All the best,

                      Chris Davis (aka mindforge)