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




SetInterval, Trace Progress?



is there any way to trace the progress of where an interval is in it's counting? I found Senocular's method from a few years back (http://proto.layer51.com/d.aspx?f=877) but it seems to not resume exactly from where it was paused from (possibly because i'm using it in an AS2 environment), causing events to be triggered before they should. I just need to be able to either set a variable with how much is time is left in an interval, clear the interval in question, then set a new interval with what's left once the user presses a play mc again.



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 01-12-2007, 04:51 PM


View Complete Forum Thread with Replies

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

[AS2] SetInterval - In Progress?
I'm wondering if anyone here has encountered a boolean or code that you could check if a setInterval is actually running, without writing an extra code of "running = true" type of code.

Best example I could give if that I have a clock running via setInterval, ticking a second off the clock every 1000 ms with:
TickTock = setInterval(ClockTick, 1000);

So is there a way to call something that would essentially tell me "yes, the setInterval TickTock is in progress" ?

Progress Bar For SetInterval?
is it possible to create a progress bar which shows the progress of a setInterval?

so if ive used setInterval(foo, 4000); it will "load" up to each function call...

Loading Multiple Jpg's And Check Progress With SetInterval
Hi All,
I've had a look at a few examples but can't find what I need:
I am loading multiple jpg's of which I want to display the total % loaded by sending it to a dynamic text instance.
As this is all done in FMX I wanted to use the SetInterval method.
Has anyone some sample script that I may use for this?
I found this one http://actionscript-toolbox.com/samplemx_loadjpg.php but am not sure how it works as I can not figure out how this passed variable "mc" works.
I would greatly appreciate some tested code. And maybe it will inspire me to write a tutorial for this as there is not much to find about it.

This is a thread that discussed a fix to re-apply clip handlers
, http://www.actionscript.org/forums/...&threadid=13830

but uses the onLoad handler and I thought it was simpler to use setInterval.

Thanks,

[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

Progress Bar For Showing Progress Of Loading Data From A CFC?
Hi all,

I wondered if anyone knew any way of showing a progress bar when calling a CFC through actionscript? I have a CFC which returns a ton of data, and so would like to show the progress of the data being loaded.

I know you can do this when loading a webpage, through using URLLoader, and getting the progress by listening to the ProgressEvent.PROGRESS event. However, when I call the CFC, I don't use the URLLoader class. My code for calling the CFC service looks like below


Code:
var service : RemoteObject = RemoteObject( ServiceLocator.getInstance().getService( "productService" ) );
var responder : GenericResponder = this.initResponder( getProductOptionListResult, getProductOptionListFault, resultHandle, faultHandle );
var call : AsyncToken = service.findOptionsForProduct( product );
thanks in advance for your help!

Mark

AS3 - Coding A Progress Bar To Show Progress Of A Timer.
Coding a progress bar to show progress of a Timer.

I have a timer that is set for (8000, 0). Pretty much what I would like to do is show the progress of where the timer is at but with a graphic. Something simple like a loader bar. Pending on where the timer is at the progress bar would load accordingly.

I am going to give it a try with out help but thought I would ask on the forum incase someone has an idea of how to do this before I go on a wild goose chase. Anyhow here goes the chase. If I figre it out before someone can help me I will post my code here.

Thanks,
Artofacks1

Custom Objects And Internal SetInterval Loops -> A Problem Stopping The SetInterval
Let's say I had a class like this:


PHP Code:



var someVar = new Widget();

function Widget() {
    // Some variables, etc...
    this.int_someCommand = 0;
    // Activate the function on instantiation
    this.someCommand();
};

Widget.prototype.someCommand = function() {
    clearInterval(this.int_someCommand);
    this.int_someCommand = setInterval(this, 'someCommandLoop', 50);
};
Widget.prototype.someCommandLoop = function() {
    trace("THIS IS A WIDGET LOOP!");
}; 




...now, I was always under the impression that if you delete an object in Flash, the setInterval loops associated with it would die as well. But when I try to:


PHP Code:



// At some other point in my timeline...
delete someVar; 




or:


PHP Code:



someVar = new Object(); 




...the original loop is still running (I can tell just by reading the trace). How do I go about properly terminating a setInterval loop inside an Object without having to call a clearInterval()? Or is a clearInterval() the only way?

Thanks.

Tween Class, Does It Use Setinterval? Getting Strange Setinterval Type Problem
I have a gallery with small thumbnails. Upon clicking a thumbnail, I am using the Tween class to pull clips from an array and fade them between each other, loading the clips into a container.

When I click the thumbnail it loads the .swf fine and plays the Tween Class animation just as it's supposed to, however if I click any other thumbnail and go back to that first one the timing gets totally screwed up and the fades get jittery and overlap each other, much like it does with setInterval if you don't clear the intervals.

Is there a way to clear the Tween Class? Does it's timer run on setInterval?


This is the code I am using for the tween class


Thanks!


Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;

//content movieclips put into an array
var mcArray:Array = new Array(content1, content2);
for (var k in mcArray) {
mcArray[k]._alpha = 0;
}

// tween class has something called "OnEnterFrameBeacon" and it is added to the stage
// when we import the as file, so I wanted to get rid of it.
var n:Number = 0;

function playFades() {
if (n<mcArray.length) {
var tween_handler1:Object = new Tween(mcArray[n], "_alpha", Strong.easeIn, 0, 100, 1, true);
tween_handler1.onMotionFinished = function() {
//trace("motion finished by "+mcArray[n]);
//n++;
var tween_handler2:Object = new Tween(mcArray[n], "_alpha", Strong.easeIn, 100, 0, 3.5, true);
tween_handler2.onMotionFinished = function() {
//trace("motion finished by "+mcArray[n]);
n++;
playFades();
};
};
} else {
n = 0;
playFades();
}
}
playFades();

Progress Bar Not Showing Progress
Hi all

I have putted the code below in frame1, and then the actual movie in frame 2. The problem is that the code below doesn't show the progress unless i put the movie to start from say frame 5. Could someone please tell me why that is and any good progress bar code with percentage? I've actually tried a few tutorial sample and only this one works but need to move to higher frame no.

// stop the movie from continuing
stop();

// create a function called onEnterFrame
// with this name, it is an event handler
// and is called automatically by the flash
// player every frame at intervals specified
// by the frame rate of the movie
onEnterFrame = function(){

// percent loaded is loaded/total
var percent_loaded = _root.getBytesLoaded()/_root.getBytesTotal();

// assign percent loaded to preloader movie clip
// in the form of the variable named value
preloader_mc.value = percent_loaded;

if (percent_loaded == 1){

// delete the onEnterFrame event handler
// so that it is no longer being called
// every frame
delete onEnterFrame;

// tell the main timeline to play
play();
//gotoAndPlay(12);
}
}

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