2 Replies Latest reply on Nov 13, 2006 8:21 AM by Newsgroup_User

    saving flash object in lingo?

    Level 7
      Hi,

      I want to use multiple Flash movies in one Director movie with one XML
      file (UTF8).

      Is it possible to load the XML data into flash and save it as object to
      a Director global and later put this object on another flash sprite?

      If I have lots of XML data my flash would take a long time to load and
      parase the XML data again and again.

      Is it a good idea to store flash data into director?

      TIA
        • 1. Re: saving flash object in lingo?
          SylvainT
          Global ocbject :

          myFlashObject = newObject("XML")
          -- Add Date to it and Parse it.

          mySpriteFlashObject = sprite("myFlashSprite").newObject("XML")
          mySpriteFlashObject = myFlashObject

          I hope this helps
          • 2. Re: saving flash object in lingo?
            Level 7
            SylvainT wrote:
            > Global ocbject :
            >
            > myFlashObject = newObject("XML")
            > -- Add Date to it and Parse it.
            >
            > mySpriteFlashObject = sprite("myFlashSprite").newObject("XML")
            > mySpriteFlashObject = myFlashObject
            >
            > I hope this helps

            Sorry I don't understand this.


            First I parse my XML data in flash and create an array of it.

            I tried to get an array from Flash and store it's Data in my Director
            Movie. I tried just to get it via getVariables but I get an empty string
            instead of an array back.

            fl2 = sprite(9).getVariable("_level0.strary",false);