×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    8

    Cool Cannot use XML.load on Nokia 6300 via network

    Hello,
    we are developing a server based flash lite app. The app. loads an XML file from a server. The file content is generated by a php skript. (The entiere code snippets came from this board) Using the CS3 simulator the program works fine. But uploaded (locally via bluetooth as well as uploaded via our server) on the 6300 the program always stuck. We have traced the problem up to the point that the XML.onLoad eventhandler is never called. The follwing circumstances seems to some security setting problems: the same program works very fine, if we load the file from the local handy file system. It works as expected on a N73 using the new Flash 2.1 developer application. It seems to us as some kind of security / sandbox problem. How can we manage the rights? Of cause we have set the player security to "network access"
    Is there anyone out there with any ideas to help us?
    Uwe

  2. #2
    Registered User
    Join Date
    Apr 2008
    Posts
    12

    Re: Cannot use XML.load on Nokia 6300 via network

    Hi uwetronnier,

    It might not be network issue exactly. I'd suggest you to visit
    http://www.mximframework.com

    I hope there you could find out your solution.

    Good Luck,
    Justin Max

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    8

    Unhappy Re: Cannot use XML.load on Nokia 6300 via network

    Hi,
    unfortunately Maxim seems to be in a beta state!?

    I also think that this is not a network problem. Since the application runs on every developing tool we use, it seems to me that some security features of the pre-installed Flash-Lite handy player prohibit the reading of the XML information.

    Is there any other possibility to change the behaviour of the security environment of the Flash-Lite player as switching between local and network mode durng Flash-Lite export of the .fla file from CS3?

    Thanks Uwe

  4. #4
    Regular Contributor
    Join Date
    Mar 2004
    Posts
    130

    Re: Cannot use XML.load on Nokia 6300 via network

    Have you ever tried moving your swf file to \Data\Others\trusted\ ?

    Hope this help.

  5. #5
    Registered User
    Join Date
    May 2008
    Posts
    8

    Re: Cannot use XML.load on Nokia 6300 via network

    No, we naive have used the Nokia PC Suite to upload the swf file. I believe that this "tool" does not show the whole Phone memory content.
    May you suggest us an alternative?

  6. #6
    Regular Contributor
    Join Date
    Mar 2004
    Posts
    130

    Re: Cannot use XML.load on Nokia 6300 via network

    Quote Originally Posted by uwetronnier View Post
    No, we naive have used the Nokia PC Suite to upload the swf file. I believe that this "tool" does not show the whole Phone memory content.
    May you suggest us an alternative?
    You can access "C:\Data\Others\trusted\" by Nokia PC Suite.

    At least you can access "C:\Data\Others\". In case "trusted" folder is not there, create it yourself and then copy your swf to that folder.

    -Sittiphol-

  7. #7
    Product Specialist
    Join Date
    Jun 2003
    Location
    UK
    Posts
    191

    Re: Cannot use XML.load on Nokia 6300 via network

    The Nokia 6300 is a FL2.x device running on the Series 40 platform. It does not have the security sandbox implementation from Flash Lite 3. Therefore putting the swf application into a trusted folder will have no effect.

    First you should ensure that you can actually get a network connection on the device. Use loadVariables, a basic example of which you can get from google. Determine whether you can get a network connection and load any data.

    The next step from there is to determine what is wrong from your feed. Its very likely that you are trying to load too much XML, which results in Actionscript stuck. This error happens because the Flash Player has to share time with the platform, if you try and load too much XML then the player assumes it is stuck.

    Using tools like http://www.mximframework.com will not result in better performance unless you can build a server side component.

    Mark
    Mark Doherty
    Developer Evangelist
    Adobe Systems, Mobile and Devices EMEA

  8. #8
    Registered User
    Join Date
    May 2008
    Posts
    8

    Re: Cannot use XML.load on Nokia 6300 via network

    Hello again!
    Well we had some days of heavy testing...
    And we haven't found any satisfying solution.

    We gave your hints any change:
    Quote Originally Posted by markadoherty View Post
    First you should ensure that you can actually get a network connection on the device. Use loadVariables, a basic example of which you can get from google. Determine whether you can get a network connection and load any data
    Mark
    Results: Network connection can be establisched. File uploading from our server stil works (for example our flash app.) Using loadVariables the following holds: Files up to approx. 70 characters could be uploaded. Bigger files sizes results in stucking the flash app.

    Quote Originally Posted by markadoherty View Post
    The next step from there is to determine what is wrong from your feed. Its very likely that you are trying to load too much XML, which results in Actionscript stuck. This error happens because the Flash Player has to share time with the platform, if you try and load too much XML then the player assumes it is stuck.
    Mark
    Concidering the above results we tried thinning our XML file to be downloaded. Suprisingly the download process began to work if the filesize shrunk below apprx. 78 byte. It also apperas to us that <CRLF> in the XML file influence the behaviour. Files without any <CRLF> work better than other.

    If our filesize is below the 78 byte limit downloading will sporadically work or not.

    Our mobile phone have no other expicit started application running, when we upload the file.

    We can of cause download the XML-file in the browser. This works immedeatly. May this be in any case a provider problem? We are currently using E-Net prepaid cards.

    Thanks in advance for further help
    Uwe

  9. #9
    Nokia Developer Champion
    Join Date
    Apr 2005
    Location
    Boston
    Posts
    517

    Re: Cannot use XML.load on Nokia 6300 via network

    Ciao

    did you try other connected applications to test data connection?
    As you said maybe is your operator that is blocking data.

    Alessandro

  10. #10
    Registered User
    Join Date
    May 2008
    Posts
    8

    Re: Cannot use XML.load on Nokia 6300 via network

    Hello again,
    after several times of heavily testing with Networks of other providers, especially using not only GPRS but also EDGE an UTMS services. The problem still remains the same.
    Any new ideas?
    Uwe

  11. #11
    Nokia Developer Champion
    Join Date
    Nov 2006
    Location
    Mumbai, India
    Posts
    48

    Re: Cannot use XML.load on Nokia 6300 via network

    Hi,

    I think your application has got more to do with loading of data than the security issue.

    I recently faced a similar problem when I tried using the XML class for loading large data for a FL 2.1 app. I noticed that when the data exceeded the limit set by Flash, the onLoad didn't work. I then wrote a PHP script which streamed the data in parts to the Flash Lite app, which worked beautifully for me.

    With this my Flash Lite app managed to load 1000+ characters in a single stream, which means I could load close to 2000-3000 thousand characters with multiple streams at one time.

    Maybe you want to look at working around loading the data by streaming in parts using PHP and Flash Lite.

    Mariam

  12. #12
    Registered User
    Join Date
    May 2008
    Posts
    8

    Re: Cannot use XML.load on Nokia 6300 via network

    Any good new news?
    Hello again,
    I've tried out mariamDh suggestion. Indeed in simmulator situations this works perfectly. But on a real mobile phone (this is still our Nokia 6300 Testing device - wich will incorporate a Series 40 OS) it doesn't work. No connection will be established to the server.

    Anyhow, we would prefere to use the XML object. May anybody tell me why the loading stucks if there will be more than appox. 79 characters? If this is a platform problem and we have to use an XMLsocket connection it would be fine to have an working code example for our mobile phone.

    Only if we can see this working example further development makes sense. Otherwise I am getting into severe problems about the whole technology, which seems to be not able to do promised things.

    Nevertheless: thanks mariamDh for your hint. We used it for a kind of chat application.

    Uwe

  13. #13
    Product Specialist
    Join Date
    Jun 2003
    Location
    UK
    Posts
    191

    Re: Cannot use XML.load on Nokia 6300 via network

    Hi Uwe,

    The Nokia 6300 does not support XMLSockets unfortunately and so this it not an option.
    Mark Doherty
    Developer Evangelist
    Adobe Systems, Mobile and Devices EMEA

  14. #14
    Product Specialist
    Join Date
    Jun 2003
    Location
    UK
    Posts
    191

    Re: Cannot use XML.load on Nokia 6300 via network

    Uwe, Can you contact me via email please at mdoherty AT adobe DOT com

    Thanks,
    Mark Doherty
    Developer Evangelist
    Adobe Systems, Mobile and Devices EMEA

  15. #15
    Registered User
    Join Date
    May 2008
    Posts
    8

    Re: Cannot use XML.load on Nokia 6300 via network

    Hello Mark,
    I sent you an e-mail two weeks ago but did not get any reply. Are my e-mail get stucked anywere or are you in vacation?
    Greetings
    Uwe

Similar Threads

  1. which phones for laptop
    By dvdljns in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2006-02-14, 12:58
  2. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

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