Compiling patches in Onyx-VJ with ANT

This is the way to compiling patches with ANT.

You can use the instructions on http://bjornman.blogspot.com/2009/07/adding-ant-to-adobe-flash-builder-4.html to add ant support to your flash builder setup.

Do a svn checkout of the Patches project from http://code.google.com/p/onyx-vj/source/checkout (I suppose you checked out InstallPackage and Onyx-VJ-AIR before).

Edit build.ini to match your flash builder sdk path.

Select ant.build.xml in the folder of the patch you want to build.

Select in the top menu Run/External tools/External tools configuration, right-click on Ant Build and select New: the Buildfile should get the path of the ant file you selected before.

Put a name and click Apply.

Then Run and you have a compiled swf in your onyx library.

 

 
Onyx Air download link

Here is the link to the new compiled Onyx-vj 4 air file.

It supports autoupdate for future versions!

Have fun

 
Onyx-VJ AIR adapter

The AIR adapter retrieves folders and files from local file system.

In FirstRunState.as it is instanciated: Onyx.initializeAdapters(new AIRAdapter(folder.nativePath), new UserInterfaceAPI());

The AIR_ROOT gets the value of the library folder

Then the Browser window is created and call queryDirectory which instanciates a new AIRDirectoryQuery which enumerates the directories using an event listener on the library folder.

The createUser Objects function creates folders and files in the Browser window

On click on a folder, the AIR adapter does a new AIRDirectoryQuery

 

 

 
Onyx-VJ Settings.xml file creation process

The settings.xml file contains XML tags for your setup.

First launch

At the first launch of Onyx-VJ, you are prompted to create a library where your settings and assets will be stored.

After you selected a folder, this folder will be stored in a folder.ini file in C:\Users\%username%\AppData\Roaming\Onyx-VJ\Local Store (on Windows).

The default.xml file is then created in the %path-to-library%\Onyx-VJ\settings folder

When Onyx-VJ is closed, the settings.xml file is written, containing the settings modified during the session.

Next sessions

If the %path-to-library%\Onyx-VJ\settings\settings.xml file does not exist, it is read from default.xml in the same folder.

i'uyj

 
Onyx-VJ code explained: code sequence

main.as initializes these Application states:

  • ShowOnyxState : shows StartupImage
  • FirstRunState  : creates/loads app-storage:/folder.ini, copy files from InstallPackage to the library
  • SettingsLoadState : loads settings/settings.xml, creates the output display
  • InitializationState
  • SettingsApplyState
  • PauseState
 
<< Début < Préc 1 2 3 Suivant > Fin >>

Page 1 de 3
Bruce [at] Batchass [dot] fr +33667672694