Solved

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

Posted on 2011-03-02
3
513 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
  • 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 500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now