Welcome to FreeSpin3D Sign in | Join
in Search

AS for assigning new Color

Last post 07-04-2008 5:09 PM by realronin. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-04-2008 2:02 AM

    • DArG
    • Top 50 Contributor
    • Joined on 06-03-2008
    • Posts 2

    AS for assigning new Color

    Hi! I'm familiar with AS 2.0, and have just started out with AS3. Unfortunately, I'm still a novice... I have a function linked to a mouselistener - and want to do a simple color conversion by clicking on my model. It seems like the RviSetColor method is best suited for this... But HOW do actually assign different colors? I'm used to colors like #ed9124 og 00x0000 etc - and therefore I don't understand how to use the (Color: Number, ObjectIndex:Number); etc... Could anyone give me an example code for the content in the paranthesis in the method below? wall.RviSetColor(Color:Number, ObjectIndex:Number); Tnx
    Filed under:
  • 06-04-2008 6:09 PM In reply to

    Re: AS for assigning new Color

    the color format is 0xnnnnnn (n=number 0 to f).

    Find attached a sample FLA that shows how to use 'the set color' function.

     

    Do you think thats air you are breathing now?
  • 06-04-2008 9:31 PM In reply to

    • DArG
    • Top 50 Contributor
    • Joined on 06-03-2008
    • Posts 2

    Re: AS for assigning new Color

    Ahhh!! Thank you! It wasn't really that hard:) The Freespin3D-guys should post some exampleFLA's on the forum so noob's like me wouldn't have to bother experts like you! Again: Thanks!
  • 07-04-2008 5:09 PM In reply to

    Check this 3d rotation, Texture Replacement & Change Color Example

Page 1 of 1 (4 items)
Revolver3d