swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] PDF2SWF output bundled in Movie Clips


From: Matthias Kramm
Subject: Re: [Swftools-common] PDF2SWF output bundled in Movie Clips
Date: Thu, 2 Oct 2008 21:44:49 +0200
User-agent: Mutt/1.5.11

On Thu, Oct 02, 2008 at 01:45:19AM +0530, Jaguarnac <address@hidden> wrote:
> Yes. One movieclip for each page. If those can be placed on different  
> frames with some instance name, even better.
> 
> I tried to find any flag for pdf2swf that does this but couldn't find  
> one in help or manual.

It's not supported "as such" yet.
But you can accomplish it by doing the following:
Run
    pdf2swf file.pdf -o page%.swf
.
Then, create a swfc script "library.sc" with the following content
(using the output of pdf2swf -I and a scripting language
 of your choice):

.flash name=library.swf
    .swf page1 page1.swf
    .frame n+=1
    .swf page2 page2.swf
    .frame n+=1
    .swf page3 page3.swf
    .frame n+=1
    .swf page4 page3.swf
    .frame n+=1
        ... and so on ...
.end

Run this through
    swfc library.sc
.
The resulting file library.swf should be in your desired format.

> Does this mean that the output can have no direct talks with AS3 swfs?

It means that you can't place AS3 ActionScript in swfc files yet. 
As long as you don't (like in the script above), the output is perfectly
Flash9 compatible.

Greetings

Matthias






reply via email to

[Prev in Thread] Current Thread [Next in Thread]