Em primeiro lugar, quem tem o Flex 3 já baixou o FABridge (sem saber,
hehehehe). Ainda é beta, porém os testes de desenvolvimento deste
framework são feitos no IE6 e FF2! Acho que todos sabem que há uma
primitiva em web apps: Funcionou no IEca6, funcionou no resto!

De acordo com o site, ele tem gerenciamento de memória automática, a
possibilidade de destruir objetos manualmente e manipulador de
excessões.

Eu já presenciei alguns problemas com o ExternalInterface e com o
LocalConnection: Os callbacks registrados nos SWF são perdidos quando
se faz manipulação do DOM. Abaixo eu falo mais a respeito disso.

Veja as limitações desta versão:

The FABridge library is currently in a beta state. It has been tested
on Mozilla Firefox 2 (Windows and Linux), Microsoft Internet Explorer
6, Opera 9, and Apple Safari 2.0.4.

Exceptions thrown across the bridge into JavaScript depend on the user
having installed Flash Debug Player to display the entire error
description. Otherwise, only the error ID is thrown.

For performance reasons, when an anonymous object is sent from
ActionScript to JavaScript, the bridge assumes it contains only
primitives, arrays, and other anonymous objects, and no strongly typed
objects or methods. Instances or methods sent as part of an anonymous
object are not bridged correctly.

Mais sobre a FABridge (do site oficial do Flex):

The Flex™ AJAX Bridge (FABridge) is a small, unobtrusive code library
that you can insert into an Adobe® Flex™ application, a Flex
component, or even an empty SWF file to expose it to scripting in the
browser.

To humbly borrow a page from the Ruby on Rails community, FABridge is
built with the "don't repeat yourself" principle in mind. Rather than
having to define new, simplified APIs to expose a graph of
ActionScript objects to JavaScript, with FABridge you can make your
ActionScript classes available to JavaScript without any additional
coding. After you insert the library, essentially anything you can do
with ActionScript, you can do with JavaScript.

Adobe® Flash® Player has the native ability, through the External API
(the ExternalInterface class), to call JavaScript from ActionScript,
and vice versa. But ExternalInterface has some limitations:

    * The ExternalInterface class requires you, the developer, to
write a library of extra code in both ActionScript and JavaScript, to
expose the functionality of your Flex application to JavaScript, and
vice versa.
    * The ExternalInterface class also limits what you can pass across
the gap – primitive types, arrays, and simple objects are legal, but
user-defined classes, with associated properties and methods, are off-
limits.
    * The ExternalInterface class enables you to define an interface
so your JavaScript can call your ActionScript – FABridge essentially
lets you write JavaScript instead of ActionScript.


View a sample application that makes use of the Flex AJAX Bridge.
Note: You must install Flash Player 9 to view the sample application.


Particularmente eu nunca usei este framework, mas em tese, pude notar
que o seu diferencial é prover uma economia de código, uma vez que não
é necessário registrar os callbacks. Isso é feito pelo framework. Os
problemas que eu tive usando o ExternalInterface continuarão a
ocorrer, pois o FABrigde usa estas chamadas internamente.

Semana passada postei o bug referente as perdas de referência dos
callbacks registrados. Entrem no site e votem neste bug, assim os
engenheiros da Adobe dão atenção e corrigem o problema. Veja:
https://bugs.adobe.com/jira/browse/SDK-15338

Para detalhes sobre o erro, veja o site:
http://blog.deconcept.com/swfobject/forum/discussion/394/losing-externalinterface-callbacks-in-ie-when-flash-is-hidden/

Acompanhe meu blog: http://jonata.blogspot.com/
--~--~---------~--~----~------------~-------~--~----~
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para [email protected]
Para sair da lista, envie um email em branco para [EMAIL PROTECTED]
Mais opções estão disponíveis em http://groups.google.com/group/flexdev
-~----------~----~----~----~------~----~------~--~---

Responder a