Solved

Changing color of objects

Posted on 2002-05-01
1
179 Views
Last Modified: 2010-04-03
I have tried to figure out a couple of different examples that I have found on flashkit.com about changing colors of objects but can't seem to figure out what I'm doing wrong.  If you download the following fla

http://www.flashkit.com/movies/Utilities/Other/Color_Pi-Kumar_K-5422/index.shtml

as an example and when you take the "box" movie out of the scene and then place it back into the scene again from the library it looses its functionality.  If I could figure out why this is happening I could probably figure out how to make it change colors.  If you create an object and make it a particular color, will you be able to change it in actionscript or do you need to tell the objects color in actionscript from the beginning?  I hope I have made this understandable.  I have even checked the actions of the box movie before deleting it from the scene to test it and there are no actions.  Am I not looking in the right place?

0
Comment
Question by:Zantis
[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
1 Comment
 
LVL 6

Accepted Solution

by:
rootdir earned 100 total points
ID: 6984353
Simple when you are taking the "box" movie out of the scene and then place it back into the scene. You are not giving "Mc" instance name to placed back "box" movie. If you give that, you can see it will change color again.

No you donot need to tell perticular color from bigning. You can assign color to movie at runtime like this

    MCColor = new Color("Mc");

this line creates new color for moive "box" having instace name "Mc".

    MCColor.setRGB(0xFFFFCC);

Here you can assign color by setRGB function.

I think this will help you out

Cheers
RootDir
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
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.
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.

749 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