Solved

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

Posted on 2001-06-25
2
222 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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.

773 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