Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




? Write Trace To Show Value Of Var's



hello

i am importing data from a text file
as a variable
it is not for the user to see

how can i write a trace to show me the value
of that var?



FlashKit > Flash Help > Flash Newbies
Posted on: 02-13-2005, 01:43 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Write A Fucntion To Show The Text
How to use button to write a function to show the text in the textbox inside a movieclip?

I mean the button is on the stage and the textbox is inside the movieclip. When the button pressed, the text will show on that textbox.

Any ideas?

I try to use this
on(press){
_root.mc.Var1="Hello";
}

But that is not function, right?

Event.target.data Won't Show In HtmlText Field Although It Does As "trace"
Something a little weird is happening to me. I'm pulling some data from php and flash actually receives it in this form

Code:
trace("comments: " + event.target.data["comments"]);
outputs:
comments: <img src='img.jpg' align='left'/> by Harissa<br><br>A wide range of possibilities. Feel the freedom in your hands. Gift of imagination and creativity.<br><br>

However, this does not show up in my htmlText textfield. If I take this piece of code and paste it as my htmlText = "" it does output everything properly, including the image. But as soon as I try this:

Code:
comment_txt.htmlText = event.target.data["comments"];
I get nothing in there.

Thanks for your help.

[flash 8]Adapting 'Auto Trace Mouse' Script To Perfom 'Atuo Trace Object'
Hello everyone..

I am new to flash and I am hoping the good people of this forum will help.
I have this sript for auto tracing a mouse position (got from this site) but i would like intead of trcing the mouse...to get it to trace a random moving object from another script!

mouse script:

createEmptyMovieClip("Line",1);
Line.lineStyle(1,0x000000,100);
onMouseDown = function ()
{
Line.moveTo(_xmouse, _ymouse);
onMouseMove = function ()
{ Line.lineTo(_xmouse, _ymouse);}
}

onMouseUp=function()
{
onMouseMove=null;
}

Random moving object:

loops = 0;
_root.target_x = Math.random()*450;
_root.target_y = Math.random()*300;
_root.xdiv = (_root.target_x-_root.circle._x)/20;
_root.ydiv = (_root.target_y-_root.circle._y)/20;
loops++;
_root.circle._x += _root.xdiv;
_root.circle._y += _root.ydiv;
loops++;
_root.circle._x += _root.xdiv;
_root.circle._y += _root.ydiv;
if (loops<20) {
gotoAndPlay(2);
} else {
gotoAndPlay(1);
}

I guess there is a way I can do this or it can be done...? Help will be much appreciated.

Thankz

Flash Can Write To Txt? [FLfile.write]? :confused:
Okay, a while ago I started a project for one computer. I needed a little database to store information. When I started out I was informed that flash cannot write to a txt file and that I would have to use php to do my bidding. Well.... I just found in F8 the FLfile.write command that says otherwise. I haven't tested it, but will. So what is the deal with this? What advantages are there to flash vs. php with writing to a txt file?


Code:
var URI = "file:///c|/temp/mydata.txt";
if (FLfile.write(URI, "xxx")) {
alert("Wrote xxx to " + URI);
}
if (FLfile.write(URI, "aaa", "append")) {
alert("Appended aaa to " + fileURI);
}

Flash Uses XML File To Show Pics - Can I Randomize The Show Order?
I'm playing around with a flash template at the moment which uses an external XML file to display pictures in a flash frame. The file:


Code:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
- <images>
- <pic>
<image>home/jpg/image6.jpg</image>
<myURL>http://www.yahoo.com</myURL>
</pic>
- <pic>
<image>home/jpg/image5.jpg</image>
<myURL>http://www.google.com</myURL>
</pic>
- <pic>
<image>home/jpg/image1.jpg</image>
<myURL>http://www.lycos.com</myURL>
</pic>
</images>
So in this case the site displays image6, then image5, then image1 - Can I do something to the XML to make them display in a random order instead of the list order?

Thanks

Why Does Slide Show Image Dispears After 3 Minutes (When Show Is Stopped)
I made a slide show with navigation buttons, but when the slide show is stopped for more then 3 minutes; the image just disappears. Here is the code I am using:

First Actionscript


Code:
loadMovie(""+photo1+"","mc1");
_root.mc1._xscale = 80;
_root.mc1._yscale = 70;
_root.mc1._alpha = 0;
Second Actionscript


Code:
var speed = 5

onEnterFrame = function() {
_root.mc1._alpha += speed
}

Then I tried this; the image did not disappear this way, but the transitional effect did not work.

First Actionscript


Code:
_root.loadMovie(""+photo1+"","mc1");
_root.mc1._xscale = 80;
_root.mc1._yscale = 70;
_root.mc1._alpha = 0;
Second Actionscript


Code:
var speed = 5

onEnterFrame = function() {
_root.mc1._alpha += speed
}
What do I need to do, too make sure image continues to display?

PS: I am sending query string from HTML to Flash to display variables (ie. movie.swf?photo1=mypic.JPG)

Show All Mode Doesn't Show The Right Objects
Hello!
I have an urgent problem. If anyone can help me I would realy apreciate it.

Please take a look at: http://www.alphadesign.3x.ro/menu.html
And then at: http://www.alphadesign.3x.ro/oct3-fixes.jpg

The problems highlighted in the picture can only be seen in "Show All Mode". If you zoom in the menu, those issues dissapear.

Can anyone please help me? It is very urgent.

Thank you!

How To Show/not Show Layer In Animation
Hi all I have a .fla with all the text on one layer. What I want to be able to do is offer users the chance to see the animation with or with out text ie give them an option (a check box I imagine) to turn it on or off.

Maybe I will need to use sessions or something? How do I do this?

Thanks for any pointers

Slide Show Image Dispears 3 Minutes After Slide Show Is Stopped - Why?
I have created a slide show with a stop button. The buttons stops; but after about 3 minutes of being stopped, the image just disappears and all I see is the movie's background. Does anyone know why this is occuring? If so, is there a quick fix for this issue?

PS: I used one of the goToAndPlay Key Frame events built right into my software; I assume it was this (to make movie stop):


Code:
on(release) {
stop();
}

Trace
Do anyone know why "trace" action cannot be used in the standalone version like *.swf or *.exe or *.html?

thx for any help...

Cant Trace?
Hello, im trying to edit our company website and the guy who made it was fired and i have to make some changes to it. I need to use the trace command but cant for some reason, it wont trace anything!!!! Any idea why?? Any way i can re-enable it? Thanks a ton if you know.

-Ely

What Exactly Is Trace?
what exactly is the trace function and what does it do? The actionscript dictionary isn't much help.

Trace Cmd?
Got this from one of you guys. I'm tracing a in MC instance to see if anything's loading into it. Last night it worked great, today it's looping (just keeps repeating the output). Where or how did I make it do this?



Code:
onClipEvent (enterFrame) {
total = this.getBytesTotal();
loaded = this.getBytesLoaded();
trace("TOTAL: "+total+" bytes");
trace("LOADED: "+loaded+" bytes");
}


What would make it never end output?

Can I Trace *all*
Is there any way of having a trigger call the list variables command?
I need a full readout of everything at a very specific point, and the only way I can think is some sort of trace function. Any ideas?

much appreciated

The Trace
I heard about ppl doing trace bitmaps. How do you do this? I was told to do so to optimise my flash but I have no idea what it does or how to do it.

Trace URL
Hello, how can I make a trace give me the URL I try to ger with getURL? I´ve got this
on (press) {
getURL("javascript:void(window.open('foto_cocheras 1.htm','fotokox1','toolbar=no,location=no,status=n o,menubar=no, scrollbars=yes,resizable=yes,width=800,height=600, top=75,left=75 '))", "_self");

}


in the button and I want the trace to tell me if it´s actually doing it. Thank you.

Trace
is there a way to have a movieclip move around and leave a trail behind it. like drawing with a pencil.

thanks for your time,
j-son

Trace ?
hello yesterday i received an error from flash when i was "tracing"some actionscript .something about "256" and this is looping .i had the error saved in a txt file but someone deleted it so i cannot remeber what it was .so now today i wanted to trace some actionscript and now it wont do anything
now it doesnt trace anymore .anyone else had this happen to them ,?
thanks for any suggestions

Trace?
I keep seeing trace() ....what does it do?

URL Trace
I am building navigation (FLASH MX) for a Java CMS tool that is not finished yet. The page URL's will be supplied by the CMS tool. Is there a way to write an external file (XML or PHP) where you can trace the URL from the external file when you click the appropriate button (Flash Nav)? When the navigation is published, I just want to change the URL in the external file not in Flash.

Hope this makes sense. Thanks for your help

Trace
I'm having problems with the trace action in MX 2004 as in it doesn't seem to work at all. Are there some settings to switch it on and off apart from the omit the trace actions checkbox in the publish settings. I'm trying to load a text doc with multiple variables in and then split it down into an array to load data into a form & it's proving to be near on impossible without the trace action.

Using TRACE
onClipEvent (load) {
i_counter = 0;
}

onClipEvent (enterFrame) {
trace("a_pos[" + i_counter++ + "] = [" + _x + "," + _y + "]");
}

i want to find the coordinates of the animation i did in a movie clip... tho i cant find it... can anyone tell me how to use this actionscript? do i insert any other numbers in it?

Trace()
Is there a way to have the window, trace() opens, close with a button?

[F8] Using Trace();
Hi I've made a little scroller that works, for the most part. I'm stuck on some code though. I'm trying to use the trace() to insert a numeric value in a dynamic textfield. As of yet, I haven't been able to link the trace to the dynamic textfield, any ideas?

//Code:
var dTx:Number = new Number();
var rVal:Number = new Number();

awr.onMouseDown = function() {
startDrag(this, true, -143, -16, 143, -16);
}
awr.onMouseUp = function() {
stopDrag();
if(awr._x >= -6 && awr._x <= 8.6) { // 0
awr._x = 0;
dTx = 0;
}
else if(awr._x >= -48.4 && awr._x <= -34.5) { // -3
awr._x = -39;
dTx = -3;
}
else if(awr._x >= -34.4 && awr._x <= -19.3) { // -2
awr._x = -24.5;
dTx = -2;
}
else if(awr._x >= -19.2 && awr._x <= -6.1) { // -1
awr._x = -10;
dTx = -1;
}
else if(awr._x >= 8.7 && awr._x <= 21.2) { // 1
awr._x = 15;
dTx = 1;
}
else if(awr._x >= 21.3 && awr._x <= 35) { // 2
awr._x = 29;
dTx = 2;
}
else if(awr._x >= 35.1 && awr._x <= 49.1) { // 3
awr._x = 43;
dTx = 3;
}
//trace(awr._x);
trace(dTx);
rVal = dTx;
}

I've also tried:
if(awr.MouseUp == true) {
rVal = dTx;
}

[F8] Trace A Var When It Changes?
Hi,
I am trying to help someone who has a problem. Their movie is big, very big. There is a var that gets set on the _root named f. It gets set from many places. I would like to trace it.

I was going to put a trace in a onEnterFrame but that would crank out values in my output window.

Is there a way to trace f just when it changes?
thanks
mark

Trace()
Can someone explain to me why my trace output is always scrolled up.

If I were to trace


enterFrame = function(){
trace(a)
a+=1
}



I wouldn't see 'a' getting larger. I would see the first few entries and I would have to scroll the output to see the rest.

[F8] Trace
Hi,
I've done a small app that shows all traces in a movie...
Is it possible to display even code lines and object names and something more?

thanx,
Adam

Trace (_x);
Is it possible to trace the x & y value of a movie clip?

thought it would be something like
trace (_x);

Trace() ?
I've been doing a tower defence game but I've noticed one day that when I tried to put a trace() action to debug, it didn't work. creating dynamic text fields just to do the job is quite boring and I'm wondering if it had to do with that I published the .fla file. Even then I continued to use Test Movie to test the game. All help would be greatly appreciated.

Where To Put Trace()?
With the script below, I have been getting the following error:
Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
at Error$/throwError()
at flash.net::URLVariables/decode()
at flash.net::URLVariables()
at flash.net::URLLoader/onComplete()

Then, I have tried tracing e.target.data before passing it to URLVariables constructor... But I'm not sure where to place it!

Any help? THANK YOU


ActionScript Code:
package
{
    import flash.display.MovieClip;
    import flash.text.TextField;
    import flash.utils.Timer;
   
    import flash.events.Event;
    import flash.events.MouseEvent;
    import flash.events.TimerEvent;
    import flash.events.IEventDispatcher;
   
    import flash.net.URLLoader;
    import flash.net.URLVariables;
    import flash.net.URLRequest;
    import flash.net.URLRequestMethod;
    import flash.net.URLLoaderDataFormat;
    import flash.events.SecurityErrorEvent;
    import flash.events.IOErrorEvent;
   
    public class Main extends MovieClip
    {
        private var angle:Number=Math.PI/2;
       
        private var timer:Timer;
       
        private var loader:URLLoader;
       
        private const url:String='newsletter.php';
        private var _Name:String;
        private var _EMail:String;
       
        private var action:String;
       
        public function Main()
        {
            init();
            closebutton.addEventListener(MouseEvent.CLICK, unloadFunction);
        }
       
        public function init():void
        {
            if (stage) { // <-- if the stage reference is not null
                        stage.frameRate = 31;
                    }
           
            letter_mc.alpha=.7;
            letter_mc.addEventListener(Event.ENTER_FRAME,turnLetter);
           
            email_mc.field_txt.background=name_mc.field_txt.background=false;
            email_mc.field_txt.backgroundColor=name_mc.field_txt.backgroundColor=0x999999;
            email_mc.field_txt.border=name_mc.field_txt.border=true;
            email_mc.field_txt.borderColor=name_mc.field_txt.borderColor=0x333333;
           
            join_btn.label='JOIN';
            join_btn.addEventListener(MouseEvent.MOUSE_DOWN,go);
            delete_btn.label='DELETE';
            delete_btn.addEventListener(MouseEvent.MOUSE_DOWN,go);
        }
       
        private function go(evt:MouseEvent):void
        {
            _EMail=email_mc.field_txt.text;
            _Name=name_mc.field_txt.text;
           
            if(EmailChecker.checkEMail(_EMail))
            {
                if(_Name!="")
                {
                    if(_Name.length>=4)
                    {
                        switch(evt.target.name)
                        {
                            case 'join_btn':
                            action='registra';
                            cool(action);
                            break;
                           
                            case 'delete_btn':
                            action='elimina';
                            cool(action);
                            break;
                        }
                    }
                    else
                    {
                        notCool('the name is too short');
                    }
                }
                else
                {
                    notCool('please, insert a name');
                }
            }
                else
            {
                notCool('invalid e-mail address');
            }
        }
       
        private function turnLetter(evt:Event):void
        {
            var sine:Number=Math.sin(angle);
            var cosine:Number=Math.cos(angle);
            evt.target.scaleX=sine;
            angle+=.1;
        }
       
        private function notCool(s:String):void
        {
            letter_mc.alpha=.2;
            error_txt.text=s;
           
            timer=new Timer(1500,1);
            timer.addEventListener(TimerEvent.TIMER,done);
            timer.start();
        }
       
        private function cool(s:String):void
        {
            var variables:URLVariables=new URLVariables();
            variables.azione=s;
            variables.nome=_Name;
            variables.eMail=_EMail;
            var richiesta:URLRequest=new URLRequest();
            richiesta.url=url;
            richiesta.method=URLRequestMethod.POST;
            richiesta.data=variables;
            loader=new URLLoader();
            loader.dataFormat=URLLoaderDataFormat.VARIABLES;
            addListeners(loader);
            try
            {
                loader.load(richiesta);
            }
            catch (error:Error)
            {
                trace('Unable to load requested document.');
            }
        }
       
        private function done(evt:TimerEvent):void
        {
            letter_mc.alpha=.7;
            error_txt.text="";
        }
       
        private function addListeners(d:IEventDispatcher):void
        {
            d.addEventListener(Event.OPEN,inizio);
            d.addEventListener(Event.COMPLETE,completato);
            d.addEventListener(SecurityErrorEvent.SECURITY_ERROR,securityError);
            d.addEventListener(IOErrorEvent.IO_ERROR,ioError);
        }
       
        private function inizio(e:Event):void
        {
            letter_mc.alpha=.2;
            email_mc.visible=false;
            name_mc.visible=false;
            join_btn.visible=false;
            delete_btn.visible=false;
            info_mc.visible=false;
        }
       
        private function completato(e:Event):void
        {
            trace (e.target.data);
            var vars:URLVariables=new URLVariables(e.target.data);
            trace(vars.answer);
            switch(vars.answer)
            {
                case 'done':
                writeDone();
                break;
               
                case 'not done':
                writeNotDone();
                break;
            }
        }
       
        private function securityError(e:SecurityErrorEvent):void
        {
            trace('security error: '+e+'
');
        }
       
        private function ioError(e:IOErrorEvent):void
        {
            trace('send/load error: '+e+'
');
        }
       
        private function writeDone():void
        {
            if(action=='registra')
                final_txt.text=' You have been added to our Newsletter.
'+
                                        'A confirmation link has been sent to your e-mail';
            else
                final_txt.text=' You have been deleted from our Newsletter.
'+
                                        'A confirmation link has been sen tto your e-mail';
                                       
            reset();
        }
       
        private function writeNotDone():void
        {
            if(action=='registra')
                final_txt.text=' You already are a member of our Newsletter.
';
                                       
            else
                final_txt.text=' You are not a member of our Newsletter yet.
'+
                                        "we can't delete you
"+
                                        'Have a superb day.';
                                       
            reset();
        }
       
        private function reset():void
        {
            timer=new Timer(4000,1);
            timer.addEventListener(TimerEvent.TIMER,resetAll);
            timer.start();
        }
       
        private function resetAll(evt:TimerEvent):void
        {
            final_txt.text="";
            email_mc.field_txt.text="";
            name_mc.field_txt.text="";
            letter_mc.alpha=.7;
            email_mc.visible=true;
            name_mc.visible=true;
            join_btn.visible=true;
            delete_btn.visible=true;
            info_mc.visible=true;
        }
        function unloadFunction(event:MouseEvent) {
            dispatchEvent(new Event("UnloadMe", true));
        }
        public function kill():void {
            removeEventListener(MouseEvent.CLICK, unloadFunction);
        }   
    }
}

Trace XML Bug?
Hi
I'm trying to trace a XML object in Flash AS3. the trace function only works XML got childnodes.

// -------- Example 1 ----------
var XMLData:XML= new XML('<Gallery pageIndex="1"><Image>54</Image></Gallery>');
trace(XMLData);

// -- Output ---
<Gallery pageIndex="1">
<Image>54</Image>
</Gallery>

// -------- Example 2 ----------
var XMLData:XML= new XML('<Gallery pageIndex="1"></Gallery>');
trace(XMLData);

// -- output ---
// well, nothing ?????

Shouldn't it trace something like this????
<Gallery pageIndex="1"/>


In AS2 it traces <Gallery pageIndex="1"/> like it should!

Anyone, please?

Trace()?
ok i have been using trace and it was disabled ,how can i enable it again ?
what i did was reinstall flash player .and it seems to be working again ..but is there another way or has anyone experienced this before ..?
here is the message i received in the output window ..
""""256 levels of recursion" '''''''
can you please explain this ..
thanks !"D

Bad Trace
Why can I not trace the width of one of any of the vars in the init function below?
The init function is called in the registered MainWindowClass function; while the drawShapes is called in the init function. The trace happens but the result is "undefined":


PHP Code:



#initclip
function MainWindowClass() {
    this.init();
    depth = 0;
    this.boundingBox_mc._visible = 0;
trace(panl._width);
}
MainWindowClass.prototype = new MovieClip();
MainWindowClass.prototype.init = function() {
    var hldr = this.hldr.createEmptyMovieClip("windowHolder_mc", depth++);
    var fram = this.hldr.createEmptyMovieClip("frame_mc", depth++);
    var panl = this.hldr.createEmptyMovieClip("panel_mc", depth++);
    this.drawShapes();
};
MainWindowClass.prototype.drawShapes = function() {
    // Draw Shapes
    tellTarget (fram) {
        a = 0;
        b = 300;
        c = 250;
        moveTo(a, a);
        colors = [0x5C5E83, 0x1B1C3F];
        alphas = [100, 100];
        ratios = [0, 0xff];
        matrix = {matrixType:"box", x:-200, y:-200, w:600, h:600, r:(90 * Math.PI) / 180};
        beginGradientFill("radial", colors, alphas, ratios, matrix);
        // left
        lineStyle(0, 0xABA9CD, 100);
        lineTo(a, b);
        // bottom
        lineStyle(0, 0x000000, 100);
        lineTo(c, b);
        // right
        lineStyle(0, 0x000000, 100);
        lineTo(c, a);
        // top
        lineStyle(0, 0xABA9CD, 100);
        lineTo(a, a);
        endFill();
    }
    tellTarget (panl) {
        a = 0;
        b =this._height - 6;
        c = this._width - 6;
        
        moveTo(a, a);
        colors = [0xceceff, 0x9191db];
        alphas = [100, 100];
        ratios = [0, 0xff];
        matrix = {matrixType:"box", x:-250, y:-250, w:500, h:500, r:(90 * Math.PI) / 180};
        beginGradientFill("radial", colors, alphas, ratios, matrix);
        // left
        lineStyle(0, 0x000000, 100);
        lineTo(a, b);
        // bottom
        lineStyle(0, 0xD0CEE3, 100);
        lineTo(c, b);
        // right
        lineStyle(0, 0xD0CEE3, 100);
        lineTo(c, a);
        // top
        lineStyle(0, 0x000000, 100);
        lineTo(a, a);
        endFill();
        //this.panl._x=this.width/2;
        
    }
}
Object.registerClass("FMainWindowSymbol", MainWindowClass);
#endinitclip 




Ph, and why does tellTarget work in this situation but not with?

The Trace Bug
Found some strange problem: when I'm using the trace() func the output panel appears but shows nothing. Does enyone knows what am I suposed to do?
Maybe this is bug that is yet to fix in next flash updater?

Cannot Trace Var Sent From Php
Hi,

i have spent three days on this and its begining to tick me off.

all i want to do is send a variable to flash from php and display in a text box.

This file is called test.php


PHP Code:



<? $flash='helloworld';
$result=str_replace("\n","&",$flash);
print "&fvar=".$result;?>




------------------------------------------------------------------------

my flash code

var loadphp = new LoadVars();

loadphp.load("http://localhost/php2flash/test.php");
trace (fvar);

--------------------------------------------------------------------

the trace just comes up as undefined. i dont know why. when i debug the movie its shows fvar:"helloworld" which is right.

please please can some help so i can get on with life

cheers

Trace ?
Is it possible to trace more than one variable in the trace property? I tried something like this but it only returns the last variable.

ActionScript Code:
trace("g"+geek && "g1"+geek1)

A Trace ?
In the code below the only trace step that shows in the out put window is

PHP Code:



trace("the retail playList: "+playList); 




the other trace statements do show anything. Not even "undefined". Why wouldn't they appear?


PHP Code:



on (release) {if (back<=1) {myBtn.enabled = false;} else {//MyLoadCID = new LoadVars();MyLoadCID.load("CdTypes/ID.txt");MyLoadCID.onLoad = function(success) {if (success) {//trace("goo")FDR = MyLoadCID.ID;ID.text = FDR;//trace("ID = "+FDR);info(FDR);} else {trace("not loaded");}};function info(myVar) {MyLoadVars = new LoadVars();MyLoadVars.load("CdTypes/"+myVar+"RETAIL.txt", "CG");MyLoadVars.onLoad = function(success) {if (success) {//trace("googoo")/////////////////////// START ARRAY /////////////////////////////////////////// name0 = this.name0;name1 = this.name1;name2 = this.name2;name3 = this.name3;name4 = this.name4;name5 = this.name5;name6 = this.name6;name7 = this.name7;name8 = this.name8;name9 = this.name9;//////////////// TEST ARRAY ///////////////////////////////////////// playList = new Array();for (i=0; i<15; i++) {if (this["name"+i] != null) {playList.push(this["name"+i]);// tells me what movie clip is currently playing//trace("currently playing "+this["name"+i]);}}trace("the retail playList: "+playList);trace("name "+name0)trace("this "+this.name0)///*if (this.name0 == null) {gotoAndPlay("CloseRetail");} else {if (this.name0 == +this.name0) {_root.gotoAndPlay("giftB");}}*/// } else {trace("not loaded");}};}////trace("back var "+back);//trace("current frame "+this._currentFrame);//back--;//_root.gotoAndStop("ba"+back);//MC.removeMovieClip();}} 




p.s. What happened to the [as] tags, didn't we use to use them on this forum?

Trace (011) = 9
Flash says that 011 traced == 9...

Why is this?

Is it binary?

How do I get it to display 11 as a number from that?:

Possible To Trace?
Hi, just wondering if it's possible in flash to do a trace output of the " sign, as it's a reserved symbol right?

Cos' I needed to output something like "pic1.jpg" and not pic1.jpg.

Thanks!

No Trace() In AIR
"Verbose" is OK., "Omit" is OK. I see trace() results in normal Flash documents. I see no trace() result during testing AIR documents: Control/Test Movie. Even when it is only one line of code. Output window doesn't start. If I open panel manually - it is empty.

For ... In... Trace
so i used to do simple little things like:

for (var p in _root) trace( p + " : " + _root[p] );

but that doesnt seem to work with AS3. what can i do instead?

Trace
AS3 is killing me. How do you trace and change a varibale in a parent movie. I have a loaded movie using
var PageRequest:URLRequest = new URLRequest(page);
var PageLoader:Loader = new Loader();

I want to be able to trace a parent variable from the loaded movie.

Can't Trace
It was still working some hours ago but now, it is not. Before that, I could still trace message and the output window will just pop up and show the message. But now, no matter how I trace, it don't show up in the output window anymore! I dont think my syntax has any problem. This is what i typed:
trace("test");
I put this code at the first frame of the stage's timeline and ran it.
I tested this on both Flash MX and 2004 and they both don't show the output window with the message at all. I tried opening the output window and then run but the output window shows blank!

After this, I tried it in Flash 5 and it worked well. The output window showed the word "test". Kinda weird? Did I accidentally set anything I didn't notice that caused this?
I am a little new to actionscripts as I am always into tweening until recently. Hope somebody can help me...thanks...

Trace
This is a ridiculous question but here goes. if I put this in my actions..first frame on the _root

ActionScript Code:
num = 2trace(num);


I should get the number 2 in my output window right? I am trying to use it in a more complicated postion, but it won't work so I tried this little test and it seems it won't even work there. Am I missing something really rudimentary? I even looked for tutorials and I don't think I'm doing anything wrong. Am I crazy? What am I missing? Probably something embarassing.
Please help.

What Is TRACE
It may be a newbie question, but what is trace and how do i get it working?

I think it is similar to JS alert(); no?

If so how does it work?

Thanks in advance,

dfx

Trace
Hi All

This is Anjani

can any one please tell me that how to insert string value like:-

Enter all value and than press "lock"

my question is how to trace the upper value.

means how to print the double quots(" ")through trace.

Thanks

Xml Trace
Hi,

i am using this xml scheme, i wonder if anyone can tell me how to target only the last <file> in each <folder> ?


PHP Code:



<?xml version="1.0"?><TREE>            <FOLDER NAME="Color">        <FILE NAME="Palette Tint" SWF="pal_tint.swf"  HELP="apply color tint  />         <FILE NAME="Saturation" SWF="sublink11.html" HELP="Saturation tool" />    </FOLDER></TREE>

Trace To What?
Hi,

If I want to display this in a dynamic text field what would I have to change it to:


Code:
function updateDisplay() {
trace((pointer+1)+"/"+ q.length)
wB

Won't Trace?
hey, im pulling in data from an external txt file created by php. I can't get it to trace anything out... at all. It's weird because its an example from the help area in flash... argh.
Anyone have any ideas?


ActionScript Code:
import flash.events.Event;import flash.net.*;var loader:URLLoader = new URLLoader(new URLRequest("http://localhost/media_gallery/loadinfo.php"));function completeHandler(event:Event):void{    var myLoader2:URLLoader = URLLoader(event.target);    var myVariables:URLVariables = new URLVariables(myLoader2.data);    var galleryimageArray:Array = myVariables.galleryimages.split("|");    trace(galleryimageArray);}

Copyright © 2005-08 www.BigResource.com, All rights reserved