Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can Flash generate HTML?

Status
Not open for further replies.

charlieatlas

Programmer
Feb 27, 2003
4
GB
We have a Flash application that allows customers to select numerous combinations of a product and at the end it generates a string that tells the factory exactly what they have ordered.

We need the data that created the string to create an HTML email to go straight into MS Outlook and be sent as an image.

Does anyone know if this is possible and how to do it??
 
sending the data as an email is very straightforward. many tutorials exist on this. you simply add a mailto command to the function generating the data (IE only I think). sending it as image rather than text though is more demanding. does it have to be this way ?
 
Bill, thanks for your response.
Yes, we can already send the data (text string) but the important bit is being able to send the image with the text.
Any ideas gratefully considered.
 
I havent tried this but it might get you on the right lines

name = "John Doe";
email = "jdoe@yourdomain.com";
subject = "Some Text";
cnoBody = //the text you are passing, some variable or other
cnoBody += //the image to pass, again some variable

mailto = &quot;mailto:&quot; add name add &quot;<&quot; add email add &quot;>&quot; add &quot;?subject=&quot; add subject add &quot;&body=&quot; add cnoBody;
getURL (mailto);
 
Bill, Sorry for buggering about.

I guess I am not making myself clear - what I am trying to get at is:

1) how do I capture the image that Flash generates in the final screen of the app.

and then

2) how do I convert that Flash image to a usable format (be it .gif, .jpg, .tif, .bmp, etc.) for inclusion in an email.

Your advice on how to auto email is fine and I agree, but the problem is really the step before that.
 
very quickly just off the top of my head....if all the variables to be passed in the email are contained inside a movie clip then in addition to passing the varaiables in the body you ought to be able to pass the clip itself (clip to be a blank movie clip in which the whole screen plays). whether this would appear to be a jpg or whatever in the mailbox only testing will tell.
 
You could do this server-side with PHP etc.

Send the info contained in your string to a handling script, with a link identifying the image (the images would have to be stored on the server). The PHP script could then construct a multi-part email message with the images and text you specified and dispatch it via sendMail.

If the image has to be created dynamically PHP can create gifs (even swfs) on the fly from parameters you feed in - the Flash movie would communicate out the positions of each element of the image.

Big script though.
 
Thanks to bill and wangbar

I'll follow your suggested routes and drown myself in PHP for a few days. Ouch! my head hurts already.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top