Your best source of information and news about Vista hardware , secrets and windows on the internet Ваш лучший источник информации и новостей о Vista аппаратное обеспечение, секреты и окна в интернете

Vista ARTICLES Vista СТАТЕЙ TOP 50 TOP 50 Vista VIDEOS Vista VIDEOS Vista SOFT Vista СОФТ Vista HELP Vista ПОМОЩЬ

How To Execute Files from Flash Как исполнить файлы с флэш -


This weekend I spent much time on creating a Flash projector for a menu based installation of Office and other programs. В эти выходные я потратил много времени на создание флэш-проектор для меню Установка офисных и других программ. The screenshot below explains better what I was trying to accomplish, when someone clicks on the button named Engelsk (Engelsk = English) I wanted setup.exe to launch with a transform file applied to it. Скриншот ниже лучше объясняет то, что я пытался добиться, когда кто-то нажимает на кнопку с именем Engelsk (Engelsk = английском языке) Я хотел setup.exe для запуска с преобразовать файл к ней применяться.

I spent a lot of time playing around with the FSCommand EXEC, but it would not work. Я потратил много времени, играя примерно с FSCommand EXEC, но она не будет работать. This was how you did it in previous versions of Flash. Это был, как вы сделали это в предыдущих версиях Flash. So after some trying and failing I started to google the problem and it turned out that the Так что после некоторой попытке и не я начал google проблемы, и выяснилось, что FSCommand EXEC is no longer working as it used to in Flash CS3 FSCommand EXEC больше не работает, как оно используется в Flash CS3 . .

So I needed to find another solution, I then came over a great tool called Proxy from Northcode that solved all my problems and the best thing: It’s free Так что мне необходимо найти другое решение, я потом за прекрасный инструмент называется прокси из Northcode, что решить все мои проблемы и лучшее, что: Itâ € ™ ы бесплатно

Here is a summary from Nothcode’s blog about why this tool was developed and how it works; Вот резюме от Nothcodeâ € ™ Дневник о том, почему этот инструмент был разработан и как она работает;

A typical requirement you’ll run across when developing CD based Flash projects is the need to open documents from your Flash projector. Типичные требования вы запустите через при разработке CD на основе флэш-проектов является необходимость открытия документов из ваших Flash проектора. You can use getURL to open most documents, but sometimes the document opens behind the projector. Вы можете использовать getURL открывать большинство документов, но иногда документ открывает позади проектора. The EXEC fscommand could be used to launch a helper application, but unfortunately the EXEC fscommand doesn’t allow you to pass parameters to external applications so you have no way to tell the outside world which file you want to open. EXEC fscommand может быть использована для запуска помощника применения, но, к сожалению, EXEC fscommand не позволяет вам передавать параметры для внешних приложений, чтобы вы никак не сможете рассказать внешнему миру, какой файл Вы хотите открыть.

You can thank the creators of the first Flash virus ( Вы можете поблагодарить создателей первого вируса Flash ( SWF/LFM-926 SWF/LFM-926 ) for the fact that every version of the stand-alone Flash player since Flash MX has restricted the use of the EXEC command. ) За то, что каждый вариант автономных флэш-плеер с Flash MX ограничила использование EXEC команду. This change made it impossible for anyone to create any new Flash based viruses, but it also crippled the Flash projector as a tool for legitimate users by instantly rendering many free projector extension tools useless. Это изменение сделало невозможным для тех, кто для создания каких-либо новых вирусов на основе Flash, но и подорвало Flash-проектор, как инструмент для законных пользователей, моментально делает множество бесплатных проектор продление инструменты бесполезно.

There are four key restrictions that you have to keep in mind when working with the EXEC fscommand and standalone Flash projectors. Существуют четыре основных ограничения, которые вы должны помнить при работе с EXEC fscommand и автономным Flash проекторы. (i) Executables you want to run via the EXEC fscommand have to be in a special sandboxed folder called fscommand in the same directory as the projector. (я) исполняемые файлы вы хотите запустить через EXEC fscommand должны быть в специальной папке sandboxed называется fscommand в том же каталоге, что и проектор. (ii) You can’t specify a path in the EXEC command, just a filename. (ii) Вы не можете указать путь в EXEC команду, просто имя файла. If the specified file is not found in the fscommand folder, it won’t run. Если указанный файл не найден в папке fscommand, ее не будут. (iii) The only argument allowed by the EXEC fscommand is a filename, there is no way to pass arguments to the executables that you want to run. (iii) Единственный аргумент, допускается EXEC fscommand это имя файла, нет способа передать аргументы, чтобы исполняемые файлы, которые вы хотите запустить. (iv) You can’t use EXEC from an SWF file, it will only work from a projector (EXE). (iv) Вы не можете использовать EXEC из SWF файл, он будет работать только с проектором (EXE). The last restriction doesn’t really concern us, but if you’re trying to test your EXEC calls, being aware of it will save you some frustration. Последний ограничение не действительно нас беспокойство, но если вы пытаетесь проверить вашу EXEC звонки, понимая это сэкономит вам некоторые разочарования.

One additional restriction you will have to deal with is the fact that Одно дополнительное ограничение вам придется иметь дело, с тем, что Flash 9 projectors can’t launch BAT files on Windows 2000, XP and Vista Flash 9 проекторы не могу запустить БАТ файлов на Windows 2000, XP и Vista . .

One solution to get around the limitations of the EXEC fscommand is to create one exectuable file for each file that you want to open, but what can you do if you don’t know how to make EXE files? Одно из решений обойти ограничения EXEC fscommand заключается в том, чтобы создать один exectuable файл для каждого файла, что вы хотите открыть, но что делать, если вы не знаете, как сделать EXE файлов? Windows and Flash both consider a BAT file as an executable file so the easy solution is to create a BAT file for each file you want to open and EXEC the BAT file from Flash. Окна и Flash рассматривать как БАТ файл как исполняемый файл с тем простое решение заключается в том, чтобы создать БАТ файл для каждого файла, который вы хотите открыть и EXEC БАТ файл из Flash. You don’t need to be a BAT file wizard to do this, the simple one-liner below (let’s call it mydoc.bat) will do the trick: Не нужно быть БАТ файл мастера, чтобы сделать это, проста-лайнер ниже (назовем это mydoc.bat) будет делать трюк:

That example assumes that both mydoc.bat and mydoc.pdf are in the fscommand folder. Этот пример предполагает, что обе mydoc.bat и mydoc.pdf находятся в папке fscommand. You can change the BAT file to launch the PDF file from anywhere you like, as long as you can create a valid path to the file. Вы можете изменить БАТ файл для запуска файл PDF из любой точки мира вы хотите, столько, сколько вы можете создать правильный путь к файлу. Now all you have to do is create a BAT file for every file you want to open and call it from Flash like this: Теперь все, что вам нужно сделать, это создать БАТ файл для каждого файла, который вы хотите открыть и призвать его из Flash подобно этому:

The only problem with this approach is that your user is going to see the ugly black DOS box appear every time they open a file. Единственная проблема с таким подходом заключается в том, что Ваш пользователь будет видеть DOS уродливый черный ящик появляться каждый раз, когда они открыть файл. That’s where the proxy utility can help you create a more professional looking end product for your users. Proxy is able to launch BAT files and suppress the ugly DOS box. Именно там прокси утилита позволяет создавать более профессионально перспективных конечного продукта для пользователей. Прокси-сервера является возможность запускать файлы НИТ и пресечь уродливую DOS окна.

usage: proxy.exe использование: proxy.exe

When you run the proxy utility, the first thing it does is look at its own name, in this case proxy.exe. Когда вы используете прокси-коммунальную службу, первое, что он не совершал, взглянуть на свое собственное имя, в данном случае proxy.exe. It then looks for a BAT file in the same directory with the same base name, ie proxy.bat, and runs that BAT file. Затем он ищет файл НИТ в одном каталоге с тем же именем базы, т.е. proxy.bat и запускает файл, что НИТ. If you rename the proxy utility to xyz.exe then the utility will look for and try to run xyz.bat. Если вы переименовали прокси-утилиту для xyz.exe тогда утилита будет искать и пытаться запустить xyz.bat. If a BAT file with the same name can’t be found, proxy will just fail silently. Если НИТ файл с таким же именем не может быть найден, прокси-сервер будет не просто тихо.

By making copies of proxy.exe with different names and creating multiple BAT files you can run as many “hidden” BAT files as you need, neatly sidestepping the Flash limitation on passing parameters to external applications. Делая proxy.exe копии с различными именами и создание нескольких БАТ файлы можно запустить как много "скрытых" БАТ файлов как вам нужно, аккуратно обход Flash ограничения на передачи параметров для внешних приложений.

Here are step by step instructions to use the proxy utility to open a PDF file without the ugly DOS box. Вот, шаг за шагом инструкции по использованию прокси-утилита для открытия файлов PDF без уродливых DOS окна.

  1. Create a BAT file called file1.bat that contains just the following line. Создайте файл с именем НИМ file1.bat, который содержит только следующие строки. This is a plain text file that you can create with notepad or your favorite text editor. Это простой текстовый файл, который вы можете создать в блокнот или ваш любимый текстовый редактор.
  2. Put the BAT file in a folder called fscommand along with a copy of proxy.exe. Положить БАТ файл в папке fscommand призвал вместе с копией proxy.exe.
  3. Rename the copy of proxy.exe to file1.exe (same base name as the BAT file you created). Переименовать копию proxy.exe к file1.exe (тот же базовый именем БАТ файл, который вы создали).
  4. Place your PDF document (called file1.pdf) in the fscommand folder with the BAT and EXE files. Разместите свой PDF документ (так называемый file1.pdf) в папку fscommand с НИМ и EXE-файлов. You don’t have to store the files you want to open in the fscommand folder, but for your first test this makes things easier. Вам не нужно хранить файлы вы хотите открыть в папке fscommand, но для своего первого испытания это делает вещи проще.
  5. Add the following command to your FLA where you want to open the PDF document (probably on a button release action). Добавьте следующую команду для вашего FLA, где вы хотите открыть PDF документ (возможно, на кнопку освобождения действия).

Now put your Flash EXE and the fscommand folder on your desktop and run the Flash EXE. Теперь ставится ваших Flash EXE и fscommand папку на рабочем столе и запустить EXE Flash. When the EXEC command is called your PDF document should open. Когда EXEC команда называется Ваш PDF документ должен открыть.

To read more about proxy or to download it you can go Чтобы узнать больше о прокси-сервер или скачать его вы можете перейти here здесь . .

Popularity: 2% Популярность: 2%


Written by Odd-Magne Kristoffersen. Автор нечет-Магне Kristoffersen. Read more great feeds at is source Подробнее большие каналы на исходный WEBSITE ИНТЕРНЕТ-САЙТ
1 comment 1 комментарий . .
Read more articles on Читайте больше статей о software программное обеспечение . .

Related articles Статьи по теме

1 comment 1 комментарий

Read the comments left by other users below, or: Прочитать комментарии, оставленные другими пользователями ниже, или:

Получить свой собственный gravatar, посетив gravatar.com Joe C Джо C
#1 # 1 . February 8th, 2008, at 2:43 PM. 8 февраля 2008 года, в 2:43 вечера.

Is it possible to open a flash projector *exe within a *.swf? Можно ли открыть флэш-проектор * exe в *. swf? I need the flash projector to open an external app using facommand *.exe and *.bat. Мне нужна флэш-проектор, чтобы открыть приложение, используя внешние facommand *. exe и *. летучих мышей.

Leave your comment... Оставьте свой комментарий ...

If you want to leave your comment on this article, simply fill out the next form: Если Вы хотите оставить свой комментарий по этой статье, просто заполните следующей форме:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> . Вы можете использовать эти XHTML теги: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <я > <strike> <strong>.