Debug online movies: quick solution
Friday, June 17th, 2005It 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]
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";
}
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:





6 Comments
mL
• Visit Site
June 17th, 2005
Your for loop’s less than sign got substituted by Verdpress. Thx for the post!
Franto
• Visit Site
June 17th, 2005
Thanks, i will try to fix it, but how? :))
Administrator
• Visit Site
June 17th, 2005
must be there space between
timG
• Visit Site
June 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).
stef
• Visit Site
March 19th, 2006
nice
nitesh
• Visit Site
June 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
Live Preview
Leave a comment