Tutorial: build a basic onyx-vj plug-in with Flex Builder

This tutorial is a simple quick start to build a swf plug-in for Onyx-VJ in Flex Builder.
Step 1: create a new Actionscript project:
New as project


Step 2: give the project a name an select a location outside the library.
Project name

Step 3: Keep the default settings but select a folder inside the library for the debug swf output:
Step 3

Step 4: Right-click the project, select Properties then add the OnyxSDK SWC file to the project:
Add swc

Uncheck the 'Generate HTML wrapper checkbox to avoid unneccesary files to be copied in the library:

Uncheck HTML wrapper


Step 5: write some code knowing the following hints:
- import the flash and onyx files you need
- set the size of 320x240 pixels and 24 fps
- your class should extend the Patch class.
- declare a BitmapData variable that will be rendered (source).
- declare the constructor.
- implement the render function to modify the bitmap data and return it as a RenderInfo.
- clean all objects in a dispose function

code

This is my first tutorial, let me know what subjects you want to be explored in the future...

 
Explosion plug-in for Onyx-VJ 3.x

Screen capture of explosion plug-in in action

I adapted André Michelle's Explosion experiment for Onyx-VJ 3.x.

Copy Explode.swf in your Onyx-VJ library, and then click on the render view or Ctrl+click on the Explode layer you created to see the explosions!!!

The source can be found here

 
PixelRain plug-in for Onyx-VJ

This is the first Onyx-VJ plug-in I wrote in may 2008.

I adapted André Michelle's PixelRain experiment for Onyx-VJ.

Copy PixelRain.swf in your Onyx-VJ library, and then click on the render view or Ctrl+click on the PixelRain layer you created

The source can be found here


Contact me (bruce [at] batchass.fr) if you need explanation on how to compile or enhance.
 
<< Début < Précédent 1 2 Suivant > Fin >>

Page 2 sur 2
Bruce [at] Batchass [dot] fr +33667672694