Solved

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

Posted on 2001-06-25
2
217 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
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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,…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

763 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

7 Experts available now in Live!

Get 1:1 Help Now