Tip Details Add a Related Tip

Rate as: Positive Negative

1067 errors in Actionscript

If you are using Actionscript 3 and getting this error:

1067: Implicit coercion of a value of type Number to an unrelated type String.

it's because you need explicitly cast a value that is a number into a string. This often happens (to me) when I am building up a string using numbers. For example, this code will throw a 1067 error:

var temperature:Number = 65;
var text:String;
text = temperature + " F";

If you want to do this without getting the 1067 error, cast the number explicitly like this:

var temperature:Number = 65;
var text:String;
text = String(temperature) + " F";
Rating: no ratings, 0 total Votes
Categories: actionScript Flash Adobe programming
Added: on Jun 17, 2008 at 9:28 pm
Added By: an anonymous user

Comments on this Tip

Add a Comment
There are no comments for this tip
Your Comment:
(how to format)
Rate This Tip:

Verify Humanity:
Sorry, we know it's annoying, but please enter the characters shown in the image to the left so that we know you're an actual person and not an evil spammer. Thanks.
       

Related Tips

Free online version of Photoshop

100% positive, 1 comment - last added on Mar 28, 2008 at 1:30 pm
– Tip added by an anonymous user on Mar 28, 2008 at 8:19 am

Reducing red eye

100% positive, 0 comments
– Tip added by an anonymous user on Aug 18, 2008 at 2:06 pm

Matching any character in a javascript regular expression

100% positive, 0 comments
– Tip added by an anonymous user on Aug 18, 2008 at 9:06 am

Javascript/Flash Powered File Upload Using SWFUpload

100% positive, 1 comment - last added on Aug 17, 2008 at 7:37 pm
– Tip added by an anonymous user on Aug 17, 2008 at 9:58 am

Submitting web forms without buttons

100% positive, 1 comment - last added on Aug 06, 2008 at 1:26 pm
– Tip added by an anonymous user on Aug 06, 2008 at 8:16 am

Random number generation

100% positive, 0 comments
– Tip added by an anonymous user on Aug 05, 2008 at 6:49 am

Optional parameters in javascript functions

100% positive, 0 comments
– Tip added by an anonymous user on Jul 30, 2008 at 10:44 am

Detecting if a variable exists in Javascript

100% positive, 1 comment - last added 4 days, 16 hours ago
– Tip added by an anonymous user on Jul 22, 2008 at 8:31 am

Using optional parameter in javascript

Categories: javascript programming
100% positive, 0 comments
– Tip added by an anonymous user on Jul 17, 2008 at 7:49 am

Redirecting in PHP

100% positive, 0 comments
– Tip added by an anonymous user on Jul 17, 2008 at 7:27 am

Ternary operator in Pyton

100% positive, 0 comments
– Tip added by an anonymous user on Jul 11, 2008 at 9:36 pm

Play Classic Nintendo NES Games

100% positive, 0 comments
– Tip added by an anonymous user on Jun 27, 2008 at 6:59 pm

Javascript Error: unterminated regular expression literal

100% positive, 0 comments
– Tip added by marty on Jun 26, 2008 at 1:20 pm

Increasing layer thumbnail images sizes in Photoshop

100% positive, 0 comments
– Tip added by flortin on Jun 19, 2008 at 9:35 am

Alternate PDF viewer

Categories: pdf Adobe free Reader
no ratings, 0 comments
– Tip added by an anonymous user 3 hours, 23 minutes ago

attaching events to nodes in Javascript

no ratings, 0 comments
– Tip added by an anonymous user on Aug 18, 2008 at 11:23 am

Figuring out shortcuts in Eclipse

no ratings, 0 comments
– Tip added by an anonymous user on Aug 13, 2008 at 3:17 pm

animating elements with jQuery

no ratings, 0 comments
– Tip added by an anonymous user on Aug 04, 2008 at 1:46 pm

Download flash games

Categories: Flash hack download
no ratings, 0 comments
– Tip added by an anonymous user on Jul 17, 2008 at 8:31 am

Pandora radio desktop application

no ratings, 0 comments
– Tip added by an anonymous user on Jun 24, 2008 at 7:21 am