|
#1
|
|||
|
|||
|
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?
|
|
#2
|
|||
|
|||
|
|
|
#3
|
||||
|
||||
|
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. |
|
#4
|
|||
|
|||
|
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);
});
Hope its useful and not too difficult... Robin NL Last edited by Robbinski12; Today at 10:23 AM. |
![]() |
| Tags |
| better resolution pngs, comment box flash |
| Thread Tools | |
| Display Modes | |
|
|