(playSound("sound://category_background/stride.mp3", true); onEvent("dogbuton", "click", function(Event) { setScreen("home"); }); onEvent("catbuton", "click", function(Event) { setScreen("home"); }); onEvent("fishbuton", "click", function(Event) { setScreen("home"); }); onEvent("hamsterbuton", "click", function( Event) { setScreen("home"); }); onEvent("HomeGo", "click", function(Event) { var Pets = getProperty("HomeFaveDrop", "value"); if (Pets == "Dogs") { setScreen("Dog"); playSound("sound://category_animals/dog.mp3", false); } else if ((Pets == "Cats")) { setScreen("Cats"); playSound("sound://category_animals/cat.mp3", false); } else if ((Pets == "Fish")) { setScreen("fish"); playSound("sound://category_collect/vibrant_game_bubbly_pick_up.mp3", false); } else if ((Pets == "Hamsters")) { setScreen("Hamsters"); playSound("sound://category_digital/squeak.mp3", false); playSound("sound://category_digital/squeak.mp3", false); } });