I have a container movieclip that's white. At the end of my game, I want the movieclip to turn black but gradually, creating an image effect from white to black. Basically I want the movieclip to darken and keep darkening until the movieclip is completely black, and then the darkening stops. Any ideas on how to accomplish this?
Darkening a movieclip in flash
576 Views Asked by Vishwa Iyer At
2
There are 2 best solutions below
1
GeorgeCross
On
Well, you can try and use TweenLite to tween the colors, but that is expensive in memory terms.
Or, you can try this "hack" (never tried, so I don't the result) - create two sprites that will cover the screen, the top one white, under it - the black one. Set the alpha of the black to 0, and the white 1. Then, in ENTER_FRAME gradually reduce the alpha of the white and increase the alpha of black until black has alpha 1. It should produce something similar of that you want...
Related Questions in ACTIONSCRIPT-3
- [Actionscript]How to display the information inside an array of objects
- How to set a colour variable in JS
- When using INSERT OR REPLACE INTO in SQL is there any way to tell if a record was inserted as new or replaced in SQL for AS3?
- How to inject a bean in a view with Crux
- AS3 - Unable to resize Image width and height
- How do I move Pac-Man smoothly in AS3?
- Export Release Build is not working in Adobe Flash Builder, It does nothing on Finish button
- 1009 Error for a Character Skin Symbol in AS3
- Issue setting domain memory
- Implicit coercion of a value with static type Object to a possibly unrelated type Number
- Defer implementation of interface functions to child class
- Simple top 3 scores from an array to textfield
- Need ActionScript 3 coding for input boxes that will determine amount of color fill in a movieclip
- AS3 Caling MC on Parent Timeline from Child
- 2 error problems for simple music players
Related Questions in FLASH
- Failing write/read on RH850 with NOR flash
- Unique ID to transfer guest account data from Adobe AIR to Unity
- flashplayer_32_sa: SecurityError: Error #2028: Local-with-filesystem SWF file
- what is the simplest way and what applications to use in making an exe file that runs .swf file assetss
- Does a physical filesystem works only for a specific type of storage media?
- when I try to enable flash encryption in esp32, the bootloader size is large . But I'm unable to find bootloader field in partition table
- Manage FIFO implemented in a non-volatile flash NOR memory
- create a quiz with actionscript 3
- How to connect two x16 nor flash to nor flash controller?
- Looping in Adobe Flash Professional CS6
- AOSP flahed to android emulator
- How do I compile Flash app files with mxml and as extensions?
- Winbond W25Q01 (1G-BIT) Flash erases 256-bytes not 4K and fails write-read-verify after address 0x07000000
- On Pixel 7a Android AOSP
- Defer implementation of interface functions to child class
Related Questions in ADOBE
- Used AI to generate an Adobe Illustrator v28.3 script that groups the contents of each individual artboard. Can't get it to work
- SVG export from Adobe Illustrator generates strange code
- Samsung Watch Sport Type Animations Source
- Acrobat 2020 editing the Header or Footer in a PDF Document
- How can I print to adobe acrobat printer (pdf) in Delphi silently
- Upload photo to website, let it process, and download
- Why does digitally signing with Adobe Reader cause Windows Cryptographic errors
- Dynamically add pages in AEM Remote Spa
- I want to completely flatten/remove some pdf text/objects outline in the pdf document I am working with using iText or any tools programmatically
- Cannot re-save PDF Generated in PDF Sharp 101 Error
- Coldfusion SOAP API, name of parameters on wsdl changes to generic one
- iOS Project with SQLCipher and SQLite Dependency
- Adobe PDF Embed API - > ViewerAPI-> gotoLocation() not changing the page
- How to merge multiple .IDML files without InDesign?
- How to parse CSV or FDF data to a Python dictionary and inject into a template PDF form?
Related Questions in MOVIECLIP
- Unreal Engine 5.2 Render Movie
- Access root variable from object in Adobe Animate
- MoviePy error: failed to read the duration of file
- Actionscript 3.0 - Using an if-statement with colorTransform
- My sprite will not display, I am making a side scroller on as3
- What's the HTML5 equivalent to Flash MovieClip
- How to create and remove many Child Objects without bogging down the CPU or RAM in AS3
- Adding audio to the clip
- MovieClip not responding to a function
- Why does my imported MovieClip (imported from SWF) not behave like a MovieClip?
- Unable to access MCs via references
- cant access text field inside movieclip
- I can't get MovieClip(parent).play():void; to function correctly
- Adobe Animate, how to reference nested HTML5 movieclips using a variable
- Adobe Animate ReferenceError: Error #1069: Property loopMode not found on _ and there is no default value
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can try a color transform.