В чистом проекте Actionscript 3, там какая-либо причина использовать Мост Ajax Adobe по классу ExternalInterface?

Я решил эту проблему, выполнив несколько следующих шагов:

  1. Удалите MySql.Data.Entities из Nuget с помощью приведенной ниже команды в консоли диспетчера пакетов: Uninstall-Package MySql.Data.Entities

  2. Добавьте ссылку на проект к последней версии MySql.Data.Entity.EF6.dll из пути установки вашего коннектора MySql по адресу: C:\Program Files (x86)\MySQL\MySQL Connector Net 6.9.8\Assemblies\v4.5

1
задан 14 June 2009 в 08:15
поделиться

1 ответ

Good question. There is definitely reason to use one or the other.

If your application is an ActionScript application that needs to be able to communicate with JavaScript, the ExternalInterface object is probably the right tool. But, if your application is a JavaScript application that needs to control Flex components, the Ajax Bridge is the thing to use.

Some quick bullets from Adobe's documentation on FABridge:

  • You want to use a rich Flex component in an Ajax application but do not want to write a lot of Flex code. If you wrap the component in a FABridge-enabled stub application, you can script it entirely from JavaScript, including using JavaScript generated remotely by the server.
  • You have only one or two people on your team who know Flex. The FABridge library lets everyone on your team use the work produced by one or two Flex specialists.
  • You are building an integrated rich Internet application (RIA) with Flex and Ajax portions.Although you could build the integration yourself using ExternalInterface, you might find it faster to start with the FABridge.

You can get a broader perspective at http://livedocs.adobe.com/flex/3/html/help.html?content=ajaxbridge_1.html

2
ответ дан 3 September 2019 в 01:26
поделиться
Другие вопросы по тегам:

Похожие вопросы: