deviation
01-11-2008, 10:45 PM
Hi all,
I am trying to get the FLVPlayback component working while having the project compiled directly with Flex SDKs mxmlc compiler.
Having the SDK installed including the latest hotfix everything compiles fine using the -library-path+=my_path_to_SWC argument.
The stream starts, I can listen to the sound as well and the skin is loaded and working too. But no video is displayed.
It seems like having to do with the embedding of the swc. It just works if I add a check inside the FLVPlayback.as for existence of the boundingBox_mc. Otherwise it throws a RuntimeError for null pointing to boundingBox_mc.visible ... with other words: the boundingBox_mc is null. That leads me to the question how to use this component in this context?
Below is the code I am using ... well, nothing surprising:
moviePlayer = new FLVPlayback();
moviePlayer.x = MOVIE_X;
moviePlayer.y = MOVIE_Y;
addChild(moviePlayer);
moviePlayer.skin = Configuration.getInstance().dir + 'SkinOverAllNoVolNoCaptionNoFull.swf';
moviePlayer.source = data.movie.guid;
moviePlayer.skinBackgroundColor = 0x666666;
moviePlayer.skinBackgroundAlpha = 0.5;
I am trying to get the FLVPlayback component working while having the project compiled directly with Flex SDKs mxmlc compiler.
Having the SDK installed including the latest hotfix everything compiles fine using the -library-path+=my_path_to_SWC argument.
The stream starts, I can listen to the sound as well and the skin is loaded and working too. But no video is displayed.
It seems like having to do with the embedding of the swc. It just works if I add a check inside the FLVPlayback.as for existence of the boundingBox_mc. Otherwise it throws a RuntimeError for null pointing to boundingBox_mc.visible ... with other words: the boundingBox_mc is null. That leads me to the question how to use this component in this context?
Below is the code I am using ... well, nothing surprising:
moviePlayer = new FLVPlayback();
moviePlayer.x = MOVIE_X;
moviePlayer.y = MOVIE_Y;
addChild(moviePlayer);
moviePlayer.skin = Configuration.getInstance().dir + 'SkinOverAllNoVolNoCaptionNoFull.swf';
moviePlayer.source = data.movie.guid;
moviePlayer.skinBackgroundColor = 0x666666;
moviePlayer.skinBackgroundAlpha = 0.5;