use of org.jwildfire.create.tina.io.FlameMovieWriter in project JWildfire by thargor6.
the class TinaSWFAnimatorController method movieToClipboardButton_clicked.
public void movieToClipboardButton_clicked() {
try {
updateMovieFields();
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
String xml = new FlameMovieWriter().getMovieXML(currMovie);
StringSelection data = new StringSelection(xml);
clipboard.setContents(data, data);
} catch (Throwable ex) {
errorHandler.handleError(ex);
}
}
use of org.jwildfire.create.tina.io.FlameMovieWriter in project JWildfire by thargor6.
the class TinaSWFAnimatorController method movieToDiscButton_clicked.
public void movieToDiscButton_clicked() {
updateMovieFields();
try {
JFileChooser chooser = new JWFMovieFileChooser(prefs);
if (prefs.getOutputJWFMoviePath() != null) {
try {
chooser.setCurrentDirectory(new File(prefs.getOutputJWFMoviePath()));
} catch (Exception ex) {
ex.printStackTrace();
}
}
if (chooser.showSaveDialog(swfAnimatorFlamesPanel) == JFileChooser.APPROVE_OPTION) {
File file = chooser.getSelectedFile();
new FlameMovieWriter().writeFlame(currMovie, file.getAbsolutePath());
prefs.setLastOutputJWFMovieFile(file);
}
} catch (Throwable ex) {
errorHandler.handleError(ex);
}
}
Aggregations