Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to send screen snapshot or flash page in an email--Flash CS3 and AS2

Posted on 2011-03-02
3
Medium Priority
?
542 Views
Last Modified: 2012-06-27
I have a quiz with a final page that shows the results. I would like theirscore sent to me via an email link button. Ascreen shot of the scoring page would be nice because the quiz taker couldn't then easily change the quiz results but perhaps I can figure out how to store the score in a file and then attach the file .

I have the button and it brings up the email program, so no problem there. But of course it's just a blank email--there is no information on it about the quiz results.

Any help?

(Flash CS3 and AS2)
0
Comment
Question by:chevronrod
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 17

Expert Comment

by:deepanjandas
ID: 35023772
Follow this method:
On clicking on the button, take a snapshot using the BitmapData class and send the data to any backend program (like PHP) to save it as jpg, Do not forget to send the unique name of the file from flash itself. after saving, the backend program will send an email with the link of the image from the server.

Here is a nice tutorial by Quasimondo about saving image from flash AS2 to server using PHP.

Warm Regards
Deepanjan Das

0
 

Author Comment

by:chevronrod
ID: 35027440
Thanks for the offering. I'm afraid it's not going to work well for me. I'll explain from easiest to hardest to resolve.

1.  This application will be placed on client computers around the nation. I don't know if they are running servers or if they are, servers with PHP. I expect it is VERY likely they are. But it's uncertain. A small problem to get around, for sure.
2.  I am on the learning curve with Flash. I'd say I'm somewhere in the 40-50% of the users but gaining experience daily. Classes are not foreign to me but neither are they roommates. I could probably muddle my way through classes. So, again, not a big obstacle but potentially a time-user.
3.  If I were to use Quasimodo's code I would have to introduce a credit line. I'm not against credit line but with branding taking priority over what I have producing, a credit line will not work very well for me at all.  OR I could pay the 350 euro fee for the code (approx. $500). THAT one IS insurmountable.

None of this discounts your answer, of course. It would be a safer bet for me to play at the Casino all morning than to bet against the fact that there someone out there being able to make good use of your reply.

For now I'll have to lean back in my chair and wait for a simpler solution. :|
0
 
LVL 17

Accepted Solution

by:
deepanjandas earned 2000 total points
ID: 35033313
Hi,
Answers below:
1. The clients/users do not need to have servers, the flash-frontend will call the backend program which obviously you have to place in your server where your flash also resides.
3. Quasimodo's code will just give you the pointers, I have not mentioned to use his code as is. You can create your own php file; though I do not see any problem in giving credits to someone from where I learned or used, even if it is open-source(my personal intake).
2.  In AS2.0 creating a bitmap data is simple, if you see the BitmapData class. then you pass the bitmap data to your own backend code as bytes to save it on to server for sending as email attachments. The code might be simple but definitely not a ten minutes job.

Warm Regards
Deepanjan Das

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question