Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function changeVisualzer(num:int):void
- {
- if (!toggled)
- {
- _vis1.removeSelf();
- _vis2.removeSelf();
- return;
- }
- if (_vis1.active) _vis1.removeSelf(); else if (_vis2.active) _vis2.removeSelf();
- if (num == 1) addChild(_vis1) else if (num == 2) addChild(_vis2);
- }
Add Comment
Please, Sign In to add comment