//Steve Rhoades //Sample Code //Art Institute of Seattle //HelloWorld /** *We'll talk more about what packages are and what they mean later *For now, just make sure your code starts with the word package" and is contained within curly braces *like this. Don't forget a closing curly brace at the end of your code! */ package{ //don't worry about what this next line does just yet, just put it in your file import flash.display.*; /** *Similarly, we won't discuss the true implications of classes for another week or two. For now, *Make sure that right after the package, you have a line like the one below. You can name your class *whatever you want. Be descriptive. Class names are generally capitalized like you see below. *No spaces or punctuation. Name your .as file the same as your class name *Don't worry about extensions just yet. Just put that on your class definition */ public class HelloWorld extends Sprite{ /** *Again, for now, just create a public function with the same name as your class. Don't forget *the parenthesis, and curly braces. */ public function HelloWorld(){ //this is the only line of code that is actually "doing" something right now. //it sends a message to the output window trace("Hello, World!"); } } }