referencing variable: component parameter panel
here sample fla....
http://swsidev.tafensw.edu.au/electricaltrades/sampleforposting.fla (file
size 48 k)
i have posted couple of times, fla
someone work out answer me...if appreciate
heaps.
i average programmer little piece of code works......
a=0; //these variables , b set other components on
the fly.
b=0;
booleancondition=a||b; //set boolean statement
trace (booleancondition); //trace shows either 0 or 1
if (booleancondition==1){
trace("condition true")
}
if (booleancondition==0){
trace("condition false")
}
now....what want instead of explicity stating boolean
equation in script, able enter (for convenience)
the boolean via varable called "booleancondition" defined in
parameters panel component. thought easy, have
not been successful after many hours.
eg
a=0; //these variables , b set other components on
the fly.
b=0;
trace (booleancondition); //the output panel shows a||b whereas before
contained 0 or 1 ....mmmm.
if (booleancondition==1){
trace("condition true")
}
if (booleancondition==0){
trace("condition false")
}
note doesn't work, booleancondition seems hold a||b ,
not evaluated answer....
help!!!
any appreciated....it seems not referencing
variable situation, stuffed if can work out.
also have sample fla can send have
a go.
thanks
adam :)
adam.west@@tafensw.edu.au (take out 1 of @ email me)
http://swsidev.tafensw.edu.au/electricaltrades/sampleforposting.fla (file
size 48 k)
i have posted couple of times, fla
someone work out answer me...if appreciate
heaps.
i average programmer little piece of code works......
a=0; //these variables , b set other components on
the fly.
b=0;
booleancondition=a||b; //set boolean statement
trace (booleancondition); //trace shows either 0 or 1
if (booleancondition==1){
trace("condition true")
}
if (booleancondition==0){
trace("condition false")
}
now....what want instead of explicity stating boolean
equation in script, able enter (for convenience)
the boolean via varable called "booleancondition" defined in
parameters panel component. thought easy, have
not been successful after many hours.
eg
a=0; //these variables , b set other components on
the fly.
b=0;
trace (booleancondition); //the output panel shows a||b whereas before
contained 0 or 1 ....mmmm.
if (booleancondition==1){
trace("condition true")
}
if (booleancondition==0){
trace("condition false")
}
note doesn't work, booleancondition seems hold a||b ,
not evaluated answer....
help!!!
any appreciated....it seems not referencing
variable situation, stuffed if can work out.
also have sample fla can send have
a go.
thanks
adam :)
adam.west@@tafensw.edu.au (take out 1 of @ email me)
i don't know (maybe i've missed something) easy way parse string (which have component parameter) evaluate. think long have limited set of boolean operators, following approach should work. note need code in error condition handlers.
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment