Processing (BETA) version 125+のためのリファレンス. もしあなたが旧バージョンを使っているならば、ソフトウェア内のリファレンスを使用してください。 もし何らかのエラーやコメントがあれば 私たちに知らせてください

Name

movieEvent()

Examples
import processing.video.*;
Movie myMovie;

void setup() {
  size(200, 200);
  myMovie = new Movie(this, "totoro.mov");
  myMovie.loop();
}

void draw() {
  image(myMovie, 0, 0);
}

// Called every time a new frame is available to read
void movieEvent(Movie m) {
  m.read();
}

import processing.video.*;
Movie myMovie, yourMovie;

void setup() {
  size(200, 200);
  myMovie = new Movie(this, "totoro.mov");
  yourMovie = new Movie(this, "catbus.mov");
  myMovie.play();
  yourMovie.play();
}

void draw() {
  image(myMovie, 0, 0);
  image(yourMovie, 100, 0);  
}

void movieEvent(Movie m) {
  if(m == myMovie) {
    myMovie.read();
  } else if(m == yourMovie) {
    yourMovie.read();
  }
}
Description Called when a new movie frame is available. Use the read() method to capture this frame. If there is more than one movie in the program, movieEvent() is called each time any of the movies has a new frame available. Use an if() to determine which movie is triggering the event. See the above example for implementation details.
Syntax
void movieEvent(Movie which) {
  statements
}
Parameters
statements any valid statements
which the movie with the event
Usage Web & Application
Related Movie
Updated on September 23, 2006 05:40:19pm PDT

Creative Commons License
この文書の原文はクリエイティブ・コモンズ(Creative Commons)Attribution-Noncommercial-Share Alike(表示・非営利・継承) ライセンスで公開されています。 このライセンスは同一の許諾条件の下で原作者のクレジットを表示し、また作品を営利目的で利用しなければ、作品に対して複製、頒布、展示、実演、二次的著作物の作成が行えることを示します。

© 2007 Processing.org