A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [RESOLVED] relative path from html rather that swf when embedding

Threaded View

  1. #1
    Junior Member
    Join Date
    Nov 2008
    Posts
    3

    resolved [RESOLVED] relative path from html rather that swf when embedding

    Ok i have a bit of a problem, i was wondering if anyone had a solution.

    I have a SWF which loads a config.php via the URLLoader class. Using a relative path from my SWF, i keep config.php & page.html in the same directory on my server.

    However when i embed the SWF in HTML the relative path now goes relative from my HTML page! I don't want to keep my HTML in the same dir as my SWF or Config. This is part of a larger web app and will be loading on generated pages. I don't have the option of modifying the web app.

    EXAMPLE

    Code:
    var ConfigLoad:URLLoader = new URLLoader;
    ConfigLoad.load(new URLRequest("config.php"));
    and my file structure is,

    serverroot/flash/mySWF.swf
    serverroot/flash/config.php
    serverroot/web/page.html

    If anyone could help that would be totaly awesome!
    Last edited by Bigtallbill; 11-14-2008 at 06:10 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center