简体   繁体   中英

AS3 BlendMode ADD

I could use some help about applying changes to symbols. I can see in the hints stuff like display/BlendMode/Properties/ADD for example, same things can be changed directly, in symbol properties. I don't really know the rules, which one to type where. I tried "Object01.display.BlendMode.Properties.ADD = true" and "Object01.draw(BlendMode.ADD)"... I've only found examples where people used it during drawing things using AS3. And I need to apply it to an existing symbol(instance). Via function, of course. Please.

if(myWill = true){ "change_blending_properties_code" }

^_^

You can assign any DisplayObject's flash.display.DisplayObject.blendMode quite easily in code:

import flash.display.BlendMode;

myDisplayObject.blendMode = BlendMode.ADD;

flash.display.BlendMode is simply a class of constants, like BlendMode.ADD . Alternatively, you could write the following, but I don't recommend it:

myDisplayObject.blendMode = "add";

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM