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

Reply via email to