Skip to content

Instantly share code, notes, and snippets.

@xthesaintx
Created October 18, 2018 01:57
Show Gist options
  • Save xthesaintx/c93ce2ceabdcac5f1f8710aa7829d1de to your computer and use it in GitHub Desktop.
Save xthesaintx/c93ce2ceabdcac5f1f8710aa7829d1de to your computer and use it in GitHub Desktop.
Drop-Shadow Action Script (Global) Animate CC
// Global
function newShadow (ob)
{
ob.shadow = new createjs.Shadow("rgba(0,0,0,.3)",1,1,10);
}
//The object needs to be a Symbol -> Movie Clip
//It needs to be named on the timeline
//Drop shadow will appear when script is implemented on the timeline
//
//Code for Layer-Keyframe
//(this.name) should be replaced with whatever you have named the object,
//eg if called "headline" then "newShadow (this.headline);"
newShadow (this.name);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment