Layers Online // Tutorial Center PhotoshopIllustratorINDESIGNFlashDreamweaverAFTER EFFECTSLIGHTROOMPHOTOGRAPHY
 
  #1  
Old 10-30-2009, 09:17 AM
dianamdeloach dianamdeloach is offline
Junior Member
 
Join Date: Oct 2009
Posts: 1
Unhappy Flash Help!

1. In flash is there a way to enter an e-mail box where the user can actually type the email from the web page and click submit and it will send the text from the "e-mail field" will be sent to me without them going through their mail program.
2. I save my images as .png but a lot of times, like my logos or any type on an ad or something I have done will be almost pixalated and hard to read... I was taught in school to always save your images as a png to import to flash, but I feel like I am losing some quality... Any suggestions?
Reply With Quote
  #2  
Old 10-30-2009, 11:18 AM
eugenetyson eugenetyson is offline
Moderator
 
Join Date: Feb 2007
Posts: 1,284
Send a message via AIM to eugenetyson Send a message via Skype™ to eugenetyson
Default

By the power of google

http://www.tizag.com/flashTutorial/flashemailform.php

http://www.flashkit.com/tutorials/Dy...-658/index.php
Reply With Quote
  #3  
Old 10-30-2009, 01:40 PM
TORCH511's Avatar
TORCH511 TORCH511 is offline
Known Member
 
Join Date: Dec 2006
Location: Boston, MA
Posts: 1,125
Send a message via AIM to TORCH511 Send a message via MSN to TORCH511 Send a message via Yahoo to TORCH511 Send a message via Skype™ to TORCH511
Default

As far as PNG with flash:

There are two types of PNG files. A Fireworks PNG, and then a Standard (non-Fireworks) PNG. A Fireworks PNG is able to retain vector information (including text) and will prevent pixillation of your text as well as any vector shapes and text remain scalable. A standard PNG file contains no vector data and is completely raster. Small text will often be difficult to read and the graphics will loose quality when scaled.

So what you were told was half-correct, and they left out a key point.
Reply With Quote
  #4  
Old Today, 10:18 AM
Robbinski12 Robbinski12 is offline
Junior Member
 
Join Date: Aug 2009
Location: Oisterwijk, the Netherlands
Posts: 7
Send a message via MSN to Robbinski12 Send a message via Skype™ to Robbinski12
Default

First of all: Flash' Textinput component looks a lot better than a bordered textarea.

You could make a button (or get one from the ones that come with Flash) and give it an action like this (instancename "btt" in example):
Code:
import flash.events.Event;
import flash.net.*;

var urlReq:URLRequest = new URLRequest("http://www.demo.com/path/to/the/script.php");
var loader:URLLoader = new URLLoader();
var sender:URLVariables = new URLVariables();
	
urlReq.method = URLRequestMethod.GET;

btt.addEventListener(MouseEvent.CLICK, function(e:MouseEvent){
	sender.fullname = fullname.text;
	sender.subject = subject.text;
	// Add other fields yourself
	
	// Validate inputs here
	// Do a "return false" if something's not right (no name entered, for example)
	
	urlReq.data = sender;
	myLoader.load(myRequest);
});

myLoader.addEventListener(Event.COMPLETE, function(event:Event){
	trace("The data has been sent successfully and this is what the server returns:");
	trace(loader.data);
});
Now you can write a PHP/ASP script (or make me to do so) to handle the request. In PHP, you can access the data via the $_GET superglobal ($_GET['fullname'], $_GET['subject']), click here for the ASP-way.

Hope its useful and not too difficult...

Robin
NL

Last edited by Robbinski12; Today at 10:23 AM.
Reply With Quote
Reply

Tags
better resolution pngs, comment box flash

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:02 PM.

Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.