PDA

View Full Version : contentPath not working


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:

FX KILL
03-16-2008, 01:54 AM
ah, found the solution. Rather strange how to fix this. Now I just need to figure out how to get the skin to show up; it just loads the default video player with no controls.

http://groups.google.com/group/macromedia.flash/browse_frm/thread/9cfebb20fe2e6ec7/a5d33c00589ba7bd?lnk=gst&q=FLVPlayback&rnum=2