A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: kind of funny but not really

  1. #1
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404

    kind of funny but not really

    I found this funny in java you do System.out.println and you can do it in flash too if you try this

    var System={out:{println:trace}};

    System.out.println("hey");

    and in javascript you can be all like

    function trace(a){
    alert(a);
    }
    trace("hey");

    and in java you can do

    private void trace(String a) {
    System.out.println(a);
    }
    trace("hey");
    Last edited by AS3.0; 01-24-2017 at 01:48 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center