Output Window Query
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
ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 10-15-2005, 09:38 AM
View Complete Forum Thread with Replies
Sponsored Links:
[F8] Can I Trace Output On The Stage Instead Of In The Output Window?
Hi - I'm trying to create a function that divides an inputted number by everything from 1 up to that number. (The aim is to create a .swf movie that will give you the factors of any number you put in.)
I can get the outputs in the output window that I want, but I need now to get them somewhere on the stage itself in a dynamic text box.
This is the script that gives me the correct outputs:
(I have a button named 'ok2' and the input textField is 'Input2')
code:
ok2.onPress = function():Void {
var nInputnumber:String = Input2.text;
for (i=1; i<=Number(nInputnumber); i++) {
var nOutfactors:Array = [];
nOutfactors[i] = (Number(nInputnumber)/i);
trace(nOutfactors[i]);
}
};
What do I need to do to get these to appear onStage instead of in the output panel?
I have tried myDynamictexfield.text = nOutfactors[i], but it will only show the last value for it, not all the ones inbetween.
HELP!!!
Sorry if this is a stupid question - it's the first one i've posted. It's just that if I can't figure this out soon, I may have to throw my laptop at a wall....
View Replies !
View Related
Output Window Not Displaying Output
Ok, this is a wierd one.
All of a sudden the output window is not displaying any of my output.For instance, i can have a simple movie, 1 frame, with the action:
trace("hi");
when I test it, the output window pops up, but nothing is in it.
Anyone ever seen this before?
-adam
View Replies !
View Related
MX Output Window DOA?
Friends,
My output window isn't outputting?
//Insert personal problem joke here.
All of my .fla files work just fine but one. Even when I force a trace command the output window just stares at me. Nothing. If I create a new file it works fine. Go back to the old one, nada.
Is there a way to disable output?
Thanks
-Layne
View Replies !
View Related
How To Control My Output Window
Hi,
How can i control the size of my output flash window.
To define the window size by some variable and to to change during the movie if required.
For example : double click on flash exe opens a movie with full screen window on customers side.
Thank you.
Eldar52
View Replies !
View Related
Modify Output Window
hi,
I want to modify the output window(one we get using trace) to
include an "ok" button such that when the user presses the "ok"
button the control returns to start!!!can anyone suggest me how to
do this!!!!
thx in advance,
Ricky.
View Replies !
View Related
Output Window In MX 2004
I seldom use the output window in Flash MX 2004 but even though I uncheck it in Window...Development Panels, next time I preview the movie it returns, right in the way of my preview. How do ya keep it unchecked by default?
I also do not always need the report.txt files generated at publish.
Please advise.
-DK
View Replies !
View Related
Error In Output Window
Hi,
I am working on children educational game actionscript 2. When I export swf it shows error in output window:
The class or interface 'MenuLis' could not be loaded.
why this error is coming?
Thanks in advance!
View Replies !
View Related
I Broke My Output Window
I'm programming in AS 2.0 and everything works fine... I have a script that does heavy calculations and convertions, while the script runs I get multiple errors that the flash movie is causing the computerizer to run slow, if I want to abort the movie... I say 'no', the script will run for several minutes and at the end it displays what I want it to do...
Because I hadn't a progress bar, I didn't knew how long it was going to take, so I tought of having a _root.progress variable to indicate it... Displaying it on the frame had no use because the frame was displayed after the script...So I put it into a trace() command... The output window showed up everytime I had the error, but no text... Strange...
So I put
ActionScript Code:
trace("Is my trace command broke?!...");
on the first frame, before the script, the output window showed up but no text...
And there's more to it, my flash movie, output window and actionscript editor are all displayed behind my tools, library, etc. So if I maximise my flash movie, I can't see the red cross to close it... Is there any way to reset my interface?!... I tried window>workspace but it didn't work...
Here's the script, it's on the timeline frame 2, and I'm demn pround on it:
ActionScript Code:
////////////////////////////////////////
// Stepmania/milliseconds convertion //
// //
// Script written by CX gamer //
////////////////////////////////////////
// This is the stepfile, as string, put in a commah in teh beginning and replace the ; on
// the end with another commah, remove all enters and comments insode so you would have
// one continuous line of bits seperated by commas...
stepfile = "..."; // This is a very very long string of 0s, 1s, 2s and 3s, I edited it out as it does nothing about the case
BMP = 200.000;
offset = -0.291;
stopnum = 0;
stoppos = new Array();
stoptim = new Array();
// Counts the number of 'char' that are present within 'string'
function countChar(string, char) {
count = 0;
for (i=0; i<=length(string); i++) {
if (string.charAt(i) == char) {
count++;
}
}
return count;
}
// Returns the 'num'th position of 'char' in 'string'
function charPos(string, char, num) {
count = 0;
for (i=0; i<=length(string); i++) {
if (string.charAt(i) == char) {
count++;
}
if (count == num) {
return i;
}
}
}
// Returns a slice from 'start' to 'end' in 'string'
function split(string, start, end) {
output = new String();
for (i=start; i<=end; i++) {
output += string.charAt(i);
}
return output;
}
array = new String();
type = new String();
// Highly compressed and complicate timing calculator starts here,
// don't even think about figuring it out... :)
// Srsly, you will get a message that will tell you to abort the script because it takes
// so long... Just continue, thrust me...
for (a=1; a<=(countChar(stepfile, ",")-1); a++) {
trace(Math.round(a/(countChar(stepfile, ",")-1)*100) + "%");
comp = split(stepfile, charPos(stepfile, ",", a)+1, charPos(stepfile, ",", a+1)-1);
for (b=0; b<=(length(comp)-4); b += 4) {
if (comp.charAt(b+0) == 1 || comp.charAt(b+1) == 1 || comp.charAt(b+2) == 1 || comp.charAt(b+3) == 1) {
prevT = 240/BMP*(a-1)-offset;
t = 240*b/BMP/length(comp)+prevT;
for (c=0; c<stopnum; c++) {// C++ heh :)
if (t>stoppos[c]*60/BMP-offset) {
t += stoptim[c];// Yeehaa, king of the hill!
}
}
array += [t]+",";
if (comp.charAt(b+0) == 1 && comp.charAt(b+1) == 1 && comp.charAt(b+2) == 1 && comp.charAt(b+3) == 1) {
type += "12,";
} else if (comp.charAt(b+0) == 1 && comp.charAt(b+1) == 1 && comp.charAt(b+2) == 1) {
type += "11,";
} else if (comp.charAt(b+0) == 1 && comp.charAt(b+1) == 1 && comp.charAt(b+3) == 1) {
type += "10,";
} else if (comp.charAt(b+1) == 1 && comp.charAt(b+2) == 1 && comp.charAt(b+3) == 1) {
type += "9,";
} else if (comp.charAt(b+0) == 1 && comp.charAt(b+2) == 1 && comp.charAt(b+3) == 1) {
type += "8,";
} else if ((comp.charAt(b+0) == 1 && comp.charAt(b+1) == 1) || (comp.charAt(b+0) == 1 && comp.charAt(b+2) == 1)) {
type += "4,";
} else if ((comp.charAt(b+2) == 1 && comp.charAt(b+3) == 1) || (comp.charAt(b+1) == 1 && comp.charAt(b+3) == 1)) {
type += "7,";
} else if (comp.charAt(b+1) == 1 && comp.charAt(b+2) == 1) {
type += "6,";
} else if (comp.charAt(b+0) == 1 && comp.charAt(b+3) == 1) {
type += "5,";
} else if (comp.charAt(b+0) == 1) {
type += "0,";
} else if (comp.charAt(b+1) == 1) {
type += "1,";
} else if (comp.charAt(b+2) == 1) {
type += "2,";
} else if (comp.charAt(b+3) == 1) {
type += "3,";
}
}
}
}
Please note that this script works as it should, only the trace command is broke...
Thanks in advance...
CX
View Replies !
View Related
Output Window Not Working
Has anyone else seen this bug? I am unable to use the trace() method as I get no output window. Even the simplest code yields nothing. For instance, this simple bit of code associated with a button should open the output window with the message and yet I get nothing:
on (release) {
trace("got it");
}
I have contacted Macromedia about this apparent bug and have not gotten any useful answer yet. Working without trace() can be difficult at times. Any help is appreciated.
mattn
View Replies !
View Related
Output Window Weirdness
Hey Guys
Has anyone ever had this problem. At first it seems small but now it's just annoying. I am working on a computer with 2 monitors. When ever I open the output window It seems to horizantally scale to infinity. Which means I can't access the menu on the right hand side of the window.
Has anyone ever encountered this and fixed it? I have tried the standard stuff. Quit and Restart Flash, Drag and Drag the window for 5 minutes, tracing a comment with the window closed so Flash opens it. Still I get the output window of inifinty.
If anyone has any suggestions Please let me know.
Thanks
Nicidemus
View Replies !
View Related
Can't Get Output Window To Show
I've got trace statements inside a class file like (actually, i'll just post a super slimmed version of my class's code):
ActionScript Code:
class panel1 extends mx.screens.Form {
private var panel1_btn:mx.controls.Button;
function panel1() {
this.addEventListener("draw",this);
}
private function handleEvent(evtObj:Object): Void {
if (evtObj.type == "draw") {
panelLoad();
}
}
private function panelLoad(): Void {
panel1_btn.label = "Loaded";
trace("Loaded");
}
}
Now i absolutely, positively know that the class is wired up to the screen properly and that the class code's code works (because the button's label indeed changes to "Loaded" instead of the "Continue" its set as in the designer)
So anyways, i press F2, i see no output window, i go into "Window" / "Development Panels" and "Output Window" most indeed is checked off as being visible, but my desktop shows no 'trace' of it (yeah, bad joke)
Any ideas?
View Replies !
View Related
Output Window Settings?
I have just moved over to use flash 8 today and am having trouble with my variables that appear in the output window. I have a input fields called _root.lightswide and when I trace this variable after there has been a number inputted it comes up as this
_root.lightsWide<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Times New Roman" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">5</FONT></P></TEXTFORMAT>
rather than just the number inputted, which is what I would expect. Do I need to change my settings somewhere?? any ideas what I am doing wrong?
thanks
View Replies !
View Related
Is My Output Window Backwards?
did i do something weird with my Output window?
i am tracking the mouse y value, sending it to Output via "trace."
but i see the cursor of the Output window at the top of the window, not at bottom - which means i am seeing old values, not the most current one. of course, if i manually try to scroll down to see the most recent y value, it's coming in so fast that the curosr inches up to the top anyway. is there a setting to reverse this?
thanks,
aya.
View Replies !
View Related
Output Window Problems
When I compile now, my Output Window doesn't want to show any trace statements or Run-Time Errors. This totally came out of left field, and I never touched the preferences. I have been using textfields for the past week and they just don't do. It would be awesome if there was anybody that knew what the heck happened.
View Replies !
View Related
What Does Update() Mean In The Output Window? Please Help
Does anyone know what it means when you're exporting a movie and in the Output window it
reads Update()?
I can't seem to find any documentation on this error type
It seems to occur when I export my FLASH MX 2004 movie from my hard rive as well as remotely from the website itself. The SWF eventually runs, but I keep getting the update() message from the output window every time I click a button in a subnavigational menu which invariably loads another flash movie within the main movie. Moreover, every subsequent click on a different button produces additional update() <more than 1 in the output box> errors. The files run fine (without the Update() error) on the souce disk I was given but when I copy the files from CD to hard drive and then run them,
the movies run but with the Update() error present. However, when I upload them to the site movies never load within the main movie thus rendering the sub-navigation movies fruitless
Thanks in advance for your assistance.
View Replies !
View Related
Message In Output Window...
does anybody knows what this message in the Output window means:
_level0.menu.1.theItem
action=movie1
_root.currMovie=movie1
I have run the menu from
http://www.kirupa.com/forum/showpost...&postcount=409
when trying to load movie1.swf I get this in output window?
thanks
View Replies !
View Related
Output Window Question
Somehow I turned the ouput window on so it is on everytime I hit ctrl+enter, and not just for errors. It's showing the size of the graphics and movieclips which i set it to do on purpose, but now it's getting on my nerves and i can't remember how to turn it off.
can anyone tell me how to turn it off so it only pops up when there is an error?
Thank you
View Replies !
View Related
What Does Update() Mean In The Output Window? Please Help
Does anyone know what it means when you're exporting a movie and in the Output window it
reads Update()?
I can't seem to find any documentation on this error type
It seems to occur when I export my FLASH MX 2004 movie from my hard rive as well as remotely from the website itself. The SWF eventually runs, but I keep getting the update() message from the output window every time I click a button in a subnavigational menu which invariably loads another flash movie within the main movie. Moreover, every subsequent click on a different button produces additional update() <more than 1 in the output box> errors. The files run fine (without the Update() error) on the souce disk I was given but when I copy the files from CD to hard drive and then run them,
the movies run but with the Update() error present. However, when I upload them to the site movies never load within the main movie thus rendering the sub-navigation movies fruitless
Thanks in advance for your assistance.
View Replies !
View Related
Nothing To Display On Output Window
hi, i just wonder how come there's nothing to be displayed on output window? i'm using the key object function to test what'll come out for the output:
Quote:
myListener=new Object ();
myListener.onKeyDown = function () {
trace(Key.getAscii());
trace("key pressed");
};
myListener.onKeyUp = function () {
trace("key released);
};
Key.addListener(myListener);
View Replies !
View Related
Sliding Window Query
Hi,
Need some help on the subject above. Got stuck between Frame 10 and 11. Need advice on how to make the sliding window to 'open' (in frame 11). Got the 'close' part done already (frame 1-10).
A good example of what I mean is http://www.fox.com/oc/home.htm
Attached is the .fla file (Flash MX). Pls help. Thanks in advance.
View Replies !
View Related
Output Window On Main Timeline
I was wondering if anyone could tell me how i could get the output window to desplay its contence on my main timeline. Im not even sure wether this can be done at all but i was wanting a part of my flash site to read out in a window what the flash movie was doing. A kind of console window i guess.
Any help would be wicked.
View Replies !
View Related
Output Window On Main Timeline
Can someone tell me how, if its possible at all, i can get the output window to desplay its contents on the main stage. Something like a scrolling read out from the output window into a dynamic text frame on the main stage. Thankyou
View Replies !
View Related
PHP Output In Flash Text Window
Hi,
I have searched the net and forum but was unable to find s "simple" solution to a problem.
Situation:
I have a php file which reads and displays data from database.
It just puts out the data with echo string.
PHP (novice.php):
PHP Code:
<?
require("novice/newsadmin-functions.php");
print_news(5);
?>
This calls the function which displays last 5 news.
So basicaly how would I include that output into Flash?
Like in simple text box (with scroll bars) or anykind?
Thank you for your help!
Regards,
Futzy
View Replies !
View Related
Html Code In The Output Window Why? <:(
Hello there!
Here's the deal,
a) ive got a textfield instance on the stage that is defined as a variable with the name "namef".
b) Ive got a global variable in my movie declared in the first frame as _global.name1 = "none";
c) Next ive got a button instance on stage that has the following code added to it:
on (release) {
name1 = namef;
trace(name1);
}
pretty straight forward so far right?
The main problem is that when i run the movie and add a name in the "namef" textfield and press the button to pass the input text of the textfiled to the variable name1, the output window displays the name ive entered in html code.
For example:
Lets say the name i entered is "Mike". The output window traces:
TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="16" COLOR="#000063" LETTERSPACING="0" KERNING="0">Mike</FONT></P></TEXTFORMAT>
why doesnt it just trace "Mike" as a string? What am i doing wrong?
Thanx!
Vasos
View Replies !
View Related
Variable Names Gone In Output Window?
Hi there,
Recently we've updated from flash 5 to flash 8.
Normaly when I create a variable or load a variable, I can see the variable name and value in the output window.
With Flash 8 my variable names are gone...
I only see the values.
This is a real problem, because when I use two variables with, for example, 1 as a value, it returns two times 1 in my output window, but no variable name...
Probably it's a preference, but I don't find the solution.
I've looked in this forum, but it seem no one has this problem.
Can anyone help me out.
Thanks.
Vincent
View Replies !
View Related
Chopped Text In Output Window
hey peoples, i just got myself an ibook and i'm running flash mx onnit. for some very strange reason, all traces output only the top half of each line. weird. resizing the window and highliting the text and closing and opening don't help.
anyone have any clue?
thx
-depth
View Replies !
View Related
Flash Output Window Broken?
Hi all,
I recently got a newer version of flash (flash 8 pro), everything was working fine for weeks, then now for no reason, it appears my 'Output Window' is broken. Ive tried all the basic tests, trace("howdy"); etc... nothing works, it wont even bring me actionscript errors anymore. Could it be some setting that ive overlooked? or has my installation dicided to tear itself apart?
Omit trace is off, ive gone through every menu screen i can find. Still nothing.... Hopefully you guys know a little more than me...
website design
View Replies !
View Related
Output Of .cgi Script In New Browser Window Of Fixed Size
I'm trying to get the output from a .cgi script to appear in a new browser window of a fixed size. I can get the size window I want using
on(release){
getURL("javascript:window.open ('http://www.thesite.com/showme.cgi?thestuff', 'width=400', 'height=200')","","POST");
}
but not with the output I'm after (as if the variables aren't being posted). I know everything else is working fine because I get the output I'm after using
on(release){
getURL("http://www.thesite.com/showme.cgi?thestuff","_blank","POST");
}
Any suggestions anyone?
View Replies !
View Related
Error Messages In Output Window When Unloading Movies From A Target MC
Hi, when I load a file called "services.swf into a movie clip on the main timeline, and then later unload the same .swf from the same movie clip, it works fine but I get an error message in the flash preview output window.
Is this normal?
Sure my code is right: (guess it must be if it loads and unloads ok?)
on (press) {
loadMovie ("services.swf", _root.myclip);
}
then when i go to unload it:
on (press) {
unloadMovie (_root.myclip);
}
anything wrong with that? I mean its not the worst thing in the world it seems to work, just concerned about these error messages.
View Replies !
View Related
[F8] Createing New Movie Clips From An Array Showing Up In The Output Window?
I have an array of names, i want to dynamically create one instance of a movie clip for each name in the array, the movieclip is a simple rectangle box. Also once the instance is created i want the name from the array to be displayed inside the rectangle. I understand I have to make a movieclip on this object, have a dynamic text instance inside it named something like txt_name and link the movieclip in the library to actionscript with a name like name_mc (which I will use to duplicate it, but I don't know how to get this into my scene and array it beside itself. I know it's something like createNewMovieClip = new namemc (); but I can't find any exact tutorials on how to do this.
I know the names show up in my traces from my for loop, but I can't seem to duplicate the mc and I can't get the names on the dynamic text. Basically having trouble with transfering from the output window to the swf. Please help.
Also for my 2nd part of this, let's say I want to convert the names to #'s in the Dynamic text, how do I do this? Any help would be soooooooo appreciated!
View Replies !
View Related
Reading Xml Output Form Php Output
Is it possible to read xml output instead from a xml file?
The xml will be output from a xml file which generate from a database.
so if you do
var myxml:XML=new XML();
myxml.load("http://xxx.mm/product.xml");
But if i do
myxml.load("http://xxx.mm/product.php");
where the php will output the a xml data. will this work? Does it work the same??
Can someone point to the some code sample on how to do this?
I Search the web but can't find much answer on this one...
Thanks
View Replies !
View Related
Redirect Output Panel Output
Hello all:
Anyone know of a way to redirect errors thrown by Flash in the Output Panel to somewhere else (i.e. a text field). Reason being I am conversing with client and we cannot seem to pinpoint the error occuring, it works on my end but not theirs, and obviously they are running blind without any sort of errors being thrown. So if anyone knows of any other way to accomplish what I'm after that would be great.
Thanks,
John
View Replies !
View Related
Output Says.....
Symbol=m00, Layer=Layer 2, Frame=1: Line 1: Statement must appear within on handler
loadMovieNum("12.swf", 2);
What does it means by 'must appear within the handler'. I assigned the above actionscript to a button on Layer 1. What am I missing?
View Replies !
View Related
Where Is My Output
I'm pretty new to Flash so I'm watching some video learning stuff on "Action Script".
i have "Flash MX 2004" on a Mac
my problem is that when i type a simple script like
trace ("test text");
then test movie, i get no output in the output palette.
i checked the syntax and every this seems fine but no output is being displayed. just a blank output palette. is there a setting or something that I'm missing?
Has anyone els had this problem or maybe my trace statement is wrong?
Help
View Replies !
View Related
Flv Output
I am still a bit confused...
I need to find some software that will output to .flv (I assume). My whole objective is to create flash video files out of existing media (digital and analog, many formats) which can be served via streaming video in a flash browser/viewer that is being designed for me.
Will a program like Sorenson Squeeze for Flash MX run independantly of Flash to create these files, or will I need to purchase Flash itself. It seems as though "for Flash MX" would imply that this program is a plug-in....
I will not need to do any editing, etc., simply convert and upload. What do you guys recommend?
thanks!
View Replies !
View Related
|