Page Contents
import com.newgrounds.API; import com.newgrounds.Medal; var medal:Medal = API.getMedal(medal_name:String);
- MedalExample
import com.newgrounds.API; import com.newgrounds.Medal; // get the medal var medal:Medal = API.getMedal("My Medal"); // let us know if the medal is unlocked or not if (medal.unlocked) { trace(medal.name+" is unlocked!"); } else { trace(medal.name+" is not unlocked."); }