I come from a purely CS4 background and I'm completely new to Ant and the build process. I've been having a go at creating my own plugin, so far i have done the following (already downloaded core, devkit and plugins from svn):
1) Create a new folder for my plugin called carousel in my flowplayer dev directory (flowplayer.core and standard plugins alongside).
2) Duplicated the build files from the controls directory and placed them in my new plugin folder.
3) Modified the build.xml (located in carousel/example/) file to read as follows:
http://paste-it.net/public/g54759e/ (problems posting with code on forum)
4) Created the following folder structure in example/src/actionscript:
com/myco/carousel
5) Added the following as file to the com/myco/carousel directory:
Carousel.as:
http://paste-it.net/public/jd9a66b/
6) Compiled successfully using Ant:
http://paste-it.net/public/ne09a80/
7) Created example/example folder and added the following files:
- flowplayer-3.1.4.min.js
- flowplayer.carousel.swf
- flowplayer.controls.swf
- flowplayer.swf
- index.html
- style.css
index.html:
http://paste-it.net/public/v264f0a/
8) Test the page. Flowplayer runs, video / plugin do not. Log states that plugin never loads.
9) Test the page without plugin code. Video runs.
10) Create test fla file, which includes flowplayer components and has com.myco.carousel.Carousel as doc class.
11) Test run, compiles with following error:
5000: The class 'org.flowplayer.model.Plugin' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.
I'm stuck either way now and I don't know how best to test it, can someone help please :) ?
Thanks,
eb_dev
1) Create a new folder for my plugin called carousel in my flowplayer dev directory (flowplayer.core and standard plugins alongside).
2) Duplicated the build files from the controls directory and placed them in my new plugin folder.
3) Modified the build.xml (located in carousel/example/) file to read as follows:
http://paste-it.net/public/g54759e/ (problems posting with code on forum)
4) Created the following folder structure in example/src/actionscript:
com/myco/carousel
5) Added the following as file to the com/myco/carousel directory:
Carousel.as:
http://paste-it.net/public/jd9a66b/
6) Compiled successfully using Ant:
http://paste-it.net/public/ne09a80/
7) Created example/example folder and added the following files:
- flowplayer-3.1.4.min.js
- flowplayer.carousel.swf
- flowplayer.controls.swf
- flowplayer.swf
- index.html
- style.css
index.html:
http://paste-it.net/public/v264f0a/
8) Test the page. Flowplayer runs, video / plugin do not. Log states that plugin never loads.
9) Test the page without plugin code. Video runs.
10) Create test fla file, which includes flowplayer components and has com.myco.carousel.Carousel as doc class.
11) Test run, compiles with following error:
5000: The class 'org.flowplayer.model.Plugin' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.
I'm stuck either way now and I don't know how best to test it, can someone help please :) ?
Thanks,
eb_dev