Solved

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

Posted on 2001-06-25
2
225 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

705 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