property pBlurX, pBlurY, pQuality, pStrength, pStrengthPcnt -- blur vars property pR1, pG1, pB1, pR2, pG2, pB2, pR3, pG3, pB3 -- gradient colors property pRatio1, pRatio2, pRatio3, pAlpha1, pAlpha2, pAlpha3 -- ratio and alpha values property pAngle -- shadow angle property pDist -- shadow offset distance property pKnockout, pInner -- -- Drop onto a sprite for a Gradient Bevel visual effect on rollover. -- Works only with Director 11.5 or newer -- Sprite must have 32-bit color for the effect to display. -- Ken Loge - http://diginoodles.com -- on getPropertyDescriptionList me list = [:] addProp list, #pBlurX, [#comment: "Horizontal Blur:", #format: #integer, #default: 4, #range: [#min: 0, #max: 255]] addProp list, #pBlurY, [#comment: "Vertical Blur:", #format: #integer, #default: 4, #range: [#min: 0, #max: 255]] addProp list, #pQuality, [#comment: "Blur Quality:", #format: #integer, #default: 2, #range: [#min: 0, #max: 15]] addProp list, #pStrength, [#comment: "Imprint Strength:", #format: #integer, #default: 1, #range: [#min: 0, #max: 10]] addProp list, #pStrengthPcnt, [#comment: "Shadow Intensity:", #format: #integer, #default: 100, #range: [#min: 0, #max: 1000]] addProp list, #pR1, [#comment: "Red Gradient Value 1:", #format: #integer, #default: 255, #range: [#min: 0, #max: 255]] addProp list, #pG1, [#comment: "Green Gradient Value 1:", #format: #integer, #default: 255, #range: [#min: 0, #max: 255]] addProp list, #pB1, [#comment: "Blue Gradient Value 1:", #format: #integer, #default: 255, #range: [#min: 0, #max: 255]] addProp list, #pRatio1, [#comment: "Color Ratio Value 1:", #format: #integer, #default: 0, #range: [#min: 0, #max: 255]] addProp list, #pAlpha1, [#comment: "Alpha Value 1:", #format: #integer, #default: 255, #range: [#min: 0, #max: 255]] addProp list, #pR2, [#comment: "Red Gradient Value 2:", #format: #integer, #default: 255, #range: [#min: 0, #max: 255]] addProp list, #pG2, [#comment: "Green Gradient Value 2:", #format: #integer, #default: 0, #range: [#min: 0, #max: 255]] addProp list, #pB2, [#comment: "Blue Gradient Value 2:", #format: #integer, #default: 255, #range: [#min: 0, #max: 255]] addProp list, #pRatio2, [#comment: "Color Ratio Value 2:", #format: #integer, #default: 128, #range: [#min: 0, #max: 255]] addProp list, #pAlpha2, [#comment: "Alpha Value 2:", #format: #integer, #default: 0, #range: [#min: 0, #max: 255]] addProp list, #pR3, [#comment: "Red Gradient Value 3:", #format: #integer, #default: 0, #range: [#min: 0, #max: 255]] addProp list, #pG3, [#comment: "Green Gradient Value 3:", #format: #integer, #default: 0, #range: [#min: 0, #max: 255]] addProp list, #pB3, [#comment: "Blue Gradient Value 3:", #format: #integer, #default: 0, #range: [#min: 0, #max: 255]] addProp list, #pRatio3, [#comment: "Color Ratio Value 3:", #format: #integer, #default: 255, #range: [#min: 0, #max: 255]] addProp list, #pAlpha3, [#comment: "Alpha Value 3:", #format: #integer, #default: 255, #range: [#min: 0, #max: 255]] addProp list, #pAngle, [#comment: "Shadow Angle:", #format: #integer, #default: 336, #range: [#min: 0, #max: 360]] addProp list, #pDist, [#comment: "Shadow Glow Distance:", #format: #integer, #default: 4, #range: [#min: -32, #max: 32]] addProp list, #pInner, [#comment: "Outer, Inner, Full Shadow:", #format: #integer, #default: 0, #range: [#min: 0, #max: 2]] addProp list, #pKnockout, [#comment: "Knockout Effect:", #format: #boolean, #default: 0] return list end on mouseEnter me -- add VFX filter myFilter = filter(#GradientBevelFilter, [#distance:pDist, #angle:pAngle, #blurX:pBlurX, #blurY:pBlurY, #strength:pStrength, #strengthPercent:pStrengthPcnt, #quality:pQuality, #inner:pInner, #knockout:pKnockout, #colorList:[newColorRatio(color(pR1,pG1,pB1),pRatio1,pAlpha1), newColorRatio(color(pR2,pG2,pB2),pRatio2,pAlpha2), newColorRatio(color(pR3,pG3,pB3),pRatio3,pAlpha3)]]) sprite(me.spriteNum).filterlist.append(myFilter) end on mouseLeave me -- clear VFX filter sprite(me.spriteNum).filterlist.deleteAll() end