-
May 14th, 2008, 07:56 PM
#1
Problem running Flex examples
I was able to run sdk_client_web example, but running Flex examples from the same virtual directory not working for me. All I see for status is "connecting". Please, help.
-
May 15th, 2008, 09:06 AM
#2
Do you refer to the "sdk_client_flash_flex(js_bridge)" or to the "sdk_client_flash_flex(native_as)"? (note: the latter is not included in the Moderato package)
Admittedly, there is no tutorial for the deployment of these demos.
Please, retry the following steps:
- create a new subfolder (let's say "FlexDemo") in the "pages" directory of your Server installation
- copy into "FlexDemo" the contents of the "deploy" folder relative to the example you are interested in (all Flex examples contain a "deploy" folder)
- recall the demo from your browser with the same URL that makes the StockListDemo work, just replacing the local path with "/FlexDemo"
Does anything change?
Note that the next upgrade of the Server will include predeployed versions of the Flex demos.
-
May 15th, 2008, 03:35 PM
#3
Yes, it does work in this way:
http://localhost:8080/flexdemo/
But why it does not if I run it from my virtual folder? Web client works just fine.
Is it because I am using IIS?
Also I have noticed that when Flex example runs the processor is loaded up to 70-80%. Is that normal?
Thanks for your help.
-
May 16th, 2008, 09:05 AM
#4
In order to have the pages supplied by your web server, some small configuration changes are needed on the client.
Please, clarify first thing if the sdk directory you are working with is "sdk_client_flash_flex(js_bridge)" or "sdk_client_flash_flex(native_as)". (note: the latter is not included in the Moderato package)
Processor load considerations also depend on the specific sdk.
-
May 16th, 2008, 01:38 PM
#5
It is "sdk_client_flash_flex(js_bridge)" that comes with a free version. I have downloaded the latest one.
-
May 19th, 2008, 09:41 AM
#6
Hello,
the flash bridge is based on the web client.
To deploy the application on an external web server you have to edit the index.html file of the example to configure it on your domain.
At the moment such example is configured to run just on internal web server. If you have some confidence with the web client you will be able to change its html file without problem.
The CPU load is due the animation of the demo, you can change it completely to be have better performance.
Let me know if you have any problem.
-
May 19th, 2008, 02:06 PM
#7
Yes, after modifying index.hrml to my settings I was able to run Flex demo.
Thanks alot for your help.
-
May 21st, 2008, 01:16 PM
#8
Could you please give me a bit of detail how actually that sample works? I mean, in general terms, what a tipical Flex app. should have to be a "pushed able" app?
Thanks
-
May 23rd, 2008, 09:11 AM
#9
Hello,
always referring to the flash bridge (ie not to the native AS library).
The flash bridge is based on Lightstreamer web client. It includes a javascript and an actionscript2 library that communicate through the externalinterface class of flash to let the actionscript library make use of some features of the web client.
The overview of the JSDocs for the library explains what is necessary to set up an application using it, check it: http://www.lightstreamer.com/docs/cl...doc/index.html
Let me know if you have any problem.
HTH.
-
May 23rd, 2008, 03:26 PM
#10
I see. Flex 3 has what's called "Flex Ajax Bridge". According to Adobe docs. Flex Ajax Bridge is suggested over externalinterface. Can Flex Ajax Bridge be used? Or does not really matter?
Also what is that line for?
lsEngine.connection.setAdapterName("STOCKLISTDEMO" );
Is that to provide a back-end? If so, how do I specify my asp page as a source of data for my Flex front-end?
Similar Threads
-
By ulises.juarez in forum General
Replies: 3
Last Post: July 29th, 2011, 08:56 AM
-
By msgiribabu in forum Adapter SDKs
Replies: 4
Last Post: February 3rd, 2011, 10:33 AM
-
By mnenchev in forum General
Replies: 3
Last Post: August 10th, 2009, 03:22 PM
-
By Preethu in forum Adapter SDKs
Replies: 1
Last Post: June 8th, 2009, 02:41 PM
-
By wattsw in forum Client SDKs
Replies: 1
Last Post: November 14th, 2006, 04:28 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 03:15 PM.
Bookmarks