Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User kvirtanen's Avatar
    Join Date
    Feb 2010
    Posts
    6
    My head hurts of trying to search through the net for a solution I believe I didn't find one here, so here goes. I'm simply trying to make a SWF file load some values from an XML file and they're both stored locally. No network access is being tried to make.

    So, I have:
    - a WRT widget written in javaScript and HTML
    - a .SWF -file (tried all Flash Lite versions from 2.0 to 3.0) that displays a pie chart
    - an XML file that contains the values and colors to render the pie chart
    - publish settings 'Access local files only'


    I've loaded the XML in the Flash file using the load() function (I followed Lee Brimelow's example at www.gotoandlearn.com). Basically I'm 99% sure I'm doing it right, because it works. Then when publishing the SWF file Adobe Device Central gives me a warning that:

    "FTPS033: A Call to loadVariables(pieGraph.xml) found, limitations might apply."

    But everything works. I make a .WGZ file of the whole package and send it to my N97.

    What happens next is that the embedded flash file loads fine in the widget, but doesn't see the XML file that's in the same directory. I end up with a black square (colors didn't load from the XML). Everything works fine in my computer's browser and Adobe Device Central.

    I read from Adobe's site that in some devices the load() function is somehow disabled (for security reasons?) and has to be externally triggered (for example by clicking the Flash object). Is this true? I read somewhere that there's a 'trusted' folder in the phone where all this should work. How can I make the .WGZ file install there? At that same point I read that also the 'private' folder should act the same way, but that's exactly where the widget is being installed by default and it still doesn't work.

    How can I get pass this?

  2. #2
    Nokia Developer Champion sajisoft's Avatar
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,062
    there's a 'trusted' folder in the phone where all this should work. How can I make the .WGZ file install there?
    You cannot install a widget (.wgz) in any folder except the default private folder.
    I read that also the 'private' folder should act the same way, but that's exactly where the widget is being installed by default and it still doesn't work.
    True. But my findings are that the swf embedded into a widget doesn't load local files placed inside the same private folder, doesnt matter whether u use relative path or absolute path in load api.It seems to be a limitation.What one can do is to load the xml from the internet for the first time then save it using Shared Objects (max 4 kb).

    BTW, if any one find a internet-free workaround , please post it here.

    Best Regards,
    SajiSoft

  3. #3
    Nokia Developer Moderator Risalmin's Avatar
    Join Date
    May 2007
    Location
    Finland
    Posts
    134
    Your problem looks like a bug in earlier version of flash enablement in WRT. This should work now with FL 3.1 Can you try with a device with the update installed?

  4. #4
    Registered User shpe11's Avatar
    Join Date
    Jan 2007
    Location
    bucharest
    Posts
    222
    since the xml is static, why not embed the xml in the swf code???

    or in .js code and then set a flash variable from .js

    and if you wanna save things larger than 4K you can use more SharedObjects or with widget.setPreferenceForKey(String preference, String key) form widget
    http://m.shpe.ro
    http://work.shpe.ro
    http://purchase.shpe.ro/iPics

Similar Threads

  1. Flash Lite and XML file
    By Noeff2002 in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2009-10-21, 09:39
  2. Package tool for Flash lite for WRT s60, NFL and add DRM 1.0 forward lock
    By samirk_dash in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2008-10-07, 08:49
  3. widget using local xml file
    By swetha_t in forum Symbian Web Runtime
    Replies: 3
    Last Post: 2008-05-30, 15:26
  4. Replies: 3
    Last Post: 2007-03-07, 03:36
  5. Nokia File Manager and Flash Lite 2.0
    By RyanSantos in forum General Development Questions
    Replies: 8
    Last Post: 2006-04-15, 21:28

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved