[mtasc] Re: Embedded Video
David Rorex
drorex at gmail.com
Fri May 27 22:28:59 CEST 2005
Here's the xml file you can use with swfmill to create a movie with a
Video Object on stage, with instance name videoObj. You can convert
this into a swf with:
swfmill xml2swf videoObj.xml videoObj.swf
Then at runtime, everytime you need a video object, just loadMovie()
the videoObj.swf (or use moviecliploader & loadclip so you know when
it's done loading).
<?xml version="1.0"?>
<swf version="7" compressed="0">
<Header framerate="12" frames="1">
<size>
<Rectangle left="0" right="3200" top="0" bottom="2400"/>
</size>
<tags>
<SetBackgroundColor>
<color>
<Color red="255" green="255" blue="255"/>
</color>
</SetBackgroundColor>
<DefineVideoStream objectID="1" frames="0" width="160"
height="120" deblocking="0" smoothing="0" codec="0"/>
<PlaceObject2 replace="0" depth="1" objectID="1" name="videoObj">
<transform>
<Transform transX="0" transY="0"/>
</transform>
</PlaceObject2>
<ShowFrame/>
<End/>
</tags>
</Header>
</swf>
-David R
On 5/27/05, John Giotta <jdgiotta at gmail.com> wrote:
> I'm referring to only the video object not any of the components.
>
>
> On 5/27/05, David Rorex <drorex at gmail.com> wrote:
> > Because i went into the flash IDE and chose New Video from the library
> > dropdown menu, then selected that video, then dragged it onto the
> > stage, then compiled it. Using flasm, there is absolutely 0 code at
> > all in the swf. Using swfmill, which extracts more than just code, i
> > see some data in the xml:
> > <DefineVideoStream objectID="1" frames="0" width="160"
> > height="120" deblocking="0" smoothing="0" codec="0"/>
> >
> > and then you can see where the video is placed on the stage:
> > <PlaceObject2 replace="0" depth="1" objectID="1" name="vid">
> > <transform>
> > <Transform transX="1347" transY="2560"/>
> > </transform>
> > </PlaceObject2>
> >
> > swfmill also shows that there is no code in the swf.
> >
> > maybe there is a misunderstanding, i am talking about just plain video
> > objects, maybe you think i'm talking about the media player flash
> > component, which obviously does contain code, to handle the play/stop
> > buttens etc.
> >
> > -David R
> >
> > On 5/25/05, hank williams <hank777 at gmail.com> wrote:
> > > You are saying that there is no extra code in a video object. That may
> > > be, but as far as I am concerned it may not. The wierd thing about
> > > video objects is that they can only be created in the IDE unlike
> > > movieclips which may be created on the fly in actionscript. I have
> > > always thought it was odd that they cant be created in actionscript.
> > > Nevertheless, the difference, to me, suggests a potential difference
> > > in code. If you are certain that there is no additional code, I would
> > > like to know what the basis for your certainty is.
> > >
> > > Regards
> > > Hank
> > >
> > > On 5/25/05, David Rorex <drorex at gmail.com> wrote:
> > > > A video object wouldn't be something created by Macromedia, it would
> > > > be your own video that you embedded. The video object doesn't contain
> > > > any macromedia code. It's the same as drawing a movieclip in the IDE,
> > > > and decompiling the swf and then recompiling it. A video object is
> > > > like a movieclip object or a sound object or a font object.
> > > >
> > > > -David R
> > > >
> > > > On 5/25/05, hank williams <hank777 at gmail.com> wrote:
> > > > > He is suggesting that if he gets the "video" object, which can only be
> > > > > embedded by the IDE, by decompiling a swf and then recompiling it
> > > > > using an the video object that macromedia created that is only
> > > > > licensed for people that have bought the flash IDE, then he would be
> > > > > breaking, well not their license, but, more generally, copyright law.
> > > > >
> > > > > I agree.
> > > > >
> > > > > Regards
> > > > > Hank
> > > > >
> > > > > On 5/25/05, David Rorex <drorex at gmail.com> wrote:
> > > > > > Using swfmill violates license agreements?? Which license? The Flash
> > > > > > license? the swfmill license? the mtasc license? If you don't have a
> > > > > > Flash license, you can't violate it, and swfmill and mtasc are
> > > > > > opensource so you should be pretty safe there. What exactly do you
> > > > > > mean?
> > > > > >
> > > > > > -David R
> > > > > >
> > > > > > On 5/25/05, Johannes Nel <johannes.nel at gmail.com> wrote:
> > > > > > > i think this might violate license agreeements.
> > > > > > >
> > > > > > > On 5/25/05, Johan Lopes <johan.lopes at gmail.com> wrote:
> > > > > > > > Correct. You might also be able to use swfmill [http://iterative.org/swfmill]
> > > > > > > >
> > > > > > > >
> > > > > > > > On 5/25/05, Johan Lopes <johan.lopes at gmail.com> wrote:
> > > > > > > > > On 5/25/05, John Giotta <jdgiotta at gmail.com> wrote:
> > > > > > > > > > I'm going to assume I'll still need to produce a SWF from the Flash
> > > > > > > > > > IDE in order to utilize a Video Object. Correct?
> > > > > > > > > > --
More information about the mtasc
mailing list