Load a file by passing a file name into a class?

hey guys. I’ve got a video class that i have made and I want to be able to tell the class which video to load from my testApp.cpp in setup()

at the moment I’m trying this in my testApp>


and this in my class setup

void MovieClass::setup(string fileName)  

this isn’t working though…can someone tell me where I’m going wrong.


you don’t need to use ofToDataPath, that’s done by the videoplayer automatically

Great! that worked. too easy. thanks.