Debug online movies: quick solution

Piatok, Jún 17th, 2005

It was posted few minutes ago on FlashCoders mailinglist by Ivan Dembicki. Very nice and quick solution for debuging your movies. Even online movies.
Here is the code:

[as]
Key.addListener(this);
this.onKeyUp = function() {
if (Key.getCode() == Key.SPACE) {
System.setClipboard(_root.output);
_root.output = “”;
}
};
[/as]

Test data:

[as]
for (var i=0; i < 100; i++)
{
_root.output += "test " + random(100000) + "\n";
}

[/as]

Run movie, press SPACE, open NotePad, and paste text there.
Enjoy.


tagged under:

ABOUT THIS AUTHOR

6 Comments


  1. mL
    Visit Site
    Jún 17th, 2005

    Your for loop’s less than sign got substituted by Verdpress. Thx for the post!


  2. Franto
    Visit Site
    Jún 17th, 2005

    Thanks, i will try to fix it, but how? :) )


  3. Administrator
    Visit Site
    Jún 17th, 2005

    must be there space between


  4. timG
    Visit Site
    Jún 20th, 2005

    Great idea!
    It might be an idea to use a context menu handler to call the pasting function. That would free up the space bar without loosing any screen real-estate (or bandwidth).


  5. stef
    Visit Site
    Marec 19th, 2006

    nice


  6. nitesh
    Visit Site
    Jún 6th, 2007

    iam creating a flash site in (for example iam creating four page home,about contact,work first iam in home page when i click on contact page the material of home page go first and then the the contact page will come can u send me this solution {i want to send u a swf file but sorry
    i don’t know how to} hopin for reply

Sorry, comments for this entry are closed at this time.

Images is enhanced with WordPress Lightbox JS by Zeo