Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   ActionScript (http://www.flasher.ru/forum/forumdisplay.php?f=5)
-   -   FSCOMMAND & GET URL vo FLASH 6 (http://www.flasher.ru/forum/showthread.php?t=41802)

ivi 11.01.2003 20:03

FSCOMMAND & GET URL vo FLASH 6
 
Vechnikh let gizni, uvagaemie...

Pomogite, kto moget....
Problema s zapuskom EXE faila iz Flash...delo v tom, chto v pleere Flash 5 vse rabotaet, a v Flash 6 net :(
Ya chital prededuschee obsugdenie po etomu voprosu i poproboval sdelat` kak rekomendovali...no nichego ne vishlo...
Vot varianti koda...posmotrite, pliz...moget chto-to pishu ne tak(fail ind.exe pologil v papku FSCOMMAND, kotoraya legit vozle proektora)

Delal i kak dlya Flash 5(kod pricepil k knopke):

on (press) {
fscommand("exec", "start\tfscommand\\ind.exe");
}

ili

on (press) {
fscommand ("exec", "cmd\t/c\tfscommand\\ind.exe");
}


I kak v Flash 6 (run - imya knopki):

run.Press = function () {
fscommand("exec", "start\tfscommand\\ind.exe");
}

i tak

run.Press = function () {
fscommand ("exec", "cmd\t/c\tfscommand\\ind.exe");
}

a rezul`tat vse ravno odin :confused: ....zamuchilsya prosto... :(

Takoy ge trabl i s otsilkoy maila, v 5 pleere vse pashet, a tut net...vot kod

on (release) {
getURL("mailto:general@nichego.net");
}

Zaranee blagodaren za pomosch....
Moget stoit kak-to raskazat` ob takikh otlichiyakh....pravda eto skoree vopros k Macromedia... :)

Crazy 11.01.2003 22:03

Цитата:

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.
Источник: http://www.macromedia.com/support/fl...projectors.htm

ivi 15.01.2003 22:12

Spasibo :)
Poprobuyu sdelat` tak....kak-to ne soobrazil ubrat` fscommand iz argumenta...


Часовой пояс GMT +4, время: 09:56.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.