Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
How to open a file with......? 
Author Message
Has a life

Joined: Thu Apr 23, 2009 10:49 pm
Posts: 58
Reply with quote
I made an application in Flash. I need to make it user friendly so as soon as someone opens the CD, they just have one thing to click to open the file.
For me, double clicking opens the swf file in a new Flash player window. Trouble is, this doesn't happen in all computers and some can't install Flash player if they are using university machines.
The most reliable way is drag/drop into a browser, but it requires a bit of digging for the file in a folder full of icon and text files. I need this to be easy even for 60 year old men with no IT experience.

so, the 6 million pound question is.... how can I set a file to open using the default browser when the CD auto runs or someone clicks on a shortcut to a swf file?

Thanks :)

_________________
http://www.flickr.com/photos/tenth-circle/


Mon Apr 27, 2009 9:18 pm
Profile
Doesn't have much of a life
User avatar

Joined: Thu Apr 23, 2009 6:52 pm
Posts: 1036
Location: Barnsley, South Yorkshire
Reply with quote
Right.

Make a new notepad file called AUTORUN.INF. Then copypaste this, replacing the bits with what you want.

[autorun]
ICON=ICON.ico
OPEN=PROGRAM.swf

Then put this in the root of the CDR, and it should load. :D

_________________
Paulzolo, on about Micheal Jackson wrote:
All he ever “lifted” were his cock and balls. On stage and in front of children.

Image
Kimmotalk is where all the cool people hang.


Mon Apr 27, 2009 9:27 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5150
Location: /dev/tty0
Reply with quote
I'd agree, however, you may like to write an HTML page to display the file instead? So you're sure it'll open in something that can run it?

Also, IIRC, you can make Flash exe files from the export panel...?


Mon Apr 27, 2009 9:38 pm
Profile WWW
Has a life

Joined: Thu Apr 23, 2009 10:49 pm
Posts: 58
Reply with quote
Thank you both :) I think that will do me nicely.

Wonder what the exe file defaults to being played in... time to test.

_________________
http://www.flickr.com/photos/tenth-circle/


Mon Apr 27, 2009 10:12 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:58 pm
Posts: 8767
Location: behind the sofa
Reply with quote
forquare1 wrote:
I'd agree, however, you may like to write an HTML page to display the file instead? So you're sure it'll open in something that can run it?

Also, IIRC, you can make Flash exe files from the export panel...?


I wouldn't use exe for several reasons, not least because they're not cross-platform.

Make a nice HTML page and set that in the autorun. I think that should work on most platforms, assuming they have a default browser with Flash installed.

_________________
jonbwfc's law: "In any forum thread someone will, no matter what the subject, mention Firefly."

When you're feeling too silly for x404, youRwired.net


Mon Apr 27, 2009 10:31 pm
Profile WWW
Doesn't have much of a life
User avatar

Joined: Fri Apr 24, 2009 12:43 pm
Posts: 1798
Location: Manchester
Reply with quote
Don't quote me on this, but I thought you can't use a HTML file in an autorun - something to do with the Windows built-in security risk (I think the same applies to PowerPoint files too, for the same reasons). I've not tried this recently, but it always used to be blocked on Windows 98 - I assume things are the same on XP/Vista?

_________________
* Steve *

* Witty statement goes here *


Tue Apr 28, 2009 8:41 am
Profile
Spends far too much time on here
User avatar

Joined: Fri Apr 24, 2009 8:38 am
Posts: 2967
Location: Dorchester, Dorset
Reply with quote
Surely if the only thing to click is an html file, it should just open in the browser?

_________________
I've finally invented something that works!

A Mac User.


Tue Apr 28, 2009 11:02 am
Profile
Has a life

Joined: Thu Apr 23, 2009 10:49 pm
Posts: 58
Reply with quote
Well, got it to (sort of) work with an autorun. The uni computers seems to be agreeable with exe files. JJW009, can you elaborate a bit more on why exe files aren't recommended?

One thing I tried was Menubox which throws up a menu that gives options to install flash or open application.

Will probably also have a html page in the root of the CD. Or at least a shortcut to the html file buried deeper inside the folders.

Must appreciate the input guys :)

_________________
http://www.flickr.com/photos/tenth-circle/


Tue Apr 28, 2009 11:30 am
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 9:40 pm
Posts: 5288
Location: ln -s /London ~
Reply with quote
Vigil wrote:
Well, got it to (sort of) work with an autorun. The uni computers seems to be agreeable with exe files. JJW009, can you elaborate a bit more on why exe files aren't recommended?
*.exe is a windows executable extenstion. They (exe files) will only run on Windows computers, whereas flash itself has viewers/runners for many platforms.

Edd

_________________
timark_uk wrote:
Gay sex is better than no sex

timark_uk wrote:
Edward Armitage is Awesome. Yes, that's right. Awesome with a A.


Tue Apr 28, 2009 11:55 am
Profile
Has a life

Joined: Fri Apr 24, 2009 7:49 pm
Posts: 48
Reply with quote
steve74 wrote:
Don't quote me on this, but I thought you can't use a HTML file in an autorun - something to do with the Windows built-in security risk (I think the same applies to PowerPoint files too, for the same reasons). I've not tried this recently, but it always used to be blocked on Windows 98 - I assume things are the same on XP/Vista?


It worked when I created one a while ago, on Windows XP. I think, it was a long time ago, but I'm sure it did.

I might get around to finishing what I was doing with it soon, :D


Tue Apr 28, 2009 4:21 pm
Profile
Has a life

Joined: Thu Apr 23, 2009 10:49 pm
Posts: 58
Reply with quote
Windows only hmmmm... what about shortcuts made in windows? will those work with OSX and linux?

Gonna have to try that autorun+html file thing

_________________
http://www.flickr.com/photos/tenth-circle/


Tue Apr 28, 2009 7:06 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5150
Location: /dev/tty0
Reply with quote
JJW009 wrote:
forquare1 wrote:
I'd agree, however, you may like to write an HTML page to display the file instead? So you're sure it'll open in something that can run it?

Also, IIRC, you can make Flash exe files from the export panel...?


I wouldn't use exe for several reasons, not least because they're not cross-platform.


True, but is the autorun feature cross-platform? If it's not then we can say something like here's an exe file for Windows people, otherwise you'll have to delve into the CD anyway, here's an HTML version...?


Tue Apr 28, 2009 8:13 pm
Profile WWW
Has a life

Joined: Thu Apr 23, 2009 10:49 pm
Posts: 58
Reply with quote
forquare1 wrote:
JJW009 wrote:
forquare1 wrote:
I'd agree, however, you may like to write an HTML page to display the file instead? So you're sure it'll open in something that can run it?

Also, IIRC, you can make Flash exe files from the export panel...?


I wouldn't use exe for several reasons, not least because they're not cross-platform.


True, but is the autorun feature cross-platform? If it's not then we can say something like here's an exe file for Windows people, otherwise you'll have to delve into the CD anyway, here's an HTML version...?


Something like that. Here's a user friend program + a hefty instruction manual :lol: some assembly required.

I'm thinking that people using linux will hopefully have the know-how to deal with html/swf files if organised nicely on the CD. My supervisor uses macs, which I am unfamilar with. How do they cope with autorun and shortcuts?

_________________
http://www.flickr.com/photos/tenth-circle/


Wed Apr 29, 2009 1:33 pm
Profile
Doesn't have much of a life
User avatar

Joined: Fri Apr 24, 2009 12:43 pm
Posts: 1798
Location: Manchester
Reply with quote
What we do with our company's CD-ROM, created in Flash, is to save two projectors - one for Windows (which is an .exe file) and one for Mac OS X (which is an .app file). Flash can export both these types of file. To make it obvious which is for each platform, we called them "FOR_PC.exe" and "For Mac OS X.app".

Once you've got the .exe file and .app file in a folder just set an auto-run file called "AUTORUN.INF to launch the .exe file on Windows - then burn the folder to a CD-R. When PCs insert the disc, it should auto-start the Flash projector - Mac users will have to open the disc and double-click the .app file* but that's not such a big deal for us. And it's still pretty tidy, with only two files on the CD.

As I understand it, if you save the presentation as a self-contained projector (.exe for PCs or .app for Mac), then you don't need to install anything - it should just run.

Hope that helps.

*There always used to be an option in earlier versions of Toast where you could set a file to auto-run on Macs, but can't find it in Toast 7 or 8 so maybe there isn't a way to do that now?

_________________
* Steve *

* Witty statement goes here *


Wed Apr 29, 2009 7:50 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5150
Location: /dev/tty0
Reply with quote
Vigil wrote:
I'm thinking that people using linux will hopefully have the know-how to deal with html/swf files if organised nicely on the CD. My supervisor uses macs, which I am unfamilar with. How do they cope with autorun and shortcuts?


On OS X, autorun won't work and Windows shortcuts won't work either...


Wed Apr 29, 2009 9:41 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 21 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 22 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

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.