MACROMEDIA FLEX-FLEX BUILDER Manuale Utente Pagina 35

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 39
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 34
2008 JavaOne
SM
Conference | java.sun.com/javaone |
35




Creating a Library (SWC) from Java Technology
Library lib=new Library(); // Create the Library.
lib.setOutput(new File(assetRoot, "MyComponents.swc"));
lib.addComponent(new File(assetRoot, "MyButton.mxml"));
lib.addComponent(new File(assetRoot, "MyLabel.mxml"));
lib.setLogger(new ComplexLogger());
// Add the new SWC file to the library-path.
Configuration config = app.getDefaultConfiguration();
config.addLibraryPath(new File[]
{new File(assetRoot, "MyComponents.swc")});
app.setConfiguration(config);
// Add Application and Library objects to the Project.
project.addBuilder(app);
project.addBuilder(lib);
project.dependsOn(app, lib);
project.build(true); // finally do the custom build from Java
}
Vedere la pagina 34
1 2 ... 30 31 32 33 34 35 36 37 38 39

Commenti su questo manuale

Nessun commento