I have taken variable in one function and want to use that value in another function. Please give me example...
views:
38answers:
1
A:
I have not quite understand you pb, but return
you variable
from the function
and pass it as a parameter
to the another function
.
function foo():String {
var tmp:String="hello";
//...
return tmp;
}
function bar(value:String):void{
//...
trace(value); // will trace "hello"
}
var str:String=foo();
bar(str);
// or
bar( foo() );
Patrick
2010-02-18 10:33:25
hi patrick, I have posted detailed program, Please go through and suggest:Question: Making a custom glossarytags: flash, flex
mukherjeerimi
2010-02-18 10:58:43
Added an answer to your previous question
Patrick
2010-02-18 12:10:59