TypeError: Error #1009: Cannot access a property or method of a null object reference.
i have animation tween on the main timeline.
- on the first frame, objects appear on the satge:
var midframe:Number = 20;
- on the midframe:
stop();
- on the last frame, objects disappear from the stage:
(root.loaderInfo.loader.root as Object).loadSection();
it plays Ok, but
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at section6_fla::MainTimeline/frame130()
the error appears when the play head reaches the last frame (130)
Thanks for your time
Adobe Flash
Last Comment
Madkhali
8/22/2022 - Mon
blue-genie
does this
(root.loaderInfo.loader.root as Object).loadSection();
refer to the object that no longer appears on the stage.
Madkhali
ASKER
i did not get your point :), sorry
this error appears when i test the swf alone or when i load it inside anither swf
the whole code in the same time line (inside the loaded swf)
Thanks
blue-genie
you said >- on the last frame, objects disappear from the stage:
and then you said > (root.loaderInfo.loader.root as Object).loadSection();
so i'm asking does that loadInfo.loader.root blah blah refer to the objects that have dissapeared.
reason being when you get a null error you're trying to reference something that doesn't exist anymore.
>>the whole code in the same time line (inside the loaded swf)
you're loading one swf file into another?
best bet would be to upload your files, add .txt extension to the end.
(root.loaderInfo.loader.ro
refer to the object that no longer appears on the stage.