I am using the movie15_dvipdfmx package to embed movies to my textbook when it is compiled with XeLaTeX or the movie15 package when it is compiled with PDFLaTeX.

Here is my code for the PDFLaTeX compiler:

\movieref[pause]{movie-04-09}{ Video }

It makes poster from 2011-04-09.pdf and imports flash movie 2011-04-09.swf. Everything works as expected, in particular the last command in the above code produces bottom Video which starts or pause playback of the movie.

Same code for XeLaTeX looks a bit different:

\movieref[pause]{movie-04-09}{ Video }

The bottom does not operate, and click on the poster yields the message

Warning: Javascript window: Expected a stream object

If I substitute 2011-04-09.swf with AVI movie, click on the poster launch the movie but the button still does not operate.

Actually I am satisfied with version of my textbook produced by PDFLaTeX but I would like to invoke XeLaTeX in order to experiment with different fonts. I suspect that XeTeX + movie15_dvipdfmx currently are not able to import flash movies but my experience is limited by only two SWF movies. Origin of my troubles may reside in my SWF files.

Can somebody share here his experience on importing SWF movies into PDFdocuments, especially produced by xelatex.

1 Answer 1


My answer is my choice. I have moved to LuaLaTeX. It imports SWF painlessly in contrast to XeLaTeX. Although LuaTeX is still beta version, and I found couple of bugs, finally I managed to compile my presentation.

Here is my code:




        \setmathfont{Cambria Math}

\frametitle{Замкнутые траектории}


Фотоны, инжектированные под углом $\theta_\text{in}=\alpha l$,
$l=1,2,3\dots$ двигаются по замкнутой траектории и живут в ловушке «вечно».

$\alpha=8^\circ$, $l=3$, $\delta=0$.


I showed quite big chunck of code here because there remains subtle problem with frame around an icon printed by the \RunVideo command. I managed to remove it by setting color options for the hyperlink package, which is required by the movie15 package.

  • Could you share the code?
    – Emre
    Jun 11, 2011 at 18:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.