This content has been marked as final. Show 5 replies
i think Color.setRGB is depricated ( please advise if this is true or not) and the transform method seems a little complicated and is prob only used for changeing an entire MC to a diff color.
i just used this and it worked good...
my_mc.cacheAsBitmap = true;
my_mc.opaqueBackground = 0xFF6600;
I created a new test movie and tried to use opaqueBackground to change the background color but it doesn't do anything. There is a link to the movie below, any idea why it might not be working?
It seems like there should be a way to do this with the different button states (up, down, hit, etc.) like create a new state and set the button to that state when its movie is active. I don't have much experience with flash but would something like this work?
"flasheister" <firstname.lastname@example.org> wrote in message news:email@example.com...
>i think Color.setRGB is depricated ( please advise if this is true or not) and
> the transform method seems a little complicated and is prob only used for
> changeing an entire MC to a diff color.
setRGB lets you set a solid color. You can do it in a loop like this..
Version 6 source code..
Color transform is a very powerful tool that lets you adjust RGB levels individually.
This allows you to adjust colors that are not single colored. Needed to work with gradient colors.
> i just used this and it worked good...
> my_mc.cacheAsBitmap = true;
> my_mc.opaqueBackground = 0xFF6600;
Maybe ok, I never tried it, but not everyone has Flash 8.
That third link helped a lot, I turned my buttons into MCs and used the enterFrame code in there to change the frame when it's rolled over and play a movie when clicked. Now I have a couple of questions about making it act more like a real button.
Is there any way to change which mouse cursor is displayed when they roll over so it looks like a button they can click? When it's a real button the cursor changes to a hand but since it's just an MC now it stays a pointer.
My other question is if there is a better way to detect rollovers and clicks than with onClipEvent(enterFrame)? It sort of works but if I roll over a button and then roll over one next to it they both stay lit up until I move my mouse away from the buttons.