We Recommend

Essential ActionScript 3.0 Essential ActionScript 3.0
The book focuses on the core language and object-oriented programming, but also adds a deep look at the centerpiece of Flash Player's new API: display programming. Enjoy hundreds of brand new pages covering exciting new language features, such as the DOM-based event architecture, E4X, and namespaces--all brimming with real-world sample code.


Posted By

chrisaiv on 12/06/07


Tagged

asc


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

copyleft


ASC Template


Published in: ActionScript 3 


ASC Template

  1. application.onAppStart = function ( ) {
  2. trace("onAppStart> " + application.name + " is starting at " + new Date( ));
  3. };
  4.  
  5. application.onStatus = function (info) {
  6. trace("onStatus> info.level: " + info.level + ", info.code: " + info.code);
  7. trace("onStatus> info.description: " + info.description);
  8. trace("onStatus> info.details: " + info.details);
  9. };
  10.  
  11. application.onConnect = function (client, userName, password) {
  12. client.userName = userName;
  13. client.writeAccess = "/public";
  14. client.readAccess = "/";
  15. application.acceptConnection(client);
  16. trace("onConnect> client.ip: " + client.ip);
  17. trace("onConnect> client.agent: " + client.agent);
  18. trace("onConnect> client.referrer: " + client.referrer);
  19. trace("onConnect> client.protocol: " + client.protocol);
  20. };
  21.  
  22. application.onDisconnect = function (client) {
  23. trace("onDisconnect> client.userName: " + client.userName)
  24. trace("onDisconnect> disconnecting at: " + new Date( ));
  25. };
  26.  
  27. application.onAppStop = function (info) {
  28. trace("onAppStop> application.name: " + application.name);
  29. trace("onAppStop> stopping at " + new Date( ));
  30. trace("onAppStop> info.level: " + info.level);
  31. trace("onAppStop> info.code: " + info.code);
  32. trace("onAppStop> info.description: " + info.description);
  33. };

Report this snippet 

You need to login to post a comment.