Tip Details

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
Searches: actionscript error flash adobe programming

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

How to Create a Quiz with Free Quiz Template in Adobe Flash

Categories: Flash Adobe free
60% positive, 0 comments
– Tip added by an anonymous user on Oct 26, 2008 at 9:37 pm

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

Adobe Photoshop CS4 For Dummies free download

100% positive, 0 comments
– Tip added by an anonymous user on Jul 17, 2009 at 10:01 am

jQuery ajax responseText empty

100% positive, 3 comments - last added on Feb 18, 2010 at 8:05 pm
– Tip added by an anonymous user on Mar 27, 2009 at 8:26 am

reading select element values in javascript in IE7

100% positive, 0 comments
– Tip added by an anonymous user on Jul 17, 2009 at 1:28 pm

Don't include a "length" attribute in a JSON Object

100% positive, 1 comment - last added on Feb 18, 2010 at 8:24 am
– Tip added by an anonymous user on Apr 10, 2009 at 4:51 pm

Photoshop Tutorial: Get Smart with Smart Objects

100% positive, 0 comments
– Tip added by an anonymous user on Feb 01, 2010 at 10:37 pm

Free shortcut app for Adobe creative suite apps

100% positive, 0 comments
– Tip added by an anonymous user on Aug 23, 2009 at 7:30 am

Getting answers from Experts Exchange

Categories: programming web
100% positive, 0 comments
– Tip added by an anonymous user on Apr 14, 2009 at 10:57 am

CSS3 Color Names

100% positive, 0 comments
– Tip added by codenique.com on Apr 14, 2009 at 4:18 am

Avoiding programming mistakes

Categories: programming security
no ratings, 0 comments
– Tip added by an anonymous user on Feb 17, 2010 at 5:11 pm

How to Make The Best of FNDC 2010 Australia

no ratings, 0 comments
– Tip added by alvinmood on Feb 11, 2010 at 3:42 am

Getting the iSight camera to work with Flash sites

Categories: iSight Flash browsers
no ratings, 0 comments
– Tip added by an anonymous user on Jan 25, 2010 at 5:17 pm

PSP error code: 8008271D

Categories: PSP errors code flash memory
no ratings, 0 comments
– Tip added by an anonymous user on Jan 11, 2010 at 11:14 am

Setting the Return-Path header when using mail in PHP

no ratings, 0 comments
– Tip added by an anonymous user on Dec 28, 2009 at 2:29 pm

Free Photoshop alternative

no ratings, 0 comments
– Tip added by an anonymous user on Dec 18, 2009 at 4:31 pm

Make and Print Clip-art Card for Thanksgiving 2009

no ratings, 0 comments
– Tip added by an anonymous user on Nov 09, 2009 at 8:25 pm

PHP strftime errors in Smarty

no ratings, 0 comments
– Tip added by an anonymous user on Nov 03, 2009 at 3:04 pm

5 Steps to Create a Dotted Stroke in Adobe Illustrator CS4

no ratings, 0 comments
– Tip added by an anonymous user on Oct 30, 2009 at 9:55 am

Speed up Adobe Photoshop load time

Categories: Adobe Photoshop speed free
no ratings, 0 comments
– Tip added by an anonymous user on May 10, 2009 at 7:25 am