Flash / Flex / ActionScript/Language/Comments
Версия от 09:19, 26 мая 2010; (обсуждение)
This is a multiline comment
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
/*
No one here
but us programmers
*/
}
}
}
This is a single-line comment
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
// No one here but us programmers
}
}
}
XML Comments
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var xml:XML = <people>
<!--A list of developers-->
<person name=" Corey"/>
<person name=" Brian"/>
<person name=" Mark"/>
</people>;
trace(xml);
}
}
}