swc file for FLV/MP4 for playing movie over marker

233 views
Skip to first unread message

Hammad Abdullah

unread,
Dec 6, 2011, 7:52:13 PM12/6/11
to FLARToolKit userz
Hi,

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.

Makc

unread,
Dec 6, 2011, 8:00:04 PM12/6/11
to flartool...@googlegroups.com
On Wed, Dec 7, 2011 at 2:52 AM, Hammad Abdullah
<hammad....@gmail.com> wrote:
> I don't know how to create a SWC file for a video (flv or mp4)

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)

Makc

unread,
Dec 6, 2011, 8:20:50 PM12/6/11
to flartool...@googlegroups.com
waaait, my memory failed me,

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 :(

eric socolofsky

unread,
Dec 6, 2011, 9:48:35 PM12/6/11
to flartool...@googlegroups.com
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

Hammad Abdullah

unread,
Dec 8, 2011, 5:47:35 AM12/8/11
to FLARToolKit userz
Ah.. thats a relief :D

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

PY Tan

unread,
Feb 4, 2013, 3:15:44 AM2/4/13
to flartool...@googlegroups.com
i faced some problem, i follow this tutorial http://gotoandlearn.com/play.php?id=114 ,but when i wan to test the webcam, it came out those error :

1180: Call to a possibly undefined method FLARManager. HelloFLAR.as /HelloFLAR/src line 19 Flex Problem
1046: Type was not found or was not a compile-time constant: FLARManager. HelloFLAR.as /HelloFLAR/src line 10 Flex Problem

why?? thanks

Reply all
Reply to author
Forward
0 new messages