hxCodec icon indicating copy to clipboard operation
hxCodec copied to clipboard

mp4 video is in path, not playing, app crashing

Open HeyCodeSnooper opened this issue 1 year ago • 0 comments

i have a video in my haxeflixel project named secret.mp4, for a little easter egg >:) and i get an error message on close when the FlxButton i made is pressed and crashes the game in the vscode terminal (screenshot attached)

screenshot: Screenshot 2024-04-06 221729


this is the callback function that isnt finding the file.

function funny():Void { var funny:FlxVideo = new FlxVideo(); funny.onEndReached.add(funny.dispose); funny.play("assets/videos/secret.mp4"); cutsceneTimer.start(12, donewithfunny, 1); }


EDIT: the file IS there! (screenshot) Screenshot 2024-04-06 223105

HeyCodeSnooper avatar Apr 07 '24 02:04 HeyCodeSnooper