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
Solved

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

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

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

Suggested Solutions

Title # Comments Views Activity
Embedded Video Download (Flash) 3 1,161
ActionScript 3 - Removing Duplicates in ArrayCollection 1 400
free flash maker 5 216
Download Adobe Flash Player 6 67
This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

808 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