These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Embedded SWF in PDF

alexpapa
Registered: Nov 25 2008
Posts: 68

Good day,

I have a flash movie that imports data from an XML file. The current process is that it picks up a pre-defined xml filename in the same folder/directory as the flash.

My problem is now porting this to PDF. I would like to embed the xml file in the pdf and have the flash read it, is this possible with calls from action script?

Thanks!

joshcorey
Registered: Jul 14 2008
Posts: 79
I alexpapa;

You should be able to create a Richmedia annotation with the SWF as the source and in the "Add Flash" dialog when you click "Show Advanced Options" there is a "Resources" tab where you can attach resources. If you attach the XML file you should be able to access the data from Actionscript (the files in the resources folder are in the same dir as the SWF as far as Actionscript is concerned). Let me know if you are not getting it to work and I will look at it further.

Josh
gmlaster
Registered: Jan 14 2009
Posts: 2
I have a similar problem. I'm trying to get pictures to load into my XML-driven Flash file. I've got everything loaded into Resources, including the picture galleries. But Acrobat only sees the interface and the config.xml file. everything works perfectly except the pictures aren't loading up.

Any ideas? I really need to get this working.
dpcoffin
Registered: Jan 22 2009
Posts: 7
The first few times I tried to embed a swf, it didn't work. Then I tried checking the box "Pass context menu click to Flash Movie" in the Flash tab (in Advanced Options), and in Resources, I loaded all the files, including the swf again, shift-clicking to get them all, and loaded the image and thumb folders separately as Directories (mine have all been photo galleries so far). It worked, so that's what I do every time now. Dunno what the secret ingredient actually was, but the process is easy, so I just do it all.
HTH,
dc
gmlaster
Registered: Jan 14 2009
Posts: 2
Okay, I figured it out. Acrobat has limitations as to the resolution and size of the images it will display. Once I resized the images, they worked beautifully.
che stephen
Registered: Apr 13 2009
Posts: 1
i have placed an swf in indesign and exported as a pdf. the swf loads another swf into a movieclip. the loaded movie plays fine in an html page, and the flash player. however though the placed swf plays in the pdf, the loaded swf does not play. is this clear? help me work this out!

All CS3 applications, Acrobat 9.
joshcorey
Registered: Jul 14 2008
Posts: 79
Use the "Flash Tool" and select the main SWF, expand the "Advanced Options" in the "Insert Flash" dialog and on the "Resources" tab add the file the main SWF loads as a resource. That should allow the main SWF to load the other resource, if it does not load then check the path you are using, if you attach the file as a resource it is relative to current folder (path in the FLA).
adsoftindia
Registered: May 9 2010
Posts: 1
alexpapa wrote:
Good day,I have a flash movie that imports data from an XML file. The current process is that it picks up a pre-defined xml filename in the same folder/directory as the flash.

My problem is now porting this to PDF. I would like to embed the xml file in the pdf and have the flash read it, is this possible with calls from action script?

Thanks!