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:
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);
}
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:
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)