Opening PDF's from a Flash CD-ROM

  • elBurroDiablo
  • Novice
  • Novice
  • User avatar
  • Posts: 16

Post 3+ Months Ago

Hello. I'm having a minor problem here that seems that it would be an easy fix, but I am having a tough time finding the solution.

I have a developed a couple Flash-based CD-Roms now, both of which had a directory that contained several PDF's for the viewer to open directly through the Flash presentation.

I have the PDF's opening with no problems, but when testing on a Windows PC, the PDF's open BEHIND the Flash presentation (Flash Projector to be specific). The problem is the fact that the viewer would not even notice that a new file just opened, unless they were smart enough to either check behind or close the Flash window (I'm sure that most of you know that most viewers AREN'T smart!).

Anyway, does anyone have any suggestions??? Much appreciation...
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

No idea, never heard of this problem. The window should open up in front of the projector. *scratches head*
  • elBurroDiablo
  • Novice
  • Novice
  • User avatar
  • Posts: 16

Post 3+ Months Ago

OK...what's really strange is that its only happening on some of the PCs. I am now assuming that it's a preference withing Adobe Acrobat.
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

what command you use to open the pdf files?
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

I believe the only option is a getURL(). An 'exec' fscommand is for launching programs, not opening filetypes already related to a program.
  • suss
  • Student
  • Student
  • User avatar
  • Posts: 70
  • Loc: Mainly Sweden

Post 3+ Months Ago

I am wondering how to open a pdf through flash
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8398
  • Loc: USA

Post 3+ Months Ago

http://brianalexander.com/2006/01/how-t ... jector.htm

http://www.helmutgranda.com/2004/01/06/ ... rom-flash/

Hope that helps.
  • suss
  • Student
  • Student
  • User avatar
  • Posts: 70
  • Loc: Mainly Sweden

Post 3+ Months Ago

the one for mac was good but the second one is obsolete as the files are on a cd , I stated that but it must have goten cut somehow.

its a mainly pc cd that will have to open different kinds of pdfs....
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8398
  • Loc: USA

Post 3+ Months Ago

The guy on this forum figured out the solution.
  • suss
  • Student
  • Student
  • User avatar
  • Posts: 70
  • Loc: Mainly Sweden

Post 3+ Months Ago

that doesnt work here erither =/
is there a flash version clash perhaps? I have player 7. .. and flash MX..

I downloaded proxy and tested their test, then re-did it a bit to make it fit in with what was said in the fla and it still did not work. I click the button and nothing happens.

I need to get this sorted...
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8398
  • Loc: USA

Post 3+ Months Ago

This article looks like it will work.
  • suss
  • Student
  • Student
  • User avatar
  • Posts: 70
  • Loc: Mainly Sweden

Post 3+ Months Ago

It probably would if I had director... but also he stated he's been opening pdfs without trouble before, but now when he needed to open a bunch of different he changed tactics.. all mine are pdfs so I dont understand why I am having so much trouble..
  • zhaojany
  • Student
  • Student
  • User avatar
  • Posts: 79

Post 3+ Months Ago

use “fscommand" and a "bat" file
  • suss
  • Student
  • Student
  • User avatar
  • Posts: 70
  • Loc: Mainly Sweden

Post 3+ Months Ago

could you possible be a little bit more elaborate? and also isnt that what they did in the first "this" link?
  • zhaojany
  • Student
  • Student
  • User avatar
  • Posts: 79

Post 3+ Months Ago

like that first link of ""this"

first you got a button in you fla file

then give your button this
on(release){
fscommand("exec","openPdf.bat")
}

after that creat a file at the same place where your fla file located and name it as "fscommand"

as all that done you can write your bat file use your notepad
like this:

echo off
start yourPdf.pdf
exit

and name your bat file the same name as you write in your fla file "openPdf.bat" ,put it in your fscommand file

then publish your flash as an exe file then test it
  • zhaojany
  • Student
  • Student
  • User avatar
  • Posts: 79

Post 3+ Months Ago

PS: better you use flash8 this may not work if you use cs3
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

still, i would use getURL().
The path given to it can be relative or absolute.
Only it has to be placed in a onRelease statement. Flash access the default browser and if the browser have associated the pdf extension to acrobat reader, it will open it.
i.e.:
Code: [ Select ]
btnDo.onRelease = function()
{
    getURL("D:\\doc\\documentatie2\\Graphic\\PDFs\\test.pdf");
}
  1. btnDo.onRelease = function()
  2. {
  3.     getURL("D:\\doc\\documentatie2\\Graphic\\PDFs\\test.pdf");
  4. }
  • suss
  • Student
  • Student
  • User avatar
  • Posts: 70
  • Loc: Mainly Sweden

Post 3+ Months Ago

I'm sorry to say that this does not work for me either.
I have uploaded my fla here:

Its the link that says "Halmstad adresskalender 1907" I have been testing on

http://www.annasuss.com/fla.zip

(about 3 mb)
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

that's what usually happens when you don't read the help.
from MX2004 help:
Quote:
The exec command can contain only the characters A-Z, a-z, 0-9, period ()., and underscore (_). The exec command runs in the subdirectory fscommand only. In other words, if you use the fscommand exec command to call an application, the application must reside in a subdirectory named fscommand.

Post Information

  • Total Posts in this topic: 19 posts
  • Users browsing this forum: No registered users and 10 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.