SWF Studio Commands for Opening External File
Hello,
I am trying to open an external file (.pdf .xls .ppt) from a projector using SWF Studio v3.4.
I have read about opening using a .bat, .exe and .txt combination - but I hear that I can do it directly from the Projector (made with SWF Studio) without the need of these extras.
So to be specific, what EXACT code should I add on the button release function in order to achieve this.
Thanks in advance.
K.
can this approach be used to load swf from file within exe?
I want to include a swf within the .exe and add it as a child to my swf at runtime, so it doesn't have to appear/be within the folder that contains the projector. I.e. not "external". I've tried just adding it to the layout folder under the "files" tab, using the normal loader/url construction:
"var request:URLRequest = new URLRequest("filename.swf");
var loader:Loader = new Loader();
loader.load(request);
this.addChild(loader);"
but that didn't work, SO I found this thread and thought I'd try:
var request:URLRequest = new URLRequest(ssCore.Shell.open({path:"internal:filen ame.swf", verb:"open"}));
var loader:Loader = new Loader();
loader.load(request);
this.addChild(loader);
But I got an error when compiling the "primary" swf- "1120:Access of undefined property ssCore" and when running the exe, it just ran the "primary" swf and didn't load the target swf.
The call is being made from frame 2 of the "primary" swf timeline, and the normal syntax works fine when the target swf is just a swf in the same folder as the exe. But what I'm looking to do is "hide" the target swf within the exe.
Can do? How?
PPS file open 2 to 3 times
Hi
I'm using ssCore.Shell.open to open external files bundled in my application and it works like a charm for all file types except for PowerPoint fullscreen presentations (PPS) where it opens the file 2 to 3 times and the user has to close them everytime.. Does anyone know why that happens or how to deal with it?? here is my code:
on (release){
ssCore.Layout.extractFile({resource:"\\Presentatio ns\\myprez.pps", destination:"tempdir://Presentations\\myprez.pps"})
ssCore.Shell.open({path:"tempdir://Presentations\\myprez.pps", verb:"open"});
}
Thank you in advance