Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Jeff
Displaying a Flash TextArea with Action Script?
I am just learning learning flash and trying to create a textarea in Action Script. I have taken code from examples it look like this:
package fileUpload {
import fl.controls.TextArea;
import flash.display.MovieClip;
public class FileUpload extends MovieClip {
public function FileUpload() {
var myTextArea:TextArea = new TextArea();
myTextArea.setSize(320, 240);
myTextArea.move(10, 10);
addChild(myTextArea);
myTextArea.drawNow()
}
}
}
But, I get errors:
1046: Type was not found or was not a compile-time constant: TextArea.
1180: Call to a possibly undefined method TextArea.
1172: Definition fl.controls:TextArea could not be found.
I have imported fl.controls.TextArea why am i getting this errors? I just whant to display a TextArea can you help?
Thanks very much for any help.
1 AnswerProgramming & Design1 decade agohow to change the color of text in TextArea?
I have seen websites that offer RIch TextArea like http://tinymce.moxiecode.com/examples/full.php . How do they change the text color? Is this a real textarea or they using flash or something?
2 AnswersProgramming & Design1 decade agoStock Info Lookup for Website?
Dose any one know if there is stock price look up feed that I could use on my site. I would like too look up current price of stocks on as many exchanges as possible and chart them. I know programming well and if they have API I sure I could integrate it. Just have not been able to find this solution. I am willing to pay a small monthly fee if needed. Thank for any help.
2 AnswersProgramming & Design1 decade agoMapquest Javascript API?
I what to get directions and map from one location to another on my site. So, I signed up for the developers account on MapQuest. They had samples so I got the source and then just changed the js tags to point to my files. But, I just get errors. So, I went to the API documentation and got there first sample and put my key and I get errors. I tried several of the examples and each I get errors. Has any one used MapQuest API to get direction and Map that could help???
1 AnswerProgramming & Design1 decade agoPHP security code image?
I am trying to create a security code image. I would like a background image and then the text (security code over that). I have tried like so:
<?
header('content-type: image/jpeg');
$md5 = md5(rand(0,999));
$str = substr($md5,0,6);
session_start();
$_SESSION['securitycode'] = $str;
$imgBack = imagecreatefromjpeg("images/securityback.jpg");
$img = ImageCreate(150,20);
$white = ImageColorAllocate($img, 255, 255, 255);
$black = ImageColorAllocate($img, 0, 0, 0);
ImageString($img,3,5,5,$str,$black);
imagecopymerge($imgBack,$img,0,0,0,0,150,20,100);
imagejpeg($imgBack);
imagedestroy($img);
imagedestroy($imgBack);
?>
But the string is printed out with a background that covers up the image. Is there another function that dose not print a background or how can I do this??? Please help.
1 AnswerProgramming & Design1 decade agoPHP MySQL UPDATE TEXT problem
I am try to update a table, but it dose not work. The desc field caused the error (it is a of type TEXT). It works if I remove the line that updates one field called "desc". I had a problem inserting, but when I used mysql_escape_string() function the data it worked. But, I do that and it still cause an error. Bellow is the code:
$address = $_POST['address'];
$city = $_POST['city'];
$pc = $_POST['pc'];
$province = $_POST['province'];
$desc = mysql_escape_string($_POST['desc']);
$propertytype = $_POST['propertytype'];
$buildingtype = $_POST['buildingtype'];
$years = $_POST['years'];
$contact = $_POST['contact'];
$foundationType = "";
for($i = 0; $i < count($_POST['foundationType']);$i )
$foundationType .= $_POST['foundationType'][$i]." ";
$con = msqlDBConnect();
if(!$con) {
return "ERROR 3: Database error could not edit account. Please try again";
}
mysql_select_db("dryb4554_projects",$con);
$sql = "UPDATE projects_1 SET ";
$sql .= "address='$address', ";
$sql .= "city='$city', ";
$sql .= "pc='$pc', ";
$sql .= "province='$province', ";
$sql .= "desc='$dsc', ";
$sql .= "propertytype='$propertytype', ";
$sql .= "buldingtype='$buildingtype', ";
$sql .= "buildingage='$years', ";
$sql .= "foundationtype='$foundationType', ";
$sql .= "contact='$contact' ";
$sql .= "WHERE id=".$_GET['id'];
if(!mysql_query($sql,$con))
{
mysql_close($con);
return "ERROR 4: Database Error. Unable to update info. please try again.<BR>";
}
I have done everthing I think of. I have checked to make sure that the name is correct. Even if I just right a word in like 'hello' it still dose ont work. If I remove the one line it works, but with the line that adds the desc to sql string is added it query fails. Is there something I don not know about TEXT type???
1 AnswerProgramming & Design1 decade agoIn PHP insert to MySQL with TEXT type fails?
I am trying to insert data into a MySQL database using PHP but it fails. When I change the value of that is a TEXT type in the database some times works and other times it dose not. Depeding on the value. But I do not know why the text is not valid. For example:
$sql = "INSERT INTO products VALUES('','Arabian Mocha Sanani',16.45,3,'Here's our most exotic and unpredictable coffee, laden with flavors of deep port wine, berry fruit, warm earthen spices.','1lb',1)";
Fails to be added. But
$sql = "INSERT INTO products VALUES('','Arabian Mocha Sanani',16.45,3,'Some Text','1lb',1)";
works fine. I have tested in for some time in several different applications to make sure it was the TEXT type that was causing the problem. Why???
3 AnswersProgramming & Design1 decade agoHD Camcorders Editing? And what Format?
I would like to make movie and am looking to get a couple Camcorders for this. I have been looking at HD Camcorders. But, I asked at the camera shop and said that the HD Camcorders did not come with Editing software and did not think Adobe Premiere could not edit the HD format. Is this true? What can I use?
My goal is to take the film and transfer for use in film, DVD, TV Comercials, and internet (Flash). What formats should I use for each? And what will I need to produce these mediums? Can Adobe Premiere be used to format the video? And will Adobe Flash be able to tranfer the HD video to Flash format?
3 AnswersCamcorders1 decade ago3ds Max Apply Image Material?
Ok I have used 3ds a long time ago, but just got the program again. What I am trying to do is apply bitmap texture (a .jpg image) and then apply it to an object. I press M to the material editor then press "Get Material" button get the Material Map Browser. Then I choose bitmap and select a .jpg image. That works fine, but as soon as I do the "Assign Material to Selection" button grays out (even when I select an object) and I can not drag the material to the object. What is going on? How do I assign it?
3 AnswersProgramming & Design1 decade agoJava Mail API package javax.mail does not exist?
I would like to user Java Mail, but when I try to import javax.mail I get package javax.mail does not exist. I am using EE5 jdk which API reference and documentation says it includes this package. What am I doing wrong???
4 AnswersProgramming & Design1 decade ago