At 12/28/08 05:46 PM, MOC-Productions wrote:
Anyone know how to turn a certain layer on and off using actionscript? I want to make a feature that can turn subtitles on or off. Help....
you need to convert your subtitles into a movieclip, give it an instance name on the properties panel, and then do
mc_name._visible=false;
mc_name._visible=true;
when you want to hide/show them
note, do not create a new movieclip for each different piece of subtitle text.
Alternatively, just display your subtitles in a dynamic text box. Store each subtitle into an array, then display the next array index contents every time a new subtitle comes up. IF, subtitles are turned on of course.