Loading ...
Sorry, an error occurred while loading the content.

RE: [FlashLite] KuneriLite is out!

Expand Messages
  • chall3ng3r
    Congrats guys, Its all good for FL developers. // chall3ng3r // From: FlashLite@yahoogroups.com [mailto:FlashLite@yahoogroups.com] On Behalf Of Ugur Kaner
    Message 1 of 11 , Oct 11, 2007
    View Source
    • 0 Attachment

      Congrats guys,

       

      Its all good for FL developers.

       

      // chall3ng3r //

       

       

      From: FlashLite@yahoogroups.com [mailto:FlashLite@yahoogroups.com] On Behalf Of Ugur Kaner
      Sent: Thursday, October 11, 2007 2:41 PM
      To: Flashmobilegroup@...; flashlite@yahoogroups.com
      Subject: [FlashLite] KuneriLite is out!

       

      Hi guys,

      Today we are excited to release KuneriLite public beta!

      Check it out ;

      Press release:

      http://www.kuneri.net/content/view/29/9/

      Web:

      http://www.kunerilite.net

      Thanks to all you guys who participated in pre-release program and alpha
      testing.

      cheers,

      Ugur Kaner

      Kuneri Ltd.
      CEO & Creative Director
      www.kuneri.net
      +358400225958

      ugur[@]kuneri(.)net

      Daily updated mobile blog http://bloggy.kuneri.net

      Visit Adobe User Group Northern Finland www.augnofi.org

    • Robert Toole
      Just in time for Halloween, I’m happy to present my first Screensaver/ Wallpaper Flash Lite project. This interactive piece is Flash Lite 2.x compatible and
      Message 2 of 11 , Oct 11, 2007
      View Source
      • 0 Attachment
        Just in time for Halloween, I’m happy to present my
        first Screensaver/
        Wallpaper Flash Lite project.

        This interactive piece is Flash Lite 2.x compatible
        and includes the
        following states:

        - The light inside the pumpkin represents your
        handsets
        battery level. The pumpkin will be luminant when you
        have a full
        charge, it will diminish as your battery drains.

        - The background represents your handsets time
        of day. When
        you are past 6am, the daylight scene is displayed.
        When you are past
        6pm, the night-time scene is displayed (keep an eye
        out for the
        creepy owl).

        I'd ask anyone in the group who;s interested to test
        with any
        handsets I don't identify in my blog post to give me
        any feedback on
        compatibility and potential bugs. I'll update the post
        with test
        feedback as I get it.

        Please check my blog for download:

        http://www.robtoole.com/blog/?p=145

        Thanks... there's been some great new FL stuff in the
        last few weeks
        and I hope this contribution will add to that
        momentum.

        -Rob Toole
        http://www.robtoole.com/blog

        PS: I am going as Jango Fett for Halloween this year.
        My seven year
        old son is going as Boba. What are you going as?


        ____________________________________________________________________________________
        Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos.
        http://autos.yahoo.com/index.html
      • Dekterev, Irving
        Hi, I ve been trying to load an XML file into a class structure, but seem to be running into serious memory issues in doing so. Not being familiar with flash
        Message 3 of 11 , Oct 17, 2007
        View Source
        • 0 Attachment

          Hi,

           

          I’ve been trying to load an XML file into a class structure, but seem to be running into serious memory issues in doing so. Not being familiar with flash lite, I am not sure how to debug this issue.

          It seems that when I try to load more than about 40 tracks from XML into my class structure, I run out of memory. Given that the original XML is usually around 10KB, I find it very hard to understand why this is happening.

           

          In the extreme case, it seems that loading 130 or so tracks uses up about 672KB of memory. This equates to about 4.2KB per track????!!!

           

          Any ideas??

          Irving

           

          // class definition

          class clsTrack
          {
               public var trackname:String;
                  public var artist:String;
                  public var album:String;
                  public var path:String;
                  public var id:Number;
                  public var duration:Number;
          }

           

          //----MAIN.AS---------

          // loop to load XML:

           

          mp3List = new XML();

          mp3List.ignoreWhite = true;

           

          mp3List.load("listall.xml");

           

           

          //----------------------LOAD TRACKS------------------------------

          mp3List.onLoad = function (success) {

                      var memoryPre:Number;

                      var memoryPost:Number;

                     

                      if(success && mp3List.getBytesLoaded() > 0){

                                 

                                  memoryPre = fscommand2("GetFreePlayerMemory");

                                  if (mp3List.firstChild.nodeName == "contents"){

                                              var nodes:Array = mp3List.firstChild.childNodes;

           

                                              for (var i in nodes){ // LOOP THROUGH EACH TRACK - i.e. nodes[i] cycles through each track

                                                          _root["TRK" + i] = new clsTrack();

                                                          trace("creating: TRK" + i);

          //                                              trace("heap mem remaining: " + fscommand2("GetFreePlayerMemory"));

                                                          for (var aNode:XMLNode = nodes[i].firstChild; aNode != null; aNode = aNode.nextSibling) {

                                                                       switch (aNode.nodeName) {

                                                                                   case "title":

                                                                                              _root["TRK"+i].trackname = aNode.firstChild.nodeValue;

                                                                                   break;

                                                                                   case "artist":

                                                                                              _root["TRK"+i].artist = aNode.firstChild.nodeValue;

                                                                                   break;

                                                                                   case "album":

                                                                                              _root["TRK"+i].album = aNode.firstChild.nodeValue;

                                                                                   break;

                                                                                   case "id":

                                                                                              _root["TRK"+i].id = aNode.firstChild.nodeValue;

                                                                                              // add entry to translation variable (translates b/w dB ID and our TRK## ids)

                                                                                              set ("xID" + _root["TRK"+i].id, i);

                                                                                   break;

                                                                                   case "path":

                                                                                              _root["TRK"+i].path = aNode.firstChild.nodeValue;

                                                                                              trace(_root["TRK"+i].path);

                                                                                   break;

                                                                                   case "duration":

                                                                                              _root["TRK"+i].duration = aNode.firstChild.nodeValue;

                                                                                   break;                                                             

                                                                       }

                                                                     

                                                          }

                                                          aNode = null;

                                              }

                                              i = null;

                                              totalTracks = nodes.length;

                                              nodes = null;

                                              memoryPost = fscommand2("GetFreePlayerMemory");

                                              trace(totalTracks + " tracks loaded. Memory used: " + (memoryPre - memoryPost) + "KB");

                                  }

                      }

          }

           

          Here is an example XML:

           

          <contents>

          <content>

          <album>Money File - Nightly Business Report | PBS</album>

          <artist>Nightly Business Report</artist>

          <duration type="integer">109714</duration>

          <id type="integer">378</id>

          <path>/podcasts/Money File - Nightly Business Report PBS/nbr_mf_070725</path>

          <title>Credit Report Protection</title>

          </content>

          <content>

          <album>The Media Report</album>

          <artist>ABC Radio National</artist>

          <duration type="integer">1767038</duration>

          <id type="integer">376</id>

          <path>/podcasts/The Media Report/mrt_20071011</path>

          <title>Media Rpt 2007-10-11</title>

          </content>

          </contents>

        • Shannon
          Hi XML in FL is a big memory hog. Ease of use yes, but a memory suck nonetheless. I don t use any of the XML class with FL now. I would use LoadVars to load
          Message 4 of 11 , Oct 18, 2007
          View Source
          • 0 Attachment
            Hi
            XML in FL is a big memory hog. Ease of use yes, but a memory suck
            nonetheless. I don't use any of the XML class with FL now. I would
            use LoadVars to load your xml file, and then using on onData function,
            parse out the src string that is returned in the onData function.

            Something like this:

            // load xml file with LoadVars class
            mp3List = new LoadVars();
            mp3List.load("listall.xml");

            //----------------------LOAD TRACKS------------------------------
            mp3List.onData = function ( src : String )
            {
            var tracks : Array = src.split( "</content>" );
            var i : Number = 0;
            var max : Number = tracks.length;
            var trackList:Array = new Array();

            // You'll have an array of each track data object, parse it
            out however you need to
            for( i; i < max; i ++ )
            {
            var tlData = tracks[ i ].split( "</album>" );
            trace( "DATA : " + tlData );
            }
            }

            You'll find this saves an amazing amount of memory.

            Hope that helps.
            -shannon


            --- In FlashLite@yahoogroups.com, "Dekterev, Irving"
            <Irving.Dekterev@...> wrote:
            >
            > Hi,
            >
            >
            >
            > I've been trying to load an XML file into a class structure, but seem
            to
            > be running into serious memory issues in doing so. Not being familiar
            > with flash lite, I am not sure how to debug this issue.
            >
            > It seems that when I try to load more than about 40 tracks from XML
            into
            > my class structure, I run out of memory. Given that the original XML
            is
            > usually around 10KB, I find it very hard to understand why this is
            > happening.
            >
            >
            >
            > In the extreme case, it seems that loading 130 or so tracks uses up
            > about 672KB of memory. This equates to about 4.2KB per track????!!!
            >
            >
            >
            > Any ideas??
            >
            > Irving
            >
            >
            >
            > // class definition
            >
            > class clsTrack
            > {
            > public var trackname:String;
            > public var artist:String;
            > public var album:String;
            > public var path:String;
            > public var id:Number;
            > public var duration:Number;
            > }
            >
            >
            >
            > //----MAIN.AS---------
            >
            > // loop to load XML:
            >
            >
            >
            > mp3List = new XML();
            >
            > mp3List.ignoreWhite = true;
            >
            >
            >
            > mp3List.load("listall.xml");
            >
            >
            >
            >
            >
            > //----------------------LOAD TRACKS------------------------------
            >
            > mp3List.onLoad = function (success) {
            >
            > var memoryPre:Number;
            >
            > var memoryPost:Number;
            >
            >
            >
            > if(success && mp3List.getBytesLoaded() > 0){
            >
            >
            >
            > memoryPre = fscommand2("GetFreePlayerMemory");
            >
            > if (mp3List.firstChild.nodeName ==
            "contents"){
            >
            > var nodes:Array =
            > mp3List.firstChild.childNodes;
            >
            >
            >
            > for (var i in nodes){ // LOOP
            > THROUGH EACH TRACK - i.e. nodes[i] cycles through each track
            >
            > _root["TRK" + i] = new
            > clsTrack();
            >
            > trace("creating: TRK"
            +
            > i);
            >
            > // trace("heap mem
            > remaining: " + fscommand2("GetFreePlayerMemory"));
            >
            > for (var aNode:XMLNode
            =
            > nodes[i].firstChild; aNode != null; aNode = aNode.nextSibling) {
            >
            > switch
            > (aNode.nodeName) {
            >
            >
            > case "title":
            >
            >
            > _root["TRK"+i].trackname = aNode.firstChild.nodeValue;
            >
            >
            > break;
            >
            >
            > case "artist":
            >
            >
            > _root["TRK"+i].artist = aNode.firstChild.nodeValue;
            >
            >
            > break;
            >
            >
            > case "album":
            >
            >
            > _root["TRK"+i].album = aNode.firstChild.nodeValue;
            >
            >
            > break;
            >
            >
            > case "id":
            >
            >
            > _root["TRK"+i].id = aNode.firstChild.nodeValue;
            >
            >
            > // add entry to translation variable (translates b/w dB ID and our
            TRK##
            > ids)
            >
            >
            > set ("xID" + _root["TRK"+i].id, i);
            >
            >
            > break;
            >
            >
            > case "path":
            >
            >
            > _root["TRK"+i].path = aNode.firstChild.nodeValue;
            >
            >
            > trace(_root["TRK"+i].path);
            >
            >
            > break;
            >
            >
            > case "duration":
            >
            >
            > _root["TRK"+i].duration = aNode.firstChild.nodeValue;
            >
            >
            > break;
            >
            > }
            >
            >
            >
            > }
            >
            > aNode = null;
            >
            > }
            >
            > i = null;
            >
            > totalTracks = nodes.length;
            >
            > nodes = null;
            >
            > memoryPost =
            > fscommand2("GetFreePlayerMemory");
            >
            > trace(totalTracks + " tracks
            loaded.
            > Memory used: " + (memoryPre - memoryPost) + "KB");
            >
            > }
            >
            > }
            >
            > }
            >
            >
            >
            > Here is an example XML:
            >
            >
            >
            > <contents>
            >
            > <content>
            >
            > <album>Money File - Nightly Business Report | PBS</album>
            >
            > <artist>Nightly Business Report</artist>
            >
            > <duration type="integer">109714</duration>
            >
            > <id type="integer">378</id>
            >
            > <path>/podcasts/Money File - Nightly Business Report
            > PBS/nbr_mf_070725</path>
            >
            > <title>Credit Report Protection</title>
            >
            > </content>
            >
            > <content>
            >
            > <album>The Media Report</album>
            >
            > <artist>ABC Radio National</artist>
            >
            > <duration type="integer">1767038</duration>
            >
            > <id type="integer">376</id>
            >
            > <path>/podcasts/The Media Report/mrt_20071011</path>
            >
            > <title>Media Rpt 2007-10-11</title>
            >
            > </content>
            >
            > </contents>
            >
          • Oktavianus Ludiro
            Agree with Shannon. in my last project i am using JSON and playing around with SWX from aral balkan. both of them has a smaller header and load compare to XML.
            Message 5 of 11 , Oct 18, 2007
            View Source
            • 0 Attachment
              Agree with Shannon.

              in my last project i am using JSON and playing around with SWX from aral balkan.
              both of them has a smaller header and load compare to XML.
              json coder / encoder is pretty slim and using low memory to process compare to XML in flash lite.
              for AS2 json class use this
              http://www.5etdemi.com/uploads/JSON.zip
              or
              http://json.org/json.as


              for more json information :
              http://json.org/

              but i will still recomend aral balkan SWX if you have access to the programming the data source.
              it's so much easy to use, immediate data processing and very low bandwidth thanks to the swx compression.

              good luck
              Oki


              On 10/18/07, Shannon <shannon.romano@...> wrote:

              Hi
              XML in FL is a big memory hog. Ease of use yes, but a memory suck
              nonetheless. I don't use any of the XML class with FL now. I would
              use LoadVars to load your xml file, and then using on onData function,
              parse out the src string that is returned in the onData function.

              Something like this:

              // load xml file with LoadVars class
              mp3List = new LoadVars();
              mp3List.load("listall.xml");

              //----------------------LOAD TRACKS------------------------------
              mp3List.onData = function ( src : String )
              {
              var tracks : Array = src.split( "</content>" );
              var i : Number = 0;
              var max : Number = tracks.length;
              var trackList:Array = new Array();

              // You'll have an array of each track data object, parse it
              out however you need to
              for( i; i < max; i ++ )
              {
              var tlData = tracks[ i ].split( "</album>" );
              trace( "DATA : " + tlData );
              }
              }

              You'll find this saves an amazing amount of memory.

              Hope that helps.
              -shannon

              --- In FlashLite@yahoogroups.com, "Dekterev, Irving"
              <Irving.Dekterev@...> wrote:
              >
              > Hi,
              >
              >
              >
              > I've been trying to load an XML file into a class structure, but seem
              to
              > be running into serious memory issues in doing so. Not being familiar
              > with flash lite, I am not sure how to debug this issue.
              >
              > It seems that when I try to load more than about 40 tracks from XML
              into
              > my class structure, I run out of memory. Given that the original XML
              is
              > usually around 10KB, I find it very hard to understand why this is
              > happening.
              >
              >
              >
              > In the extreme case, it seems that loading 130 or so tracks uses up
              > about 672KB of memory. This equates to about 4.2KB per track????!!!
              >
              >
              >
              > Any ideas??
              >
              > Irving
              >
              >
              >
              > // class definition
              >
              > class clsTrack
              > {
              > public var trackname:String;
              > public var artist:String;
              > public var album:String;
              > public var path:String;
              > public var id:Number;
              > public var duration:Number;
              > }
              >
              >
              >
              > //----MAIN.AS---------
              >
              > // loop to load XML:
              >
              >
              >
              > mp3List = new XML();
              >
              > mp3List.ignoreWhite = true;
              >
              >
              >
              > mp3List.load("listall.xml");
              >
              >
              >
              >
              >
              > //----------------------LOAD TRACKS------------------------------
              >
              > mp3List.onLoad = function (success) {
              >
              > var memoryPre:Number;
              >
              > var memoryPost:Number;
              >
              >
              >
              > if(success && mp3List.getBytesLoaded() > 0){
              >
              >
              >
              > memoryPre = fscommand2("GetFreePlayerMemory");
              >
              > if (mp3List.firstChild.nodeName ==
              "contents"){
              >
              > var nodes:Array =
              > mp3List.firstChild.childNodes;
              >
              >
              >
              > for (var i in nodes){ // LOOP
              > THROUGH EACH TRACK - i.e. nodes[i] cycles through each track
              >
              > _root["TRK" + i] = new
              > clsTrack();
              >
              > trace("creating: TRK"
              +
              > i);
              >
              > // trace("heap mem
              > remaining: " + fscommand2("GetFreePlayerMemory"));
              >
              > for (var aNode:XMLNode
              =
              > nodes[i].firstChild; aNode != null; aNode = aNode.nextSibling) {
              >
              > switch
              > (aNode.nodeName) {
              >
              >
              > case "title":
              >
              >
              > _root["TRK"+i].trackname = aNode.firstChild.nodeValue;
              >
              >
              > break;
              >
              >
              > case "artist":
              >
              >
              > _root["TRK"+i].artist = aNode.firstChild.nodeValue;
              >
              >
              > break;
              >
              >
              > case "album":
              >
              >
              > _root["TRK"+i].album = aNode.firstChild.nodeValue;
              >
              >
              > break;
              >
              >
              > case "id":
              >
              >
              > _root["TRK"+i].id = aNode.firstChild.nodeValue;
              >
              >
              > // add entry to translation variable (translates b/w dB ID and our
              TRK##
              > ids)
              >
              >
              > set ("xID" + _root["TRK"+i].id, i);
              >
              >
              > break;
              >
              >
              > case "path":
              >
              >
              > _root["TRK"+i].path = aNode.firstChild.nodeValue;
              >
              >
              > trace(_root["TRK"+i].path);
              >
              >
              > break;
              >
              >
              > case "duration":
              >
              >
              > _root["TRK"+i].duration = aNode.firstChild.nodeValue;
              >
              >
              > break;
              >
              > }
              >
              >
              >
              > }
              >
              > aNode = null;
              >
              > }
              >
              > i = null;
              >
              > totalTracks = nodes.length;
              >
              > nodes = null;
              >
              > memoryPost =
              > fscommand2("GetFreePlayerMemory");
              >
              > trace(totalTracks + " tracks
              loaded.
              > Memory used: " + (memoryPre - memoryPost) + "KB");
              >
              > }
              >
              > }
              >
              > }
              >
              >
              >
              > Here is an example XML:
              >
              >
              >
              > <contents>
              >
              > <content>
              >
              > <album>Money File - Nightly Business Report | PBS</album>
              >
              > <artist>Nightly Business Report</artist>
              >
              > <duration type="integer">109714</duration>
              >
              > <id type="integer">378</id>
              >
              > <path>/podcasts/Money File - Nightly Business Report
              > PBS/nbr_mf_070725</path>
              >
              > <title>Credit Report Protection</title>
              >
              > </content>
              >
              > <content>
              >
              > <album>The Media Report</album>
              >
              > <artist>ABC Radio National</artist>
              >
              > <duration type="integer">1767038</duration>
              >
              > <id type="integer">376</id>
              >
              > <path>/podcasts/The Media Report/mrt_20071011</path>
              >
              > <title>Media Rpt 2007-10-11</title>
              >
              > </content>
              >
              > </contents>
              >




              --
                     - OQ -
              oludiro@...

              01001100 01101111
              01110110 01100101
              00100000 01010011
              01101111 01100110
              01101001 01100101
            Your message has been successfully submitted and would be delivered to recipients shortly.