×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2008
    Location
    Spain
    Posts
    54

    Remote Data access from a SWF ni a browser

    Hi all!,

    I have been testing an application in Nokia E61 and N95, and I have noticed some strange situation. I'll explain the files that are involved in this example:

    data.xml (a data file, with this content)
    result=hi, if you can read this, the application runs ok.

    test.swf (the swf which loads data.xml, a 1 frame timeline. FL 1.1 file)
    loadVariablesNum("data.xml",2);

    index.wml (a WML file with a link to the swf)
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
    "http://www.wapforum.org/DTD/wml_1.1.xml">

    <wml>
    <card title="Test Page">
    <p>
    <a href="test.swf">Open Test SWF</a><br/>
    </p>
    </card>
    </wml>

    The results of my test are these:

    E61
    If I open the swf from the WML page, the swf can not read the data.xml
    If I open the swf directly in the browser it can read de data.xml

    N95
    The swf can not read the file never.

    With these results, I'm a bit confused.

    If I open a swf from a browser via link, can the swf read data from relative paths?

    If I open a swf directly in the browser, can the swf read data from relative paths? What's the differece between E61 and N95 to show different results in the same situation (maybe the Flash Lite version?).

    I'll be really surprised if swf opened via browser from a remote server in Internet, can not access data from this (its) server!

    Thanks in advance for your comments to this questions
    Last edited by Qman; 2008-01-25 at 11:19.

  2. #2
    Regular Contributor
    Join Date
    Feb 2005
    Location
    Karachi, Pakistan
    Posts
    277

    Re: Remote Data access from a SWF ni a browser

    Hello,

    Quote Originally Posted by Qman View Post
    test.swf (the swf which loads data.xml, a 1 frame timeline. FL 1.1 file)
    loadVariablesNum("data.xml",2);

    index.wml (a WML file with a link to the swf)
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
    "http://www.wapforum.org/DTD/wml_1.1.xml">

    <wml>
    <card title="Test Page">
    <p>
    <a href="test.swf">Open Test SWF</a><br/>
    </p>
    </card>
    </wml>
    there are two ways to display FL content using browser.

    1.) link the swf in your page, like you have done currently. when you click it, it will download the swf to local temp sandbox and execute the swf with default FL player. the swf must contain absolute path to server. relative path won't work.

    2.) use the <object> tag to embed the swf in page, just like on PC browsers. you can use relative paths in this case to load data from same server.

    Quote Originally Posted by Qman View Post
    The results of my test are these:

    E61
    If I open the swf from the WML page, the swf can not read the data.xml
    If I open the swf directly in the browser it can read de data.xml

    N95
    The swf can not read the file never.
    also, what url you are using to access data in your tests, relative or absolute?

    Quote Originally Posted by Qman View Post
    If I open a swf from a browser via link, can the swf read data from relative paths?

    If I open a swf directly in the browser, can the swf read data from relative paths? What's the differece between E61 and N95 to show different results in the same situation (maybe the Flash Lite version?).
    E61 have FL1.1 as default player, and N95 have FL2.0.

    if you're opening swf directly via link, it must have absolute path to server for loading data. if you're embedding swf via <object> tag, you can use relative paths.

    best,

    // chall3ng3r //
    Faisal Iqbal (skype: chall3ng3r)
    Flash Mobile Specialist | Orison Technologies
    _____________________________________
    blog: F·L·A·S·H·I·S·M
    swf2go: www.swf2go.com

  3. #3
    Registered User
    Join Date
    Jan 2008
    Location
    Spain
    Posts
    54

    Re: Remote Data access from a SWF ni a browser

    Thanks a lot for confirm it

    Here and in the Yahoo Groups, thanks too.

    Best regards,

Similar Threads

  1. Remote access on S60 phones (3rd Edition)
    By zhiliang in forum Symbian
    Replies: 0
    Last Post: 2007-07-30, 04:05
  2. Browser access point
    By mateen_maldar in forum Symbian
    Replies: 3
    Last Post: 2007-06-29, 12:58
  3. Regarding access to user data in 6102
    By _Ace in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2006-04-10, 18:07
  4. Internet Access Config via Smart Message
    By ajbrindley in forum Smart Messaging
    Replies: 1
    Last Post: 2002-08-14, 07:56

Posting Permissions

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