问题
I've been pulling my hair trying to figure this one out.
I thought I am doing something very simple, but it fails miserably.
All I am doing is this: I open a new document, import 1 video, then add another scene and import another video into the 2nd scene. I make sure the videos are named instances.
Now, I press "Test movie" (Ctrl + Enter), but I only get a 2nd movie playing with the following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fl.video::UIManager/http://www.adobe.com/2007/flash/flvplayback/internal::hookUpCustomComponents()
at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback/internal::handleVideoEvent()....
WHYYYYY??????
I've tried everything I could think of, but why something seemingly so simple doesnt work???
回答1:
I did some tests and I got the same behavior as you've mentioned in your question.
These are my remarks about the problem :
I think that's a bug in the
FLVPlaybackcomponent.The problem is fired when you have (at least) two scenes and when the
FLVPlaybackcomponent(s) inserted in the first scene(s) has no skin (e.g. as your example, you have two scenes, and theFLVPlaybackcomponent inserted in the 1st one has no skin). The problem can also be fired when you have manyFLVPlaybackcomponents inserted in different frames even on the same scene ...To avoid the problem, you can add a
stop()in the first scene (or each scene), which I think is a normal thing otherwise the animation playhead will continuously play all scenes.
Hope that can help.
来源:https://stackoverflow.com/questions/34003944/adding-2-videos-in-2-different-scenes-doesnt-work-error-1009