[swfmill] embedding video and accessing it as a class

Will will at tekimaki.com
Mon Jun 30 14:01:54 PDT 2008


update: I tried
<video id="somevid" import="flv">
<clip id="vidmc">
<frame>
<place id="somevid" depth="1">
</frame>
</clip>

no more errors - but when I create an instance of vidmc I just get a 
blank empty mc. Found one thread from 2005 that says swfmill cant add 
flvs.  Is there anyway to embed a flv?


Will wrote:
> 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">
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> swfmill mailing list
> swfmill at osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>   

-------------- 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/c0981aec/attachment.vcf 


More information about the swfmill mailing list