3 Replies Latest reply on Jan 27, 2009 4:53 AM by Newsgroup_User

    How to delay creation of VideoDisplay

    Vanden_B
      My Flex' app reads an xml with different video-source-url's. On the same time the VideoDisplay is created. But it does not have the url for the VideoDisplay source property because parsing is taking to long.

      How can I delay the creation of the VideoDisplay component?
        • 1. Re: How to delay creation of VideoDisplay
          Level 7

          "Flextoth" <webforumsuser@macromedia.com> wrote in message
          news:glktfo$ipm$1@forums.macromedia.com...
          > My Flex' app reads an xml with different video-source-url's. On the same
          > time
          > the VideoDisplay is created. But it does not have the url for the
          > VideoDisplay
          > source property because parsing is taking to long.
          >
          > How can I delay the creation of the VideoDisplay component?
          >

          Do you actually need to delay its creation, or just delay setting its source
          property?


          • 2. Re: How to delay creation of VideoDisplay
            Vanden_B Level 1
            I think delay it's creation. Actually the VideoDisplay have to be created when the source-urls are parsed .


            btw, i get the error: "Unable to make connection to server or to find FLV on server"
            • 3. Re: How to delay creation of VideoDisplay
              Level 7

              "Flextoth" <webforumsuser@macromedia.com> wrote in message
              news:glmgpd$idj$1@forums.macromedia.com...
              >I think delay it's creation. Actually the VideoDisplay have to be created
              >when the source-urls are parsed .
              >
              >
              > btw, i get the error: "Unable to make connection to server or to find FLV
              > on server"

              So, if you don't try to set the source property on the VideoDisplays until
              the url's are retrieved, do you still get the error?