Unfortunately I can't share the project but I can share with you the basics.

There was a thread from a while back when we were working through some of
the problems:
http://apache-flex-users.2333346.n4.nabble.com/SWFLoader-not-pulling-through-all-sub-SWF-styles-td17851.html

The crux of the solution works along these lines:
1. We implemented a URI protocol so our users could login/authenticate as
usual from a link in their browser and then be redirected by this protocol
to the Launcher AIR app.
2. This redirect would pass though a bunch of product specific details as
parameters, one of which was the URL where the SWF could be found.
3. The AIR app itself is an mx:WindowedApplication that spawns a new
ProductWindow (via the Invoke method) when launched (essentially a
ProductWindow per SWF). This way we could have multiple instances and
applications all running through the same launcher application.
4. We would then download the SWF using URLRequest/URLLoader with a
dataFormat of URLLoaderDataFormat.BINARY
5. Create a new ApplicationDomain() 
6. Create a LoaderContext() (which allowCodeImport = true)  - new
LoaderContext(false, appDomain)
7. Using a SWFLoader component set the loaderContext to the context created
in 6. and then call .load on it passing loader.data set from the loader in
4.

We had to work through a bunch of reauthentication issues so the Air app had
a valid session token (but that was all proprietary stuff). The golden
nugget was solving the resize problem, which is detailed in the other
thread.

Cheers, Dal


Sam wrote
> Hi Dal, Thanks for reply !
> 
> I did create a web project on Intellij IDE using  direct Adobe Air
> compilation (“original” AIR SDK without the new compiler ) and when i run
> ,
> it opens up a browser asking for me to enable the adobe flash player
> inorder
> to display the screen. 
> 
> Could you share the project creation window on Intellij please to see  the
> setting?
> 
> 
> 
> --
> Sent from: http://apache-flex-users.2333346.n4.nabble.com/





--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/

Reply via email to