|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
can i control the brightness?
of all the movie from AS?
|
|
#2
|
|||
|
|||
|
Hi, you can use setTransform:
on (release) { // Create a color object called myColor for the target myMovie myColor = new Color(_root); // Create a color transform object called myColorTransfrom using // the generic Object object myColorTransform = new Object(); // Set the values for myColorTransform myColorTransform = {ra:'100', rb:'50', ga:'50', gb:'50', ba:'12', bb:'90', aa:'40', ab:'70'}; // Associate the color transform object with the Color object // created for myMovie myColor.setTransform(myColorTransform); } I took most of that straight from the flash help for setTransform. I tried applieing it to _root and it seemed to work for me. You would have to increment and decrement the rgb values as you required. Try using variables for the values instead of straight values i.e. _root.redVal instead of '50'. Another way is to just stick in a big single framed movie that covered everything and adjust the brightness of that. Course buttons probably wont work then but you never know what you need it for!. |
|
#3
|
|||
|
|||
|
well.... i didn't understand at all
![]() how can i just set brightness? even to only 1 object? |
|
#4
|
|||
|
|||
|
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > can i control the brightness? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|