|
|
|
Volume of Sprite
Added on 1/28/2000
|
Sprite property; controls the volume of a digital video movie cast member specified by name or number. The values range from 0 to 256. Values of 0 or less mute the sound. Values exceeding 256 are loud and introduce considerable distortion
--Homepage - http://geocities.com/jdp_br
--JDP EasyBehavior - 1999 JDP - Julio Diniz Perdigao
property campo2, campo3, Event, mode
on initGotoFrame me
init me
end
on mouseUp me
if Event = #mouseup then init me
end
on mouseDown me
if Event = #mouseDown then init me
end
on mouseEnter me
if Event = #mouseEnter then init me
end
on mouseLeave me
if Event = #mouseLeave then init me
end
on enterFrame me
if Event = #enterFrame then init me
end
on exitFrame me
if Event = #exitFrame then init me
end
on init me
if the mode of me = #"volume" then
set the volume of sprite (the campo2 of me) to (the campo3 of me)
end if
end
on getPropertyDescriptionList
set p_list = [ ¬
#Campo2: [ #comment: "SpriteNumber:", ¬
#format: #integer, ¬
#default: 1 ], ¬
#Campo3: [ #comment: "Volume:", ¬
#format: #integer, ¬
#default: 1 ], ¬
#Event: [ #comment: "Handler:", ¬
#format: #symbol, ¬
#range: [ #MouseUp, #MouseDown, #MouseEnter, #MouseLeave, #EnterFrame, #ExitFrame], ¬
#default: #MouseUp ], ¬
#Mode: [ #comment: "Action:", ¬
#format: #symbol, ¬
#range: [ #"Volume"], ¬
#default: #"Volume" ] ¬
]
return p_list
end
|
|