Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Adobe AIR: Create - Modify - Reuse ISBN: 978-0-470-18207-9
This is the forum to discuss the Wrox book Adobe AIR: Create - Modify - Reuse by Marc Leuchner, Todd Anderson, Matt Wright; ISBN: 9780470182079
Welcome to the p2p.wrox.com Forums.

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 .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old April 16th, 2009, 10:17 PM
Registered User
 
Join Date: Apr 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem compiling AIR suddenly

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
Player'.

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...
Reply With Quote
  #2 (permalink)  
Old April 17th, 2009, 11:38 AM
jminatel's Avatar
Wrox Staff
Points: 14,162, Level: 51
Points: 14,162, Level: 51 Points: 14,162, Level: 51 Points: 14,162, Level: 51
Activity: 14%
Activity: 14% Activity: 14% Activity: 14%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,837
Thanks: 51
Thanked 107 Times in 81 Posts
Default

Does Rich Tretola's discussion on a similar error here:

http://blog.everythingflex.com/2008/...am-within-air/

help?
__________________
Jim Minatel
Associate Publisher
Wiley Technology Publishing
WROX Press
Blog: http://p2p.wrox.com/content/blogs/jminatel
Wrox online library: http://wrox.books24x7.com
Wrox on Twitter: http://twitter.com/wrox
Did someone here help you? Click on their post!
Reply With Quote
  #3 (permalink)  
Old April 18th, 2009, 01:37 AM
Registered User
 
Join Date: Apr 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Cool AIR book, chapter 10

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
C:\bin\Flex\pkproj\AIR\blogger\com\aircmr\bloggera gent\services\BloggerService.a
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?

Thanks. Pat
Reply With Quote
  #4 (permalink)  
Old April 18th, 2009, 01:57 AM
Registered User
 
Join Date: Apr 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default errata issue for air book

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!
Reply With Quote
  #5 (permalink)  
Old June 3rd, 2010, 05:02 AM
Registered User
 
Join Date: Jun 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Unable to locate specified base class 'mx.core.WindowedApplication' for component cla

Hello Friends,

1.Web Application
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Label text="Hello World! 12345"/>
</mx:Application>

it's ok Build xml successfully.

2.AIR Application
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Label text="Hello World! 54321"/>
</mx:WindowedApplication>

Error: unable to locate specified base class ‘mx.core.WindowedApplication’ for component class ”

Please give me solution…

Thanks,
manu
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adobe AIR: Create-Modify-Reuse (978-0-470-18207-9) jaswanttak BOOK: Adobe AIR: Create - Modify - Reuse ISBN: 978-0-470-18207-9 3 April 16th, 2009 12:48 PM
problem with compiling application hertendreef ASP.NET 2.0 Basics 1 August 16th, 2007 01:17 PM
Compiling problem secko Visual C++ 1 March 15th, 2005 06:17 AM
problem with compiling centy Visual C++ 4 February 8th, 2005 02:27 AM



All times are GMT -4. The time now is 11:47 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.