×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    28

    external assets in an NFL

    is it possible to use external assets in aa SWF packaged in NFL?

    i have an SWF which uses an XML file for translations.
    i can't find info on how to reference external files in the descriptor file, only reference the root file.

    the XML is contained in the NFL package and the SWF references it as if in the same directory.

    when I load the app on a device the XML does not load.

    is it not possible to use external assets/XML files ?

    simon

  2. #2
    Registered User
    Join Date
    Mar 2009
    Posts
    28

    Re: external assets in an NFL

    i'm targeting S40 5th fp1+ and 6th ed devices, tested on a 6603 classic

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

    Re: external assets in an NFL

    Hi!

    If your project have more than one SWF you can ZIP your contents into a single ZIP file and use it. You have this information explained here:
    http://library.forum.nokia.com/index...BBD4A7E4A.html

    If your Flash Lite application consists of multiple files, package the files into a single ZIP file before creating the NFL package with the Forum Nokia Flash Packaging Tool. The main SWF file must be located in the root of the ZIP file. If your Flash Lite application consists of a single SWF file, you do not need to create a ZIP file for it.
    Marcos.
    --------------------------------------------
    http://www.q-interactiva.com
    http://www.infocket.com
    Spanish Mobile & Devices Adobe User Group Manager
    http://www.blocketpc.com

  4. #4
    Registered User
    Join Date
    Mar 2009
    Posts
    28

    Re: external assets in an NFL

    thanks for your response.

    i tried to zip the XML file before adding it to the NFL but that never worked.

    I just have one SWF and one XML. The SWF stayed in the root and the XML was added in a zip.

    Can't use the packaging tool since its offline.

    There's no mention of what the zip should be called and not sure how the SWF is going to find the XML if it is zipped.

    Any other suggestions are welcome

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

    Re: external assets in an NFL

    I have checked this manual: http://sw.nokia.com/id/4c2b63d5-fe86...at_v1_0_en.pdf but there is no reference to include more files than the main swf.

    It talks about "Directory names in folder (and descriptor.inf) must only contain ASCII characters" so I understand you can have directories inside the NFL file. Are you using relative paths to load the XML file?

    Marcos.
    --------------------------------------------
    http://www.q-interactiva.com
    http://www.infocket.com
    Spanish Mobile & Devices Adobe User Group Manager
    http://www.blocketpc.com

  6. #6
    Registered User
    Join Date
    Mar 2009
    Posts
    28

    Re: external assets in an NFL

    Hi
    I'm using relative paths in the SWF to point to the XML.

    My NFL package contains:

    descriptor.inf
    MenuIcon.png
    Content.swf
    Translations.xml

    In Content.swf the XML is loaded with a relative path:
    translationXML.load("Translations.xml");

    When these 4 files are packaged in an NFL and transferred to my device (6303 classic S40 6th ed) the flash file loads but since the XML does not load no content appears.

    I tried to zip the XML by itself as suggested in the Doc you mentioned to create the following package:
    descriptor.inf
    MenuIcon.png
    Content.swf
    MyApp.zip/Translations.xml

    But that did not work and it starts to become unclear what the relative path should be in the SWF or what the ZIP should be called
    So I used the same translationXML.load("Translations.xml"); ?

    I tried to include the SWF in the ZIP
    descriptor.inf
    MenuIcon.png
    MyApp.zip/Translations.xml
    MyApp.zip/Content.swf

    But that didn't work either.

    neither did:
    descriptor.inf
    MenuIcon.png
    Content.swf
    XML/Translations.xml

    XML loaded as: translationXML.load("XML/Translations.xml");

    or:
    descriptor.inf
    MenuIcon.png
    Content.swf
    MyApp.zip/XML/Translations.xml

    (..getting desperate now!).

    The contents of my descriptor.inf file are
    FL-Name: My App FL-Root:Content.swfFL-Icon: MenuIcon.png FL-Version:1.0.01

    Maybe I need to reference the external assets in the descriptor file but not sure what the parameter name should be since there is no reference to it in the doc.

    Any ideas?

    Thanks for your time

Similar Threads

  1. error LNK2001: Please Help
    By sourish_khan in forum Symbian
    Replies: 9
    Last Post: 2006-04-19, 11:16
  2. S80 Platform SDK and Visual Studio .NET Linking Error
    By jayantjain in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2005-10-07, 22:14
  3. CEikDialog Question
    By AdamBeck in forum Symbian
    Replies: 2
    Last Post: 2004-09-30, 19:40
  4. Dialogs within Symbian 6.0 based SDK
    By georgica1979 in forum Symbian User Interface
    Replies: 14
    Last Post: 2003-04-07, 15:29
  5. Unresolved external symbols problem
    By georgica1979 in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-04-06, 13:26

Posting Permissions

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