×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    3

    packaging flash lite widget

    Hi, I'm having problems packaging our flash lite app as a widget. I've followed the instructions at: http://wiki.forum.nokia.com/index.ph...nt_in_a_Widget .

    Option 1 embedded flash works but on the phone it responds to touch at times by messing up our formatting. So, I want to try Option 2 Direct Play. I've followed the directions over and over, but can't get it to install on the phone (I get an error message). Am I missing something?


    Option 2. Direct play

    Instead of embedding the .swf file into an html page, you can replace the main.html file with your .swf file. This means that you need only three files:
    1. A manifest file (info.plist) with the .swf file as the value for the MainHTML key.
    <key>MainHTML</key>
    <string>myFlash.swf</string>
    2. The .swf file you named in the info.plist file.
    3. The icon.png file (optional).

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: packaging flash lite widget

    I think this is due to missing tags & Display Name in info.plist. Write this in info.plist :
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Nokia//DTD PLIST 1.0//EN" "http://www.nokia.com/NOKIA_COM_1/DTDs/plist-1.0.dtd">
    <plist version="1.0">
        <dict>
    	        <key>DisplayName</key>
    	        <string>MenuIconName</string>
    	        <key>Identifier</key>
    	        <string>com.forum.widgets.projectname</string>
    	        <key>Version</key>
    	        <string>1.0</string>
    	        <key>MainHTML</key>
    	        <string>MyFlash.swf</string>
        </dict>
    </plist>
    For more details on info.plist , take a look here :
    info.plist Nokia Library Documentation

    Best Regards,
    SajiSoft

  3. #3
    Registered User
    Join Date
    Dec 2009
    Posts
    3

    Re: packaging flash lite widget

    It's strange, I used your plist code to make a plist file and zipped it with my swf file, and changed the extension to wgz. However, it doesn't install on the phone.

    Any ideas?

  4. #4
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: packaging flash lite widget

    Quote Originally Posted by supportgpa View Post
    It's strange, I used your plist code to make a plist file and zipped it with my swf file, and changed the extension to wgz. However, it doesn't install on the phone.

    Any ideas?
    Yes have an idea. May be u r packing the widget incorrectly. I just uploaded myTest widget which is working fine on my Nokia 5800 XM. Try this :
    MyTest.wgz

    Best Regards,
    SajiSoft

  5. #5
    Registered User
    Join Date
    Jan 2010
    Posts
    13

    Question Re: packaging flash lite widget

    Hi Sajisoft. I got this working. I found out that certain "zip" programs cause the .wgz file to fail. Winzip worked for me.

    How do you ensure that the .swf file installs to the Others/Trusted folder of the memory card? I need this so that the .swf can access the Internet for data. Thanks.

  6. #6
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: packaging flash lite widget

    How do you ensure that the .swf file installs to the Others/Trusted folder of the memory card? I need this so that the .swf can access the Internet for data.
    You cannot do this. WRT installs swf files to a private directory automatically and i think private directory works as a trusted directory. So, what u have to do is to add this tag in your info.plist :
    Code:
    <key>AllowNetworkAccess</key>
    <true/>
    and it will work for you.

    Best Regards,
    SajiSoft

  7. #7
    Registered User
    Join Date
    Jan 2010
    Posts
    13

    Question Re: packaging flash lite widget

    Hey Thanks. I forgot about. I have added this into the info.plist file, but the swf file still can't access data from the Internet. Is there anything else I need to do? Or is there any other way that a shortcut can reference an swf file?

  8. #8
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: packaging flash lite widget

    Quote Originally Posted by cprice View Post
    Hey Thanks. I forgot about. I have added this into the info.plist file, but the swf file still can't access data from the Internet. Is there anything else I need to do? Or is there any other way that a shortcut can reference an swf file?
    It is working fine for me. I did nothing but put the network tag and export my swf under access network settings only and yes one of the known issue is this if u previously loaded the xml using direct link in swf embed into wrt then it will not load the same xml file again from network but use browser cache instead.To avoid this behaviour , take a look at Jappit post :
    Browser Cache

    BTW, to check whether u have the same issue, just clear all cache from browser and run ur widget again. It should connect to the network this time.

    Best Regards,
    SajiSoft

  9. #9
    Registered User
    Join Date
    Dec 2004
    Location
    Cape Town / Singapore
    Posts
    51

    Re: packaging flash lite widget

    Also remember that you need to ZIP the containing directory and not the seperate files, otherwise it will also generate an error when trying to install.

Similar Threads

  1. Flash Lite Packaging for the S60 phones
    By jimgilmour1 in forum [Closed] Publishing to Nokia Store
    Replies: 13
    Last Post: 2010-02-11, 05:48
  2. Petition: Nokia Flash Lite packaging on all future Nokia
    By biskero in forum [Archived] Flash Lite on Nokia Devices
    Replies: 22
    Last Post: 2009-05-10, 01:21
  3. Flash Lite Packaging for the Nokia Series 40
    By jimgilmour1 in forum [Closed] Publishing to Nokia Store
    Replies: 1
    Last Post: 2009-05-09, 21:59
  4. Flash Lite with Javascript - not in a WRT widget
    By funkadeelia in forum [Archived] Flash Lite on Nokia Devices
    Replies: 4
    Last Post: 2009-03-05, 13:55
  5. Flash CS3 + Flash Lite 1.x + dynamic text + embedded fonts = broken?
    By robchis in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2009-02-28, 13:04

Posting Permissions

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