Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: 2nd post : can u set rgb values using actionscript + ...
From: Cheri Harder
Date: Sat, 25 Mar 2000 18:26:48 GMT

No, you cannot access the color values dynamically. You can fake it, by
having the graphic in a movie clip with frames containing variously-colored
versions of the graphic and then tell-target that mc to go to the
appropriately colored frame.

Or, you can put the major colors in layers and change opacity
dynamically...at least that is what I think those guys were doing...Mountain
Mike and someone...

Secondly, I don't know of any depth limitations, but haven't tried it
extensively.

Thirdly....I would put all your code in one frame, possibly a controller
movie clip just for organization purposes...use a loop, add the random
function...here's a sample snippet of code from John C's "follow-me text"
movie clip:

Set Variable: "i" = 0
Loop While (i<=n)
Set Variable: "char"&i&":Xpos" = GetProperty ("char"&i,_x) + lead
Set Variable: "char"&i&":Ypos" = GetProperty ("char"&i,_y)
If (i>0)
Set Variable: "Xspacing"&i =
(eval("char"&i&":Xpos"))-eval("char"&(i-1)&":Xpos")
Set Variable: "Yspacing"&i =
(eval("char"&i&":Ypos"))-eval("char"&(i-1)&":Ypos")
End If
Set Variable: "i" = i+1
End Loop

You can set your properties the same way...and add a random function to your
counter...lots of possibilities.

HTH

~~~~Cheri Harder~~~~~
charderatawsolution [dot] com
Advantage Web Solution
www.awsolution.com

> I was wondering if it is possible to set random/specific rgb or hex
> values of colour to change the instance of the mc?
>
> Also, the depth value given for a duplicated mc, is there a maximum value?
>
> and lastly....
>
> My above example of duplicating random instances of an mc runs over a
> number of frames, and at uneven intervals I am calling the variables
> and duplicating the mc. Is there a way of running this in a more
> elegant manner? I am currently setting the target, new name and depth
> on individual keyframes and was hoping this could all be tied up with
> code.



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: 2nd post : can u set rgb valu, Matt Coyne

Replies
  FLASH: 2nd post : can u set rgb values u, Matt Coyne

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]