Read movie file from a tab

edited January 2014 in How To...

The code i have is quite long so i decided to put it in different tabs. One of the tabs is Movie which of course needs to play videos. However i get a null pointer and already called beginDraw(). How do i play videos if the new Movie() is in a different tab than the main one.



  • Answer ✓

    Processing got a pre-processor which joins all ".pde" tabs together before compiling as Java!
    So it doesn't matter if you got more than 1 tab, they'll all be 1 at the end anyways! >-)

    Now, if you got any tabs w/ ".java" extension, the pre-processor won't touch it. Those behave as compliant java programs! @-)

  • Thanks i already solved it :). Same as the audio :).

Sign In or Register to comment.