8 Replies Latest reply on Jan 11, 2009 12:07 PM by kjsperl

    Unable to create source...

    kjsperl
      I get this message when attempting to embed an SWF file into FLEX as follows:

      [Embed (source='assets/advertdemoleft.swf')]
      private var adl:Class;

      the swf is built with Interactive Designer in Quark and exported as SWF.

      Help??
        • 1. Re: Unable to create source...
          Level 7

          "kjsperl" <webforumsuser@macromedia.com> wrote in message
          news:gkasmu$cb9$1@forums.macromedia.com...
          >I get this message when attempting to embed an SWF file into FLEX as
          >follows:
          >
          > [Embed (source='assets/advertdemoleft.swf')]
          > private var adl:Class;
          >
          > the swf is built with Interactive Designer in Quark and exported as SWF.
          >
          > Help??

          I think you forgot to include the message.


          • 2. Re: Unable to create source...
            kjsperl Level 1
            Why yes, I did. The message is:

            "unable to create source for <swf object name>"
            • 3. Re: Unable to create source...
              Level 7

              "kjsperl" <webforumsuser@macromedia.com> wrote in message
              news:gkcss6$1je$1@forums.macromedia.com...
              > Why yes, I did. The message is:
              >
              > "unable to create source for <swf object name>"

              Where in your post was that?

              Anyway, have you verified that the path is correct?


              • 4. Re: Unable to create source...
                kjsperl Level 1
                Sorry, Amy.

                When I wrote, Why, yes I did, I meant that I had forgotten to include the error. Sorry. Yes, I have verified that the path is correct.

                Anyway, here is more complete info:

                The SWF that I am using was created by Quark Interactive Designer:

                Here is the mxml file:

                <?xml version="1.0" encoding="utf-8"?>
                <mx:Application
                xmlns:mx=" http://www.adobe.com/2006/mxml"
                xmlns:rs="com.rubenswieringa.book.*"
                layout="absolute"
                backgroundColor="#000000"
                viewSourceURL="source/index.html">

                <rs:Book x="25" y="25" width="800" height="400" openAt="1">

                <rs:Page><mx:Image source="@Embed('assets/advertdemoleft.swf')" /></rs:Page>
                <rs:Page><mx:Image source="@Embed('assets/advertdemoright.swf')" /></rs:Page>

                </rs:Book>

                </mx:Application>

                Here is the compiler errors:

                G:\Lakes_Region_Spirit\TheMagazine\MarketingDemo\FLEX_SimpleDemo>mxmlc simple.mxml
                Loading configuration file C:\Program Files\FLEXSDK2.0\frameworks\flex-config.xml
                G:\Lakes_Region_Spirit\TheMagazine\MarketingDemo\FLEX_SimpleDemo\simple.mxml(13)
                : Error: Unable to create source simple__embed_mxml_assets_advertdemoleft_swf_184785095.

                <rs:Page><mx:Image source="@Embed('assets/advertdemoleft.swf')"/></rs:Page>

                G:\Lakes_Region_Spirit\TheMagazine\MarketingDemo\FLEX_SimpleDemo\simple.mxml(14)
                : Error: Unable to create source simple__embed_mxml_assets_advertdemoright_swf_1037795143.

                <rs:Page><mx:Image source="@Embed('assets/advertdemoright.swf')" /></rs:Page>

                I apppreciate your responding and I hope you can help.

                • 5. Re: Unable to create source...
                  Level 7

                  "kjsperl" <webforumsuser@macromedia.com> wrote in message
                  news:gkd3fn$96f$1@forums.macromedia.com...
                  > Sorry, Amy.
                  >
                  > When I wrote, Why, yes I did, I meant that I had forgotten to include the
                  > error. Sorry. Yes, I have verified that the path is correct.
                  >
                  > Anyway, here is more complete info:
                  >
                  > The SWF that I am using was created by Quark Interactive Designer:
                  >
                  > Here is the mxml file:
                  >
                  > <?xml version="1.0" encoding="utf-8"?>
                  > <mx:Application
                  > xmlns:mx=" http://www.adobe.com/2006/mxml"
                  > xmlns:rs="com.rubenswieringa.book.*"
                  > layout="absolute"
                  > backgroundColor="#000000"
                  > viewSourceURL="source/index.html">
                  >
                  > <rs:Book x="25" y="25" width="800" height="400" openAt="1">
                  >
                  > <rs:Page><mx:Image source="@Embed('assets/advertdemoleft.swf')"
                  > /></rs:Page>
                  > <rs:Page><mx:Image source="@Embed('assets/advertdemoright.swf')"
                  > /></rs:Page>
                  >
                  > </rs:Book>
                  >
                  > </mx:Application>
                  >
                  > Here is the compiler errors:
                  >
                  > G:\Lakes_Region_Spirit\TheMagazine\MarketingDemo\FLEX_SimpleDemo>mxmlc
                  > simple.mxml
                  > Loading configuration file C:\Program
                  > Files\FLEXSDK2.0\frameworks\flex-config.xml
                  >
                  > G:\Lakes_Region_Spirit\TheMagazine\MarketingDemo\FLEX_SimpleDemo\simple.mxml(13)
                  > : Error: Unable to create source
                  > simple__embed_mxml_assets_advertdemoleft_swf_184785095.
                  >
                  > <rs:Page><mx:Image
                  > source="@Embed('assets/advertdemoleft.swf')"/></rs:Page>
                  >
                  >
                  > G:\Lakes_Region_Spirit\TheMagazine\MarketingDemo\FLEX_SimpleDemo\simple.mxml(14)
                  > : Error: Unable to create source
                  > simple__embed_mxml_assets_advertdemoright_swf_1037795143.
                  >
                  > <rs:Page><mx:Image source="@Embed('assets/advertdemoright.swf')"
                  > /></rs:Page>
                  >
                  > I apppreciate your responding and I hope you can help.

                  If you try embedding a swf created in a more conventional tool, like Flash,
                  do you get the same error?


                  • 6. Re: Unable to create source...
                    kjsperl Level 1
                    I thought of that and modified the FLEX app to embed SWF not generated by Quark ID and it appears to work. I can use the Quark ID generated SWF in other ways outside of FLEX. I can double click the SWF file and it runs, I can embed it in HTML and it runs. It just does not appear to work via FLEX. Does that imply there are other resources, and paths, needed?

                    I just don't know.
                    • 7. Re: Unable to create source...
                      Level 7

                      "kjsperl" <webforumsuser@macromedia.com> wrote in message
                      news:gkd62b$c93$1@forums.macromedia.com...
                      >I thought of that and modified the FLEX app to embed SWF not generated by
                      > Quark ID and it appears to work. I can use the Quark ID generated SWF in
                      > other
                      > ways outside of FLEX. I can double click the SWF file and it runs, I can
                      > embed
                      > it in HTML and it runs. It just does not appear to work via FLEX. Does
                      > that
                      > imply there are other resources, and paths, needed?
                      >
                      > I just don't know.

                      I don't know much about what Quark does these days. Does seem like it's a
                      problem with the swf, though.


                      • 8. Re: Unable to create source...
                        kjsperl Level 1
                        I had a feeling that attempting to get Quark and Adobe to talk to each other was going to be a futile endeavor. Also gives both sides the opportunity to point the finger at the other side.

                        Am I the only person trying to use Quark SWF in the FLEX world?

                        I don't understand why the Quark SWF is not simply treated as a simple "black box" by Flex.

                        Thanks anyway, Amy, I appreciate your willingness to help.