PDA

View Full Version : Output window query


sjvilla79
10-15-2005, 09:38 AM
Is it possible to clear the Output window in Flash programmatically (MX 2004)? I'm guessing perhaps via an internal command or something. I'm not familiar with DOM scripting in Flash though.

Cheers,

Scott

Paul Ferrie
10-15-2005, 02:17 PM
I havn't a clue what you mean. The only thing i can think of that your talking about is the output window when testing swf's from within flash. If this is the case just right click on the output window and select clear.

Surely this is not the case.

sjvilla79
10-15-2005, 02:47 PM
Yes, this is the case. I just wanted to do it via Flash's DOM to save a bit of time while testing my application. You see sometimes when the Output window gets full my machine starts to slow. It'd be nice to be able to clear it (the Output window) without having to use a mouse (e.g. via an internal command). Is that clear enough?

Paul Ferrie
10-15-2005, 03:04 PM
Oh right yes i see...

What is it thats being outputed in order for it to be slowing down your computer?

Can you not filter what is to be output?

sjvilla79
10-15-2005, 03:24 PM
It's a large game that I've built and I'm outputting many trace statements throughout the course of a user's mission. Sure, I could just filter out all my trace statements and run the game completely without issues although that would defeat the purpose of having them in there in the first place. Maybe the JSFL guys could shed some light on this. I mean if it's possible for example.

Edit: Found this (http://dynamicflash.com/jsfl/#OutputPanel). Not sure how it might help me though.

Xeef
10-15-2005, 05:15 PM
never did anything whit jsfl so there coud by beter ways


[OutPutClear.SWF]

var receiving_lc:LocalConnection = new LocalConnection();
receiving_lc.Clear = function() {
MMExecute("fl.outputPanel.clear()");
};
receiving_lc.connect("Out_Clear");

Publish this and put it :

E:\Documents and Settings\YOUR_USER_NAME\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\WindowSWF\

RESTART Flash !!!

open a new file

var sending_lc:LocalConnection = new LocalConnection();
onEnterFrame = function () {
trace("Xeef");
if (!random(10)) {
sending_lc.send("Out_Clear", "Clear");
}

};

goto

Window/Other Panels/OutPutClear.SWF

start the new file