FX KILL
03-15-2008, 11:58 PM
I'm having problems inputting the contentPath for the built in "FLVPlayback" component. For some reason it won't load this way. I was able to recreate the problem in a much more simpler form.
button.onPress = function ():Void {
_root.attachMovie("video_interface", "video_mc", getNextHighestDepth);
}
bunton2.onPress = function():Void {
_root.video_mc.videoplayer.contentPath = ("mediafiles/punching.flv");
}
or
//does the same thing
button.onPress = function ():Void {
_root.attachMovie("video_interface", "video_mc", getNextHighestDepth);
_root.video_mc.videoplayer.contentPath = ("mediafiles/punching.flv");
}
What it does is when 'button' is pressed, it just gets the movieclip (with the FLVPlayback component in it), and places it on the stage. The second button just gives it the contentPath. There isn't anything wrong with the video, i'm able to play it when I put the path in the regular way with the parameters window. I think I'm missing something on line 4. Please help :eek:
button.onPress = function ():Void {
_root.attachMovie("video_interface", "video_mc", getNextHighestDepth);
}
bunton2.onPress = function():Void {
_root.video_mc.videoplayer.contentPath = ("mediafiles/punching.flv");
}
or
//does the same thing
button.onPress = function ():Void {
_root.attachMovie("video_interface", "video_mc", getNextHighestDepth);
_root.video_mc.videoplayer.contentPath = ("mediafiles/punching.flv");
}
What it does is when 'button' is pressed, it just gets the movieclip (with the FLVPlayback component in it), and places it on the stage. The second button just gives it the contentPath. There isn't anything wrong with the video, i'm able to play it when I put the path in the regular way with the parameters window. I think I'm missing something on line 4. Please help :eek: