Var X=0100; Trace(x) : Output - 64....how Come?
hello,
I am trying to trace as below and its showing me wrong trace......can anyone please explain how can this be possible?
//================================= var x=0100;
trace(x);
output of above code is given as 64.....
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 11-16-2006, 06:28 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[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....
Bug?: No Trace Output - And How To Fix
While working on a project in FMX 2004 7.01 for many hours, it "suddenly started" to not output any trace commands. No matter what I tried (opening the output window manually, putting a trace("Hello!"); in the first keyframe of the root timeline, etc)...nadda...no trace!
I saved the file then restarted Flash - same result.
I opened a previous version of the file (from a few hours earlier) and the traces worked fine!
Pissed about the potential hours of lost work revertng back to the earlier version...I was determined to figure out the prob. So I did!
I realized that shortly before I noticed the trace prob, I had publish the file for browser testing. And, like I always do, I checked the "omit trace actions" option.
Hrmm!
I go into the publish settings and uncheck the omit option - but still no traces.
I then publish the file again with the omit option UNchecked. Then Test Scene...and walah! Trace output is now back!
I save the file and then reopen and trace is still working.
So, in summary, publishing with the omit trace option checked seems to (at least in my case) somehow omit trace options for the project itself. Odd.
I dont know if this is an issue/bug with the Flash enviornment or some kind of flag is saved in the project file. I restarted Flash but did not trying opening a different project while the traces werent working.
Anyway...hope this helps if you run into the same problem
Ahhhk!
Trace Output Missing
For some reason, I am no longer getting any output from my trace statements. Could I have turned my output off somehow? I tried restarting flash and restarting my machine. I've put trace statements in code I know is getting executed, but for some reason, my Output window remains empty.
Any suggestions?
Capturing Trace() Output?
Hi guys,
Is it possible to capture / override trace() output? I'd like to append it into a text-box on the stage.
Many thanks
Craig
Trace Output Inconsistent?
Hello,
I've discovered an issue with trace in AS3 that has me thinking that I must be missing something incredibly obvious, but I can't see what it is. When the attached classfile is linked as the base class for a generic Flash project and built into an swf within Flash CS3, only one of the two trace calls appears to take place. However when the exact same swf is run externally and fed into the Flash CS3 debugger, all of the output appears one would expect from reading the code.
I'm new to AS3 and must obviously be missing something basic or have skipped over some documentation or something, but I can't figure out what. Can someone explain why this is? Thanks!
Attach Code
package {
import flash.display.MovieClip;
import flash.events.Event;
import flash.text.TextField;
public class WontWork extends MovieClip {
function WontWork() {
trace("this gets printed");
this.addEventListener(Event.ENTER_FRAME, this.doesntWork);
}
protected function doesntWork(e:Event) {
trace("this doesn't get printed");
}
} // class
} // package
AS2 - Output Trace In A TextField
Hello,
Is there a way to have all that outputs in the flashIDE output window post to a dynamic textfield on the _root. I am doing some flash dev that loads and sends flash vars using php and I would like to trace my flash vars to make sure they are loading and sending correctly.
Thanks,
Robbbbb
Inconsistent Output ( Textfield Vs Trace)
I am using a textfield as well as a trace for debugging, and I am getting a different value for the same variable. The trace and the textfield assignment are in the same conditional block, and it doesn't matter their order. The textfield output has a longer string than is expected. Any clues?
thanks, Ira
Trying To Trace A Stage In Output For A Simulation..
Hi,
I am having real trouble doing a part of a simulation for some uni coursework, and I need some help.
This is the section I am stuck on. I have been looking at it for 48 hours now, and have been close to smashing my mac because I am so frustrated.
Quote:
The first line is “*” followed by stageWidth “*”s, that is for example one followed by 55 *s There then follows one line for each line of the stage up to stageHeight (= 40 to start with). Each line consists of * followed by stageWidth (55) underscores, or “_”. When you get to the (x, y) coordinates of the alien, replace the _ by “A”. Similarly print G for gun and B for bullet. Finish off with a final line of * followed by stageWidth (55) *s. Note: if the gun doesn’t fire, the bullet will still be at (0, 0) and wont print out. gun end position = (30, 40) alien end position = (35, 31) bullet end position = (30, 17)
************************************************** ****** *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_____________________________B___________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *__________________________________A______________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_________________________________________________ ______ *_____________________________G___________________ ______
************************************************** ******
I have x & y positions for a bullet (if one fires in the simulation) stored, and also the alien x & y co-ords.
The gun is fixed in position of x = 30 y = 40.
I need to know, how & if it is possible to trace a line of characters to the output window, then how to change underscores for letters to indicate the gun, alien & bullet positions.
the rest of my code is -
Attach Code
Code:
var alienXpos: Number = 5 ;//alien x postion on stage
var alienYpos: Number = 1;//alien y postion on stage
var nCycles: Number = 30 ;//cycles to represent frame
var gunXpos: Number = 30 ;//gun x & y stage variable
var gunYpos: Number = 40 ;
var bulletXpos: Number = 0 ;//Bulelt x & y position
var bulletYpos: Number = 0 ;
var fireGun: Number = 0 ;//Gun fire random number variable
var fireGunStore: Number = 0 ;//Store for a fire number
var Counter: Number = 1;
var fireFlag: Boolean = false ;//Bullet boolean - true if above 0.95
var stageWidth: Number = 55 ;
var stageHeight: Number = 40 ;
trace("Alien X start Position = "+alienXpos);//trace starting x & y value of alien
trace("Alien Y start Position = "+alienYpos);
trace("Gun X start Position = "+gunXpos);//trace starting c & y value of gun
trace("Gun Y start Position = "+gunYpos);
trace(" ");
while (Counter<=nCycles){//Counter less than or equal to 30
if (fireFlag == false){//If fire flag is wquivalnt to false, then
fireGun = Math.random(0, 1) ;//Generate a random number between 0 - 1
if (fireGun>0.95) {//If the fireGun vlaue is greater than 0.95
fireGunStore = fireGun;
//store it
fireFlag = true;//set the fireflag boolean to true
bulletXpos = gunXpos;//Bullet position is the same as gun position
bulletYpos = gunYpos;
}
else if (fireFlag == false) {//else/also if the boolean is false
alienXpos++;//increase alie x & y position
alienYpos++;
Counter++;//Counter increase bt 1
trace("alien position, x/y = "+alienXpos+"/"+alienYpos);//trace alien position
}
} else if (fireFlag == true) {//if the boolean is true,
alienYpos++;// update the x & y alien position
alienXpos++;
bulletYpos--;// take one from the y position (move in the opposite direction)
Counter++;//increase counter by 1
trace("alien position, x/y = "+alienXpos+"/"+alienYpos+
" bullet x/y = "+gunXpos+"/"+bulletYpos);
}
}
trace("Alien X End Position = "+alienXpos);//trace ending x and y of gun & alien
trace("Alien Y End Position = "+alienYpos);
trace("Gun X End Position = "+gunXpos);
trace("Gun Y End Position = "+gunYpos);
trace("Bullet X End Position = "+bulletXpos);
trace("Bullet Y End Position = "+bulletYpos);
trace(" ");
trace("");
Redirect Trace() Output To A Text Box
I have a flash app that works fine in local testing, but fails to load dynamic data when live on a site if I use the javascript method to get around the "click to activate issue"
What I would like to do is to direct all the trace output to a textbox so I can test it in situ. Is this possible in AS2? I know there is the import flash.util.trace for AS3, but I use XP64 so AS3 won't install as it tells me I dont have XP.
I am basically looking for an onTrace type event. I know it's a long shot :)
many thanks,
ben.
How Do I Increase Size Of Trace Output?
Hi,
I'm running the developer edition of FMS3 on my local machine for development purposes and I'm working with large amounts of XML data. I try to check the veracity of the data by using appropriately located trace statements to spit out the current document. However, some of the data is large, and instead of outputting it I get the message "String too long to display". Is there any setting I can adjust in order to increase the size of traceable messages? It's not as if I care if I have a whole load of data in my log screen. Thanks in advance for any help.
Regards,
Dave Spaar
Clearing Output Panel Using Trace.
Is there a way to clear up the output panel using trace.
I mean if I have lot of text traced in output panel and i want to make a fresh start (blank) in output panel is there any method to do it?
AS3 - Flash9 Trace Output Logger
Does anyone know a good logger or method for logging when running an .swf in the Flash 9 standalone player? Not just a method for viewing explicit trace() statements, but Flash generated runtime errors as well?
Thanks,
~JC
Delete This.onEnterFrame() - Output Error On Trace?
Hi,
I have this function on frame 1 with
function transformMe() {
this.diffX = this.targX-this._x;
this._x += this.diffX*.1;
if (Math.abs(this.diffX)<1) {
delete (this.onEnterFrame);
trace("I am deleted")
}
}
and I am calling the function many times
with for example
onClipEvent (enterFrame) {
_root.mask1.onEnterFrame = _root.transformMe;
targX = 0;
}
Problem is the "delete (this.onEnterFrame);" is not deleting once it's done???? it's sucking CPU:-(
anybody help?
Trace Function Output To Text Field?
How do you send the output of a function to a dynamic text field on the stage instead of the output panel?
I have used trace(); but that just sends the value to the output panel.
Any help would be greatly appreciated.
Best Regards.
Edited: 02/26/2007 at 02:18:24 PM by Opaque17
Trace Function Output To Text Field?
How do you send the output of a function to a dynamic text field on the stage instead of the output panel?
I have used trace(); but that just sends the value to the output panel.
Any help would be greatly appreciated.
Best Regards.
Edited: 02/26/2007 at 02:18:59 PM by Opaque17
Weird Sandbox Error In Output Trace ? Any Ideas ?
now for some reason my ouptut gives me this .. im not tracing anything !
** Security Sandbox Violation ***
SecurityDomain 'http://www.harryrice.zonemikel.com/btnflash2.php?0.843386454042047' tried to access incompatible context 'file:///C|/Documents%20and%20Settings/amduser/My%20Documents/ricepage/products.swf'
*** Security Sandbox Violation ***
SecurityDomain 'http://www.harryrice.zonemikel.com/btnflash2.php?0.843386454042047' tried to access incompatible context 'file:///C|/Documents%20and%20Settings/amduser/My%20Documents/ricepage/products.swf'
here is my code
Code:
//attachMovie(idname,newname,depth,initobject,(x y w h label);
//_root.createTextField(instancename="",depth,x,y,w,h)
import flash.filters.*;
stop();
xtext=125;
ytext=60;
btnx=50;
btny=75;
myVars = new LoadVars();
// call the load method to load my php page
myVars.load("http://www.harryrice.zonemikel.com/btnflash.php?"+Math.random());
//loadVariables.load("http://www.harryrice.zonemikel.com/conflash.php","GET");
myVars.onLoad = function( success ){
if(success){
i = 0;
while (i<myVars.endbtn){
var thmdesc = attachMovie("description","desc"+[i],getNextHighestDepth(),{_x:xtext, _y:ytext, _width:309, _height:30, label: i});
thmdesc.desc1.text = myVars["buttondesc" + i];
ytext=(ytext+35);
thmdesc._visible=false;
var thmbut = attachMovie("btn","btn"+[i],getNextHighestDepth(),{_x:btnx, _y:btny, _width:100, _height:20, label:i});
//we had label: myVars["buttonthm" + i]
var ds:DropShadowFilter = new DropShadowFilter(2,35,0x000000,5,5,5,.8,3,false,false,false);
thmbut.btntext.text = myVars["buttonthm" + i];
thmbut.filters = [ds];
// pass var to product movieclip make everything happen there ...
thmbut.onRelease = function(){
selected.filters = [];
var k:Number = this.label
title.title.text = myVars["buttonthm" + k];
createEmptyMovieClip("holder", getNextHighestDepth());
holder.loadMovie("http://www.harryrice.zonemikel.com/pagepics/nopic.gif");
holder.filters = [ds];
holder._x = 114;
holder._y = 62;
holder._xscale = 50;
holder._yscale = 50;
}
this.holder.onRollOver = function(){
holder._xscale = 150;
holder._yscale = 150;
}
holder.onRollOut = function(){
holder._xscale = 50;
holder._yscale = 50;
}
thmbut.onRollOver = function(){
var k:Number = this.label
//title.title.text = ":)";
_root["desc"+k]._visible = true;
}
thmbut.onRollOut = function(){
var k:Number = this.label
//title.title.text = this.label;
_root["desc"+k]._visible = false;
}
//end function
btny=(btny+35);
//trace(myarray);
//trace(k);
i++;}
}// end if sucess
//end of parent function
else {
trace("Error loading page");
}
}
ytext2=360;
btny2=375;
myVars2 = new LoadVars();
// call the load method to load my php page
myVars2.load("http://www.harryrice.zonemikel.com/btnflash2.php?"+Math.random());
//loadVariables.load("http://www.harryrice.zonemikel.com/conflash.php","GET");
myVars2.onLoad = function( success ){
if(success){
i = 0;
while (i<myVars2.endbtn){
var thmdesc2 = attachMovie("description","desc2"+[i],getNextHighestDepth(),{_x:xtext, _y:ytext2, _width:309, _height:30, label: i});
thmdesc2.desc1.text = myVars2["buttondesc" + i];
ytext2=(ytext2+35);
thmdesc2._visible=false;
var thmbut = attachMovie("btn","btn"+[i],getNextHighestDepth(),{_x:btnx, _y:btny2, _width:100, _height:20, label:i});
//we had label: myVars["buttonthm" + i]
var ds:DropShadowFilter = new DropShadowFilter(2,35,0x000000,5,5,5,.8,3,false,false,false);
thmbut.btntext.text = myVars2["buttonthm" + i];
thmbut.filters = [ds];
// pass var to product movieclip make everything happen there ...
thmbut.onRelease = function(){
selected.filters = [];
var k:Number = this.label;
title.title.text = myVars2["buttonthm" + k];
//loadMovie("http://www.harryrice.zonemikel.com/pagepics/nopic.gif","title")
//var thmbut = attachMovie("product","prod"+[i],getNextHighestDepth(),{_x:114, _y:60, _width:451, _height:115, label:i});
}
thmbut.onRollOver = function(){
var k:Number = this.label;
//title.title.text = ":)";
_root["desc2"+k]._visible = true;
}
thmbut.onRollOut = function(){
var k:Number = this.label
//title.title.text = this.label;
_root["desc2"+k]._visible = false;
}
//end function
btny2=(btny2+35);
//trace(myarray);
//trace(k);
i++;}
}// end if sucess
//end of parent function
else {
trace("Error loading page");
}
}
Event Listener Question (double Trace Output)
Greetings crew, (update on first post)
so the initial question was how to trace what xml info was given to the selected movieclip
i found out how now. but one thing remains weird
it traces out double: fe. i rollover button 1, and i get the trace output 2 times
anyone can shed a light?
Code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, setMenu);
var xml:XML;
var spacer = 1;
var xpos = 15;
var ypos = 40;
function setMenu(e:Event):void {
xml = new XML(e.target.data);
var il:XMLList = xml.item.client;
var imgl:XMLList = xml.item.image;
for (var i:uint=0; i<il.length(); i++) {
var nbutton:button = new button();
addChild(nbutton);
nbutton.ID = i;
nbutton.name = il[i];
nbutton.imgl = imgl[i];
nbutton.x = xpos;
nbutton.y = ypos + (nbutton.height + spacer) *i ;
nbutton.tmc.txt.text = imgl[i];
function itemOver(e:MouseEvent) {
trace("i am image = " + e.currentTarget.imgl + " from button " + e.currentTarget.il);
}
nbutton.addEventListener(MouseEvent.MOUSE_OVER,itemOver);
}
}
loader.load(new URLRequest("smyxml.xml"));
How Can I Stop Trace(LOADED + ":" + TOTAL); From Output Please Check My Script.
Who can help me, i have used this preloader to load a movie from a external swf file. The only thing is that i have this script nicely done only i am no expert but i have created a infinte loop with trace(LOADED + ":" + TOTAL);
I need this trace for my script to work, only who know how i can kill it when my movie is done downloading/preloading?
-------------------------------------------
PHP Code:
this.createEmptyMovieClip("loader", 999);
loader.loadMovie("plattegrond.swf");
this.onEnterFrame = function() {
LOADED = loader.getBytesLoaded();
TOTAL = loader.getBytesTotal();
if (LOADED === TOTAL) {
removeMovieClip(loaderDisplay);
} else {
loaderDisplay._visible = true;
}
LEFT = TOTAL-LOADED;
PERC = LOADED/TOTAL*100;
PERCENTAGE = Math.round(PERC) + "%";
INV = LEFT/TOTAL*100;
INVERSE = Math.round(INV) + "%";
OUTPUT = "A.U.B. even wachten: " + PERCENTAGE + " is geladen, " + INVERSE + " word geladen.";
trace(LOADED + ":" + TOTAL);
};
loader.onLoad = function() {
};
Is There Any Flex Tracing Panel To Track The Output By "trace"?
I got a FlashTracer plugin in Firefox, and even I can output stuff with ExternalInterface+Firebug
But that's too complicated and heavy, I have to open my Firefox.
So, is there any Flex tracing panel that I can have the traced result in that panel?
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
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
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
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
[F8]Why Won't My Output Window Output Anything?
A quickie:
At some point my Output window stopped displaying error messages. It still pops up, I assume if there's a problem. But it's blank and the scrollbar is disabled. Is there an option I missed somewhere?
-Jeff
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
|