I was trying to re-create this example http://gotoandlearn.com/play.php?id=114
I don't know how to create a SWC file for a video (flv or mp4)
Furthermore he uses a Vid variable at 20:30 and I've tried everything
but it gives me
"Description Resource Path Location Type 1046: Type was not found or
was not a compile-time constant: Vid. FLARFYP.as /FLARFYP/src line 29
Flex Problem"
My complete code : http://paste2.org/p/1812116
I have all the ref. libs added and i've tried to make a swc file by
adding the flv/mp4 to a New Flex lib project
then linking it to the flar project, but still no joy.
Note: He is using FLARManager 0.6, I've tired it with both Latest and
0.6 one as well
but the result was same.
Thanks in advance.
for flv this is very straightforward with flash (pro, cs3/4/5), you
just import video to library to be embedded on timeline, then give it
a class name, and export swc by right-clicking any movie clip in
library. for mp4, I am not even sure it is possible at all. also, I
have no idea how to do this in flex :( could be possible, but I just
don't know. bulletproof option would be to embed as binary resource
and use NetStream.appendBytes (see http://www.bytearray.org/?p=1689)
On Wed, Dec 7, 2011 at 3:00 AM, Makc <makc.th...@gmail.com> wrote:
> for flv this is very straightforward with flash (pro, cs3/4/5), you
> just import video to library to be embedded on timeline, then give it
> a class name, and export swc by right-clicking any movie clip in
> library.
this does *NOT* work this way, after I just tried. the video shows up
in swc, if it is dropped into movie clip timeline somewhere, but
neither class is made for it, nor symbol name sticks o_O so I will
join OP and wait for someone to enlight us :(
i recommend you try FLARManagerExample_2D_Loader. if you drop your flv/mp4 onto the timeline and output a swf with nothing but the video, you should be able to load that swf without changing anything except the filename loaded by the Loader.
-e
Thanks.
On Dec 7, 7:48 am, eric socolofsky <e...@transmote.com> wrote:
> yeah, lots of people have contacted me saying this tutorial is broken with the exact same error. no idea what's up with it, sorry.
>
> i recommend you try FLARManagerExample_2D_Loader. if you drop your flv/mp4 onto the timeline and output a swf with nothing but the video, you should be able to load that swf without changing anything except the filename loaded by the Loader.
>
> -e
>
> On Dec 6, 2011, at 4:52 PM, Hammad Abdullah wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I was trying to re-create this examplehttp://gotoandlearn.com/play.php?id=114