[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Changing color of objects

Posted on 2002-05-01
1
Medium Priority
?
192 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
1 Comment
 
LVL 6

Accepted Solution

by:
rootdir earned 400 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
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.
Suggested Courses

872 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