Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 549
  • Last Modified:

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

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
chevronrod
Asked:
chevronrod
  • 2
1 Solution
 
deepanjandasCommented:
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
 
chevronrodAuthor Commented:
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
 
deepanjandasCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now