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








Tracing Variable Name?


hello world...
how do we get the name of some variable:
ex:

ActionScript Code:
_level0.one.abc.pepe.ok="yes"
trace(_level0.one.abc.pepe.ok)///output yes
///but i want in the output the name or the path...
//like
trace(_level0.one.abc.pepe.ok._name)///undefined O_ô

I dont know the property to get this... :S
Thanks




ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 03-26-2007, 04:32 PM


View Complete Forum Thread with Replies

Sponsored Links:

Tracing A Variable At The End Of The URL
Ok, forgive me if this sounds like a stupid question. I'm new to dynamic programming in flash. I can't find the specific answer i am looking for on the net or on this message board.

If someone could provide an answer or point me into the right direction I'd very much appreciate it.

The Problem
All I am trying to do is simply trace this variable at the end of this URL:

http://www.theurl.com/sampler/Sampler.htm?vSamp_Id=VUBZ

Here is my attempt:


Code:
myVariables = new LoadVars();
myVariables.load("http://www.theurl.com/sampler/Sampler.htm");
myVariables.onLoad = function(success) {
if (success) {
var sample = myVariables.vSamp_Id;
var theSample = (sample);
trace ("this is the variable: " +theSample);

} else {
trace("there was a problem loading the variables");
}
};
It is coming up undefined and due to my weakness in actionscript syntax, I cannot see why.

View Replies !    View Related
Tracing Variable
I have a variable that changes based on what is clicked. How can I trace what that variable is defined as. I tried just doing trace (myVariable); but that didn't work (I didn't think it would).

Thanks

View Replies !    View Related
Variable Tracing Problem ?
according to me isn't this possible of there's going something wrong:

if (_global.musictrack == "1"){
_global.musictrack = "2"
_root.mcBG.mcRadio.mcRadioLoader.gotoAndPlay(1);
}

because if i trace _global.musictrack in the mcRadioLoader on frame 1 i get the value "1" back :S! (but i want the value "2" :confuded: )

who can help ?

View Replies !    View Related
Variable Tracing Problem
hi

i asked this question in another forum but got no reply so maybe it is a silly question but it is confusing me!

i'm having a very annoying flash mx problem tracing variables within movie clips on my main timeline that is driving me nuts!

i have created a movie clip "circle" with the variable "radius = 12;" on the first frame of the clip.

i place a named instance (crc) of this movie clip on the stage and on the first frame of the main timeline i put a "trace (crc.radius);". this returns "undefined" in the output window when i test the movie. what gives?

if someone could set me straight i would be grateful.
thanks

View Replies !    View Related
Variable Tracing Problem ?
according to me isn't this possible of there's going something wrong:

if (_global.musictrack == "1"){
_global.musictrack = "2"
_root.mcBG.mcRadio.mcRadioLoader.gotoAndPlay(1);
}

because if i trace _global.musictrack in the mcRadioLoader on frame 1 i get the value "1" back :S! (but i want the value "2" :confuded: )

who can help ?

View Replies !    View Related
Tracing Variable Names In AS2
I want to be able to trace variable names in AS2. Ideally I would make a function that's kind of like this..

function tracevar( var:* ):Void{
trace( var._name + ": " + var );
}

Anyone know how to do something like this, or if it's even possible?

View Replies !    View Related
Variable Tracing Problem ?
according to me isn't this possible of there's going something wrong:

if (_global.musictrack == "1"){
_global.musictrack = "2"
_root.mcBG.mcRadio.mcRadioLoader.gotoAndPlay(1);
}

because if i trace _global.musictrack in the mcRadioLoader on frame 1 i get the value "1" back :S! (but i want the value "2" :confuded: )

who can help ?

View Replies !    View Related
Tracing
I've been looking everywhere on how to do this effect and I can't find it. In my movie, I want to "trace" (that's the best word i can think of, the outline of an image, then once the outline is complete, fill in the space with the actual image.

I saw this on the Royal Tenenbaums website I would like to know how it's done.

Thanks

View Replies !    View Related
Tracing Vs. Tracing
Hiya, i'm preparing the artwork for my very first Flash animation and I was wondering what the views are on how to trace images that are drawn, scanned and imported. Is there any reason to trace the bitmap by hand using the brush or pencil tool or is using the "trace bitmap" command the way to go? Any other tips on how to get the best results with scanned artwork? Thanks in advance!

View Replies !    View Related
Tracing I Think?
Hi folks

Havent posted on here in ages!

I had a pitch at at client who runs a kitchen business in the UK today, and they were very interested in having some effects similar to http://www.smallbone.co.uk

There is a really smooth effect where the outline of the photos appear first, then slowly over the timeline more of the photographs are revealed.

From what I can gather this is to do with tracing the bitmap, but I am a bit lost after that!

Does anyone have a tutorial on this, or some simple steps as to what I should be doing to achieve these effects.

I appreciate this is a high quality site and from speaking to people about this style of effect it is quite time consuming.

I am prepared to give it a go as I think it looks brilliant.

Any tips would be really appreciated!!!

Ben

View Replies !    View Related
XML Var Not Tracing
If i trace (my_xml.firstChild.firstChild.nodeName); the trace function works and outputs "item"


If i trace (iLabel); I get undefined. Why doesn't my variable work correctly

Code:
stop();
// ----
var iLabel = my_xml.firstChild.firstChild.nodeName;
// ----
var my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success) {
if (success){
trace(iLabel);
} else {
trace ("XML Error - File not available or coruppted.");
}
};
// ----
my_xml.load("jeans.xml");
// ----

View Replies !    View Related
Tracing
Is there any way to create an excercise that requires a user to trace a letter or number on a screen in Flash 8? For example a Capital A on a screen.

View Replies !    View Related
Tracing
I am new to actionscript. How to trace 1 through 50 with button? Thanks.

View Replies !    View Related
Tracing Or Something
is there a easy way to trace line art in flash.. cuz i was screwin with some scanned stuff and im tryin to figure out how to trace the lines in black without actually just goin over the lines with the paint brush tool.. cuz my hand is kinda shakey cuz i twitch a lot.. or i just have a really unsteady hand.. any ideas?

View Replies !    View Related
Help Tracing
hi i want ot no how to trace a movie clip and place it into an empty movie clip i create at the begginning of the movie can you please help me . it would be appreciated

View Replies !    View Related
Tracing The Url In AS2.0
Greetings!

I have an Actionscript 2.0 question for anyone out there. I working on a Flash quiz that will trace the users coming from a particular page on a website. If the user comes from that page then a link will not be displayed in the quiz. If they don't come from that page then the link will be displayed, or the link will be turned on if you will.

The reason for the dynamic functionality, is to avoid creating two flash files that do the same thing, and then maintained on a regular basis.

Any thoughts?
Thanks!

View Replies !    View Related
Help Tracing
hi i want ot no how to trace a movie clip and place it into an empty movie clip i create at the begginning of the movie can you please help me . it would be appreciated

View Replies !    View Related
AS3 - Not Tracing Anything At All?
Hi guys,

I'm working with Flex 3 and I'm having some trouble. I'm trying to trace some things (array lengths, random string statements, etc) in my program however nothing comes out unless I'm tracing it in the constructor function.

What could be the cause of this?

I'm also working with Papervision, TweenMax and Flash CS4 as my compiler if that counts for anything.

View Replies !    View Related
Tracing _x
how do I take the _x of a movie clip and turn it into a variable.

Heres what I got and its not working.

myMovieClip._x= Myvaraible;
when I trace(Myvaraible)

I get undefined. I want to get a number;
please help:

thanks

View Replies !    View Related
Tracing A Var
brain fart...

i did

a = 5;
b = 2;

c = a + b;

trace("c");

I just get "C" and i am exporting on actionscript1...

i want it to trace and get 7

View Replies !    View Related
Tracing Help
Hey,

Im looking to make an etch-e-sketch kinda effect with masks... but its a pain when the shapes over lap themselves and create this wonky kinda effect when i shape tween them.

any suggestions upon achieving this?

thanks guys much appreciated

View Replies !    View Related
BitMap Tracing
Sorry this might be a dumb questions but....Bitmap tracing, how do u do it?

View Replies !    View Related
Tracing All Variables
Is there a simple command I can use to trace all the variables I am sending to an external file?

View Replies !    View Related
Tracing Bmp Images....
i have made an animation with lightwave, and i want to import it in flash (i have flash mx...) but i want to 'vectorize' it. now i started with tracing each frame, but i have 520 frames, and that is a lot! so do you have an idea how i can automate this? or is there some sort of program available for that? i know there is swift, but this just isn't what i'm looking for, so i'm not ready to pay for that...

please help!
thanks
stef

View Replies !    View Related
Tracing An Object?
I was wondering how to like trace an object with lines? example can be seen http://hostrocket.com/home/index.htm there. If you keep watching the header you will see the guy kinda get traced. How would I do this?

View Replies !    View Related
The Tracing Of Shape
Hi there,

Whether I make any kind of forms (oval, rectangles etc), I can't see the tracing to figure out what the shape will look like.

This is kinda annoying and I just can't find out the option to activate it.

Thanks for your help.

View Replies !    View Related
Tracing Bitmaps
hey
im new to MX and used to flash 4 (wicked old)
i was wondering the best way to trace bitmaps, should i copyu and paste them in or import then trace?
just .gif's and .jpg's
shawn

View Replies !    View Related
Tracing Images
Does anyone have a link to a tutorial that explains how to manually or automatically trace images.

Thank you.

P.S - Making them a vector image is a +, but not necessary.

View Replies !    View Related
Tracing A Bitmap
Using Adobe AfterEffects I created a sequence of shapes and exported it as a .swf. It exports each frame a .jpg which are antialiased. I'd like to vectorize these jpgs and I've played around with the trace bitmap tool, but it vectorizes the antialiased pixels as their own vectors, so I get lots of separate, tiny vectors.

For example, if you import a bitmap circle, and try to vectorize it, you don't get one smooth circle vector but rather a lot of smaller vectors.

Does anyone have any suggestions on how to go from an antialiased bitmap circle to one smooth circle vector? Thanks!

View Replies !    View Related
Tracing Bitmaps
When I try and trace a detailed bitmap Flash gets about 3/4 of the way through and then crashes.


Settings are:

Color Threshold = 1
Minimum Area = 1

Curve fit = Normal
Corner Threshold = Normal.

View Replies !    View Related
Tracing/vectorize
hi,

im trying to trace this image belowbut when i do it comes out all funky, i cant find the right settings to enter. does any one know what settings to use to get it to look the same way it does now except vectorized?




thanks
Justin

View Replies !    View Related
Tracing In Flash
I am a Flash user going on about two years on and off. I've read a couple of good books but they seem to leave out those cool effects that seem to make a difference between great Flash work and standard Flash work. My question is, how do I trace a photo of lets say a figure exactly (hair and all) and use that shape to hide the photo below and reveal it by fading the traced shape. This technique is used reqularly in most high end sites like the following:

1. http://www.seanjohn.com/
2. http://www2.foxsearchlight.com/benditlikebeckham/

I also wonder how designers get their Flash animations to run so smoothly without stuttering. I assume they just speed up the FPS to make everything move really fast and seamless. Any help would be great.

Tom
tom@esquire-design.com

View Replies !    View Related
Tracing Over Animation
Hi!

I'm trying to trace over a black font with a red colour pencil in a drawing software to teach some of my pupils the right way to write letters.

I tried to record it in avi format but the file is very big. Is there a way to do it in flash mx? If yes can someone give me a tip.

I can do some basic animation but I can't find out how to make flash do the tracing so that it appears that someone is actually writing over the font.

Thank you.
Pervinette

View Replies !    View Related
Tracing A Picture
I wanna trace a picture for animation.

What tools do you guyz recommand? pen? pencil? brush?

I cant seems to get it right... the curves are not nice when i used brush and pencil to "sticky"

Whats the ideal tool and setting to trace?

Thank You.

View Replies !    View Related
Tracing An Image
Hi,

would like to know how to create an image trace eg. to outline an image showing the outlining animation.


Thanks

View Replies !    View Related
Tracing Visibility
Is there a way to trace what is causing a movie clips visibility to change? I have a mc that I turn the vis off on load, then with a function I turn it back on. There is something that is turning it back off though and I can't figure out what it is. So, I'm looking for some method to determine what is turning it back off.

Thanks

View Replies !    View Related
Tracing Objects
Hello all. This may sound crazy but I would like to know how to trace an object using light or something similar. What I'm looking to do is have some text or picture have a trace of light go all the way around the text or pic periodically to highlight it. I've seen it done before but I cannot seem to get it done correctly. Can anyone help me?

View Replies !    View Related
Tracing Scope
hi.

i'm having some serious scope issues and want to know what the best way to troubleshoot this is.

i've traced as much as i can and couldn't figure it out, then i tried using targetPath() but that only works for finding movie clips and i'm looking for an array. any ideas?

thanks. fumeng.

View Replies !    View Related
Tracing The Label?
I have an actions layer where I have placed labels in certain frames. How can I trace the label for that frame. I can trace the frame number with _currentframe but I want the label in the actions layer.
Any thoughts anyone?

Thanks in advance,
nesnejnhoj

View Replies !    View Related
Tracing A AutoCad BMP
What would be the best/optimal setting when using the trace command on an (autocad) architectual bmp? I don't want to alter the picture much at all, but want to be able to break it down as much as possible with the trace command. Thanks.

View Replies !    View Related
Tracing Visible When Not
I build a video play. It has all the buttons that a typical video player would have. On each of the buttons I have their visibility = 0 on load. This works fine. Then once the video is loaded it calls a function that starts playing the movie and it also turns the appropriate buttons visibility = 1. Here is the problem. They are not coming on.

I've put a trace on the function that turns the buttons on so I know that I'm hitting the function. I put a trace after the point where it turns the button on and it thinks the visibility = 1. I put an onEnterFrame on the button and put a trace of the visibility on it and it thought that it turned visible at the right time.

The thing that is really blowing my mind is that it was working. I made a couple of changes, non of which should have had any impact this stuff, and then it stopped working. I undid the changes and it still isn't working.

Any ideas???

View Replies !    View Related
Tracing An Object?
Purely for bug-testing purposes, is it possible to trace an object and have it list all of it's properties? If so, what's the syntax?

View Replies !    View Related
Tracing Along A Path
Hey guys, I'm an extreme noob when it comes to flash, so please don't flame me or anything!

Not sure if the title above is the right term for it, but what I would like to do is create a flash animation that shows the process of a object being drawn out (like an apple being sketched out on an empty sheet of paper)...

is it similar to using moving an object along a motion guide? i'm completely clueless and lost amidst all the action scripts available..and i honestly have no idea how to make them out either

hopefully with some guidance here all that will change..thanks!

View Replies !    View Related
Image Tracing
I'm trying to develop a children's game so that the child can trace an image presented on screen. The tracing should be done either by drawing with a mouse or creating dots (application then joins the dots). The traced shape must then be filled with a color.

Any ideas of where to start will be appreciated.

Many thanks,
John

View Replies !    View Related
Mask Tracing
Hey,

Im completely stumped upon this problem.

I created an outline of a tree and wanted to create a outline kinda effect, so i was planning on masking it but i have no idea how... i mean i know how to mask but i have no idea how to give it a tracing kind of effect... any ideas?

thanks

View Replies !    View Related
Tracing Variables
A few months ago I built a relatively complex flash project that I'm working on again. When I press a button it sets a number of variables, but I can't remember what they are and the code is so complex it's hard to tell by looking at it. Is there a way to write a trace that will output all the variables that get set when I press a button? I don't know their names or values.

View Replies !    View Related
Tracing Sprites
Hi,

I´m trying to make some short sprite movies and have some quick questions.
When I select the desired sprites and start tracing them, which options should I pick?

Color threshold: 1
Minimum area: 1
Curve fit: Pixels
Coner threshold: Many Corners

or

Color threshold: 100
Minimum area: 1
Curve fit: Pixels
Coner threshold: Normal

I applied both ways to my NES Super Mario Bros sprite and the result was the same, however the 3-frames sprite is very basic.

How do those changes affect the more complex sprites with hundreds of colors?

Thanks.

View Replies !    View Related
[CS3] Tracing An Instance Name
Hello. Lets say I have a few movieclips. Inside the movieclips are buttons. When I press a button, it traces the movieclip's name that it is in. How do I do this?


Code:
my_btn.onPress = function() {
trace(_root._parent._name);
};


I can't figure out how to write the code O_O

View Replies !    View Related
Tracing Listeners?
Hello all,
Does anyone know if it is possible to trace out listeners. I have a class that is not responding to the listener i have setup for it and was wondering if there is a way to trace to make sure
1. the class is associated with the listener
2. the listener is broadcasting

etc...
thanks,
Derek

View Replies !    View Related
Tracing The XML Value Outside A Function
AS STRUCTURE :::::::::::::::::::::::::::::::::::::::::::::::::: ::::::

function loadXMLKey(loaded) {
if (loaded) {
xmlNodeKey = this.firstChild.firstChild;
VARDATA = xmlNodeKey.firstChild.firstChild;
}
/* ====Showing the value inside the function==== */
trace(VARDATA);
}
xmlKey = new XML();
xmlKey.ignoreWhite = true;
xmlKey.onLoad = loadXMLKey;
xmlKey.load("list.xml");
/* ====Not showing the value outside the function==== */
//*== Want to trace the value of VARDATA here == */
trace(VARDATA);


XML STRUCTURE :::::::::::::::::::::::::::::::::::::::::::::::::: ::::::

<?xml version="1.0"?>
<vlist>
<vset>
<valuev>TraceMe</valuev>
</vset>
</vlist>

View Replies !    View Related
Tracing Reserved Name...
OK, so poor planning in the (now non changeable XML file). Business owners have a distinction in there for a group of products called "class". I want to access the value of "class" but it's obviously a reserved name in Actionscript so I get a bunch of errors.

How do I access an attribute that's a reserved name?

Below is my failed code, if you needed to see it.


Code:
trace(item.@class);

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved