Note that there are some explanatory texts on larger screens.

plurals
  1. POResolving Component libs with Flex SDK mxmlc
    primarykey
    data
    text
    <p>I'm new to Flex SDK and trying to implement a simple project using <a href="http://dougmccune.com/blog/2007/11/19/flex-coverflow-performance-improvement-flex-carousel-component-and-vertical-coverflow/" rel="nofollow noreferrer">Doug Mccune's CoverFlow</a> widget. Most of the documentation out there on how to do this assumes that one is using Adobe's FlexBuilder product, which is a $250 Eclipse plug-in that I'd rather avoid buying. The problem I'm having is simply getting Doug's swc file, which is the binary version of his component lib, to be recognized by mxmlc, the Flex SDK project compiler. I keep getting error messages such as</p> <blockquote> <p>Error: Could not resolve to a component installation</p> </blockquote> <p>and</p> <blockquote> <p>Error: Type was not found or was not a compile-time constant: CoverFlow.</p> </blockquote> <p>I have also tried the type "VideoCoverFlow" as I am pretty sure that these types are defined in Doug's lib. Alas, I am stuck on figuring out where I've gone wrong.</p> <p>The following is the full text for my mxml project file, called coverflow.mxml.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:local="*" height="100%" width="100%" layout="absolute"&gt; &lt;local:CoverFlow id="CoverFlow" horizontalCenter="0" verticalCenter="0" borderThickness="10" borderColor="#FFFFFF" width="100%"/&gt; &lt;/mx:Application&gt; </code></pre> <p>I am trying to compile it with the following command:</p> <pre><code>c:\flex_sdk_3\bin\mxmlc.exe -compiler.source-path=lib coverflow.mxml </code></pre> <p>I have also tried moving the CoverFlow_lib.swc file into the same dir as the mxml file instead of using the source-path argument, but that does not seem to make a difference.</p> <p>I would gladly go RTFM if somebody could be so kind as to point me in the direction of the proper docs. There are related Stack Overflow questions <a href="https://stackoverflow.com/questions/78230/compiling-mxml-files-with-ant-and-flex-sdk">here</a> and <a href="https://stackoverflow.com/questions/119947/using-flash-component-swc-file-in-flex">here</a>.</p> <p>Thank you!</p> <hr> <p><strong>Update</strong>: I have changed my build command to the following:</p> <pre><code>mxmlc -library-path+=lib coverflow.mxml </code></pre> <p>And I also tried the following:</p> <pre><code>mxmlc -library-path+=CoverFlow_lib.swc coverflow.mxml </code></pre> <p>With the swc file in the same dir as the mxml file. However, I'm still getting the same errors.</p> <p>There's also a <a href="http://www.adobe.com/products/flex/media/flexapp/" rel="nofollow noreferrer">video here</a> showing the same library that I'm trying to use, but in Flex Builder. Unfortunately, it doesn't show how to use mxmlc.</p> <p>I've also tried stripping down my mxml to simply,</p> <pre><code>&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:local="*" &gt; &lt;local:VideoCoverFlow /&gt; &lt;/mx:Application&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload