On 3/6/10 9:49 AM, cem sonmez wrote:


2010/3/6 Max Carlson <[email protected] <mailto:[email protected]>>

    On 3/6/10 8:57 AM, cem sonmez wrote:

        hi all
        I have two questions :
        (1)
        my openlaszlo application goes one step further and such a problem
        occurs now.
        Deployed my application as solo by using developer console.
        Extracted
        the given .zip file and without doing any changement, I ran the swf
        application properly.
        It is working with no problem when call the application by html
        and swf
        (of course shared object problem still exists). Somewhere in
        code it is
        doing doRequest for the dataset, and it works well while running
        file on
        the filesystem. But when I serve it on the web, html file does
        not work
        at all. Does not load the swf, just an empty page. And when I
        call the
        swf explicitly, I can see the application clear but in this case
        dataset
        request is not working.


    This could be an issue with Flash permissions on your domain.
      Please read about URL policy files here:
    
http://docs.google.com/viewer?a=v&q=cache:Y9jHKBbi1zkJ:www.adobe.com/devnet/flashplayer/articles/flash_player_9_security.pdf+flash+security&hl=en&gl=us&pid=bl&srcid=ADGEEShSKxBIIgnx06WvG39dhqGGVSy8H2gVC1Sawc9Xyps1yuwyrcl2JtLoicV0wOZuwyh9YdOXDrc2dJ2D4f5Kq8d2J78UAXK6jC-4fz_n4HTFk7YW7suDbjbFtFNvCn_vX8LaqKXo&sig=AHIEtbQLbr0Kb8itay2ikRKkn_-Tl32M5Q
    
<http://docs.google.com/viewer?a=v&q=cache:Y9jHKBbi1zkJ:www.adobe.com/devnet/flashplayer/articles/flash_player_9_security.pdf+flash+security&hl=en&gl=us&pid=bl&srcid=ADGEEShSKxBIIgnx06WvG39dhqGGVSy8H2gVC1Sawc9Xyps1yuwyrcl2JtLoicV0wOZuwyh9YdOXDrc2dJ2D4f5Kq8d2J78UAXK6jC-4fz_n4HTFk7YW7suDbjbFtFNvCn_vX8LaqKXo&sig=AHIEtbQLbr0Kb8itay2ikRKkn_-Tl32M5Q>


But for the dataset request, I am just setting the src of the dataset
for a xml file that is in the same directory of the swf. Not referring
to any file on another domain. And I have added this to the canvas as well.

<handler name="oninit">
         Security.allowDomain("*");
</handler>

You may also need to add a crossdomain.xml file on your webserver's root:

<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>

        (2)
        For the solo deploy, why lps server gives me my application as a
        folder.
        At first I thought that, just swf object is enough for my entire
        application. But in that folder why the lzx files that ı wrote are
        located? Are they needed for the swf object running?


    You will need the whole thing.  There are a number of .js files and
    other resources that the SOLO process packages into the .zip for
    you. You'll want to use the *.lzx.html file to launch your app, e.g.
    foo.lzx.html for an app in foo.lzx.  I hope this helps!


But I just see embed-compressed.js and html file except my source files?
Is this strange?
Thanks for the reply

No, that sounds normal. I just wanted to be sure you have the lps directory and are loading the right .lzx.html wrapper HTML. Just to be sure, make sure the browser isn't throwing any warnings, e.g. in Firebug.

Regards,
Max Carlson
OpenLaszlo.org

Reply via email to