BLOGS

11.2

warning: file_get_contents(http://www.telize.com/geoip/54.90.207.75) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/www.4d.com/docs/includes/common.inc(1762) : eval()'d code on line 4.

How big is 4D for Flex?

• The 4D for Flex component (Flex4D_SQL.swc) is 524k by itself.

• The Flex4D+Controls.swc (DataGrid…) weighs in at 716k.

• A demo like Spending (including both components) is 388k.

Where's the French localization file in 4D for Flex?

“Any beginner Flex user with a fresh FB3 install wil not have a fr_fr locale and will not be able to compile/run the demos.”

 

Adobe does not provide the "fr_FR" locale (only English & Japanese locales are provided by default).  You will have to create your own locale by using the "copylocale" tool provided by Adobe.

 

Using the "Adobe Flex 3 SDK Command prompt", just type: copylocale en_US fr_FR

What user interface controls does 4D for Flex provide?

4D for Flex currently offers:

 

• custom DataGrid inheriting from Flex DataGrid

• some navigation controls (like automatic first-next-last...)

 

But you can also use Flex UI Controls like the Adavanced DataGrid, available in Flex 3 Builder Pro: http://livedocs.adobe.com/flex/3/html/help.html?content=dpcontrols_6.html

How do I resolve a security alert in 4D for Flex?

You may receive the following error:

 

Error #2048
Security sandbox violation
http://localhost8080/SpendingsUI.swf cannot load data from localhost1919

This is due to a change in the Adobe Flash Player Security Model starting from version 9.0.124. See:

http://www.adobe.com/support/security/bulletins/apsb08-11.html
 

To fix this issue, you will need to use 4D Server v11 SQL Release 2.

 

How is 4D Ajax Framework different from other frameworks?

The 4D Ajax Framework is a multi-layered framework with deep integration into the 4D environment. It has been designed to complement the existing 4D developer environment. Ajax frameworks that are not system-specific do not have the same level of integration. They work well for basic functions but are less useful for in-depth 4D application development or integration. For example, 4D Ajax Framework recognizes and can use an existing 4D security user/group structure. Other frameworks don't.

4D Ajax Framework v11 Release 2

Thu, 2008-07-24 (All day)

The main new features in 4D Ajax Framework v11 Release 2 are here, from improved iPhone support to offline features, Adobe AIR and more.

Is there any utility tool for debugging communications in 4D for Flex?

There is no utility like an HTTP sniffer, as 4D for Flex uses binary sockets.


But you've got:

• a SQL Server side log – See the provided examples for how to activate it.

• an AIR component for tracing communication between Flex and 4D

Does 4D for Flex provide a persistent connection?

You've got two communication modes between 4D & Flex:

 

• Using HTTP (or SOAP over HTTP), working in disconnected mode, exchanging data in Plain Old XML (POX)

• Using SQL sockets with 4D for Flex, working in connected mode, exchanging data through a binary protocol

Can I call existing 4D code with 4D for Flex?

Yes, you can call 4D methods published for SQL.

 

Simply check the "Available through SQL" box in the method Properties Editor, and call it from your SQL code.

 

See the provided examples for how this is done.