Hi,
simple version of my problem code.weighNum_mc is a single frame containing num_txt textField.PHP Code:
function setup():void{
tableWeigh_mc.gotoAndStop("Green");
tableWeigh_mc.weighNum_mc.num_txt.text = "5";
}
setup();
tableWeigh_mc has several frames, the first with a stop action does NOT contain the weighNum_mc.
The frame "Green" does have that textfield.
I thought by going to frame Green first I would then be able to set num_text.text.
That makes sense but I get the old "Cannot access a property or method of a null object reference" error.
This makes no sense to me, to test further I made a new movie, I copied the single frame with tableWeigh_mc from my main timeline and pasted it in the new movie.
By copying the frame everything including the instance names etc must be exactly the same.
I then coded the same function. It worked. I figured well I must have a typo I am not seeing, so I copied the code back to the original movie.
It does not work!!!! It throws the same error
I am absolutely baffled, any ideas?
Thanks
Mark