these strings works with null data
ca.message.text = message; ca.b1.label = YES; ca.b2.visible = true; ca.b2.label = NO;
ca.message = null
ca.b1 = null;
ca.b2 = null;
It's child components, so they are created after you add your componentn to visible list.
You can add creationComplete event listener and set this properies there.
Do messageNumber, callbackFunction, and message have values when you try to use them?
Replace the variables messageNumber, callbackFunction, and message with hardcoded values if possible one by one so you can know which one is causing the error, then it may become clear where the problem is, or report that here and we may be able to help.
If this post answered your question or helped, please mark it as such.
It fails as soon as I use a child.
You are not providing enough information for use to help.