FORUMS: list search recent posts

tracing VARs across functions

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
MadMac66
tracing VARs across functions
on Mar 29, 2007 at 8:48:28 pm

Hi, how do I track a variable across functions. I thought it used to be that declaring a var inside a function made it local to the function only. Is this still true. Is tere a way to find the value of a var in one function from inside another function??

many thanks
mm66


Return to posts index

Thumbslinger
Re: tracing VARs across functions
on Apr 1, 2007 at 1:25:32 am

What are you trying to do exactly? Declaring a global variable is easier and can be manipulated via a function.

One way is to create a specific function only for one condition, and then in that function define the new value for the variable.

In an entirely different function check for a condition where that previous function is called and then reassign or get the value.

I might not be understanding the actual thing you want to do so maybe more explicit, like "I'm trying to carry a total from one action to another" or etc.



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]