[Flash]exe starten vanuit Flash

Pagina: 1
Acties:

  • zikje
  • Registratie: Mei 2004
  • Niet online
Ik weet dat je dat kan via "fscommand", maar dit werkt niet om een of andere reden.

on (release) {
fscommand("exec", "fscommand\flashplayer7installer.exe");
}

Dit heb ik op een button. De swf bevindt zich in folder "esa". Daarin is dan een subfolder "fscommand" waar de flashplayerinstaller.exe zich bevindt. Ik heb ook al andere plaatsen geprobeerd en een absoluut path. Helaas.

  • Tain
  • Registratie: Januari 2002
  • Laatst online: 15-05 20:32
probeer is met /fscommand/flashplayer7installer.exe

[ Voor 7% gewijzigd door Tain op 08-06-2004 16:57 ]


  • zikje
  • Registratie: Mei 2004
  • Niet online
nope, Ik heb forward en backward slashen geprobeerd, ook niks.

  • RèLF
  • Registratie: Juli 2003
  • Laatst online: 30-07-2025
Was het niet zo dat FSCOMMAND alleen werkte als het programma in de root stond :?

Obviously you're not a golfer


  • zikje
  • Registratie: Mei 2004
  • Niet online
dus de exe in dezelfde folder zetten als de swf?

Heb ik al geprobeerd. Noppes.

  • roeni1
  • Registratie: November 2003
  • Laatst online: 17-05 12:33
wat je wel kan proberen is (ben er nu ook mee bezig) is om getUrl te gebruiken, de client krijgt dan wel een popup box waarin die wordt gevraagd om te saven of te openen

ik zal nog ff verder kijken

  • sjoerdb2
  • Registratie: Juli 2001
  • Laatst online: 09-05-2025
Mag dit dan wel op deze manier?

Ik heb laatst met javascript ook een exe pas kunnen uitvoeren als ik de site bij trusted sites zette

[ Voor 64% gewijzigd door sjoerdb2 op 08-06-2004 17:29 ]


  • zikje
  • Registratie: Mei 2004
  • Niet online
Dat heb ik geprobeerd en dat werkt wel. Dan gaat hij via de browser.

Maar ik maak een applicatie voor cd-rom. Daarom zou ik die installer rechtstreeks willen laten starten voor mensen die hem niet hebben. Die versiecheck van de player is al in orde.

  • roeni1
  • Registratie: November 2003
  • Laatst online: 17-05 12:33
ik heb iets gevonden dat wel werkt, uit een ander forum:


I assume that this will be used with in a projector senario.

In this case I have previously used the following fscommand.

on (release) {
fscommand ("exec", "theApplication.exe");
}

If you are using Flash MX the external application must be in a subfolder named 'fscommand'. This subfolder must be in the same directory as the projector which uses the fscommand action. This security restriction has been added to prevent malicious use of the exec option, but it makes it a bit more of a pain to use.

[root]
|
|\_ yourProjector.exe
|
\_ [fscommand]
|
\_ theApplication.exe

If you require to run an application that is not within the fscommand folder a workaround that I have used before is to create a .bat file in the fscommand folder that opens the application.


ik heb dat getest en het werkt echt, ik had het ook nodig dus ...

another problem solved >:)

Verwijderd

zikje schreef op 08 juni 2004 @ 17:24:
Dat heb ik geprobeerd en dat werkt wel. Dan gaat hij via de browser.

Maar ik maak een applicatie voor cd-rom. Daarom zou ik die installer rechtstreeks willen laten starten voor mensen die hem niet hebben. Die versiecheck van de player is al in orde.
Vroeger (rond Flash 4/5) kon je vrijwel iedere exe zonder problemen opstarten. Als je geen gebruik maakt van geavanceerde MX scripting kun je proberen of het wel lukt als je de swf als een oudere versie exporteert.
Nieuwere versies (MX+) hebben terecht restricties gesteld aan het uitvoeren van exe bestanden.

--

http://www.macromedia.com...mmand_projectors.htm#Exec

Verteld het volgende
The exec command is used to launch an external application. In Macromedia Flash MX the external application must be in a subfolder named 'fscommand'. This subfolder must be in the same directory as the projector which uses the fscommand action. This security restriction helps prevent malicious use of the exec option.

The following script launches the Windows application someApplication.exe, which is in the fscommand folder on the same level as the projector:

on (release) {
fscommand ("exec", "someApplication.exe");
}
Note: The fscommand subfolder path is not used in the argument. Place someApplication.exe inside the fscommand folder, but just use the name of the application in the argument.
Dus je moet de fscommand folder NIET in de fscommand statement opnemen

  • roeni1
  • Registratie: November 2003
  • Laatst online: 17-05 12:33
en als je een projector maakt dan hebben de mensen toch geen flashplayer meer nodig?
Pagina: 1