Good evening,
After days of debugging, I find myself cornered by identifying the absence of content in a dynamic xml field.
I am trying to build a function that will move the playhead to a new frame “waiting” when the field is undefined. When the field is populated, the playhead will move to an active frame “vote”.
I have attempted several variations on the following code and nothing has worked as of yet.
if (_root.mc_xml.b1v.text=="") {
trace(“waiting”);
} else if {
trace(“vote”);
}
// never got it to print anything but vote
There are five possible strings that can dynamically populate b1v from the xml: “Aye”, “Nay”, “Abstain”, “Absent”, “NP”.
When the vote is complete the xml nodes and their children disappear and flash sees the xml text field as undefined.
What is the correct AS to target or check for *null *or undefined?
is null
=null
!=null
=undefined
is undefined
!=undefined
I just need a boolean answer. Please someone release me from this loop.
Thanks