[swfmill] embedding video and accessing it as a class
Will
will at tekimaki.com
Mon Jun 30 13:23:54 PDT 2008
Hi - hope someone is tuned in that can help.
I'm happily working with swfmill and haxe to generate downloadable swf
files with all assets embedded. But I'm stuck on embedding flv assets.
I have various assets like
<clip id="SomeImage" file="/path/to/png">
<clip id="SomeSwf" file="/path/to/swf">
which I pump into swfmill and then via haxe and as3 can instantiate like so:
var imageClass:Object = getDefinitionByName('SomeImage');
img = new imageClass();
var swfClass:Object = getDefinitionByName('SomeSwf');
swf = new swfClass();
THOSE WORK GREAT!
Then I tried this for flv flies:
<clip id="SomeVideo" file="/path/to/flv">
but the flash player complains about the compiled swf: "the swf contains
invalid data."
and this is just doesnt like at all since it does not seem to be defined
properly as an accessible class.
<video id="SomeVideo" file="/path/to/flv">
-------------- next part --------------
A non-text attachment was scrubbed...
Name: will.vcf
Type: text/x-vcard
Size: 138 bytes
Desc: not available
Url : http://osflash.org/pipermail/swfmill_osflash.org/attachments/20080630/c9a7bfc5/attachment.vcf
More information about the swfmill
mailing list