It can also be a simple ASO problem. Try clearing the .aso files.

On 17/05/06, Jim Robson <[EMAIL PROTECTED]> wrote:

Barn -

Thanks for testing the code. Do you have Flex 2.0 / Flash Player 9 on your
system? If not, then I think that may be the cause of my problem (I do
have
them installed; we're using Flex for upcoming projects).

Jim

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Byron
Canfield
Sent: Wednesday, May 17, 2006 10:23 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Color.setRGB - no such method?

I am unable to reproduce the error.

Created a movieclip and gave it the instance name "tmp", copied and pasted
the code directly from your email, and it compiles with no errors (and
turns the movieclip red).

--
Byron "Barn" Canfield


> Hello all,
>
> I'm getting an error that makes no sense at all. I distilled the code to
> its
> simplest form, and I'm still getting the error. I have a movie with one
> frame and one movie clip on the stage, with the instance name "tmp".
Here
> is
> the code:
>
> var color:Color;
> color = new Color(tmp);
> color.setRGB(0xFF0000);
>
> Here is the error that I get when I try to compile:
>
>>> There is no method with the name 'setRGB'.
>
> I am using Flash 8 on Windows XP Pro. I understand that the Color object
> has
> been deprecated in 8, but it should still compile.
>
> I also have Flex 2.0 with Flash Player 9 installed on the same box - I
> don't
> think this should affect the Flash compiler, but perhaps it does. If
none
> of
> you have experienced this error, perhaps I should post it to the
> Flexcoders
> mailing list?


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Yotam Laufer | Flash Developer | mobile +44 (0) 79 205 17 212 | skype:
ubermutt
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to