Solved

I  just want to change a movie clip's color using setrgb but...

Posted on 2001-06-25
2
221 Views
Last Modified: 2008-02-01
I just want to change a movie clip's color using setrgb but, the color is being read in from the html file that the swf is in. This part seems to work fine.

You can see for yourself at http://www.cjcraft.com/

You can change the site colors here:

http://www.cjcraft.com/applications/webskins.asp

And the flash graphic will change colors to match.

The server is acting up today so you might have to try again later.

One part of the movie clip is set to shrink horizontally using a motion tween. This motion tween doesn't work if I change the color using setrgb. What am I doing wrong and how do I fix the swf?

I was thinking maybe if I just did the width resize effect programmatically I could achieve the same effect, but I am new to Flash, and haven't been able to get this to work right either. This almost has to be possible.

Eventually I wanted to rotate the movie clip as well so I could simulate a 3D rotating object. If you check out the site you can figure out what I mean.

I am mostly after a way to pull off as much of this effect as possible either with actionscript or motion tweens.

You are welcome to check out the source at

http:www.cjcraft.com/images/cjcraft.fla

Thanks for the help!
Chris Craft
0
Comment
Question by:CJCraft
2 Comments
 
LVL 5

Accepted Solution

by:
stef4s earned 300 total points
ID: 6247963
to programmatically set the width of a movie clip do this

give the movie an instance name mc

so

mc._xscale = 50 //scale it down by 50%

mc._yscale = 75 // scale down to 75%
0
 
LVL 7

Author Comment

by:CJCraft
ID: 6260476
I was hoping to find that there was a way to dynamically change the color and keep the motion tween that I had but apparently there isn't. But I got it to work by doing it all programatically and skipping the motion tween. Thanks for the help.

CJCraft
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now