You are currently viewing the BOOK: Adobe AIR: Create - Modify - Reuse ISBN: 978-0-470-18207-9 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I compile a program at the command line, which worked fine yesterday, like this -
> mxmlc AIRVideoPlayer.mxml
Loading configuration file C:\bin\Flex\frameworks\flex-config.xml
C:\bin\Flex\pkproj\AIR\videoPlayer\AIRVideoPlayer. mxml: Error: Unable to locate
specified base class 'mx.core.WindowedApplication' for component class 'AIRVideo
But, now it says "Error: Unable to locate specified base class..." All three prototypes I made yesterday are hosed by this error. Everything was perfect, just got started with book, and suddenly a problem. However, seems fixable, since like I said, it worked perfectly yesterday. Any thoughts by anyone? Appreciate the life saver...
Thanks, Jim for the reply. Turns out, I just needed to add the correct parameters to amxmlc to compile the AIR app, such as "-locate-config". Problem fixed.
I have another question about chapter 10, which is on the "Blogger Agent". Apparently, when I download the source code and compile it, I get the following error:
>amxmlc -load-config "c:\bin\flex\frameworks\air-
config.xml" -output BloggerAgent.swf BloggerAgent.mxml
Loading configuration file C:\bin\Flex\frameworks\air-config.xml
s(5): col: 43 Error: Definition com.aircmr.bloggeragent.events:BloggerServiceEve
nt could not be found.
import com.aircmr.bloggeragent.events.BloggerServiceEvent ;
However, the book's code for the BloggerService.as does not have the fifth liine, e.g. -
"import com.aircmr.bloggeragent.events.BloggerServiceEvent ;".
I guess this is a modification to the original example. If I comment this line out, I can compile and run the AIR app, and I can retrieve my blogs, but I cannot post to my blogger blog. Is there a way I can get this missing BloggerServiceEvent class?
Jim, I just this issue to the Errata section for this book. Since it seems there's a difference between the book and the source code from the web site, the new event class should be offered through the web site. Look forward to hearing back on this issue. Fantastic book! Looking forward to playing with each program - all eleven of them!