On 10/13/06, Rifled Cloaca <[EMAIL PROTECTED]> wrote:
Hi FlashCoders,

I'm just getting started with Video, and I'm adding it to a project I'm
developing in FlashDevelop, compiled from AS (no FLA).  Is there a way to
attach Video to an object using only code?  The Flash Docs say you need to
place a Video Component on the stage... I have no stage...

I haven't tried FlashDevelop (because it doesn't work with Mono), but
AFAIK it includes swfmill (<swfmill.org/pre/>). You can use it to make
a clip with a video object for the library:

Make a file called video.xml:

<?xml version="1.0" encoding="iso-8859-1" ?>
<movie width="160" height="120" framerate="24" version="8">
 <background color="#ffffff"/>
 <frame>
   <library>
     <clip id="video">
     <frame>
       <video id="videoobject"/>
       <place id="videoobject" name="video"/>
     </frame>
     </clip>
   </library>
 </frame>
</movie>

Then make the SWF:
swfmill xml2swf video.xml video.swf

Then compile into that SWF, or import it as a shared library. You can
then use attachMovie, the symbol ID will be "video", and that clip
will contain the video object, named "video". Maybe FlashDevelop even
can do that for you.

HTH,
Mark
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to