Go Premium for a chance to win a PS4. Enter to Win

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
?
544 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 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

877 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