Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Updated Community Library

Those were changes that @CMY did to his local copy.  His non-mx data formatter class has not been looked at and incorporated yet.  You can start with the original library and should not have these issues.

Please use plain text.
Developer
Kai001
Posts: 200
Registered: ‎03-10-2011
My Device: Not Specified

Re: Updated Community Library

[ Edited ]

Start with the original library? What do you mean?

 

EDIT: How can I use the 'new' DateFormatter class with the original DateChooser? I just get the error "Class mx.formatters::smileyvery-happy:ateFormatter could not be found.". And if I try to use the 'new' DateChooser I get the error '1017: The definition of base class InputControl was not found.'.

Please use plain text.
Developer
Developer
CMY
Posts: 1,123
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: Updated Community Library

I only posted the files that I changed. The assests that it is looking for are in the zipped src folder that is inlcuded with the library. You can copy the assests folder into your project as well (easier) or you can replace the files I modified in the library and recompile it (harder).

Please use plain text.
Developer
Kai001
Posts: 200
Registered: ‎03-10-2011
My Device: Not Specified

Re: Updated Community Library

Ok, I got a little further, now the problem is:

 

Main Thread (Suspended: ArgumentError: Error #2015: Invalid BitmapData.)	
			flash.display::BitmapData/ctor [no source]	
			flash.display::BitmapData [no source]	
			external::InputControl/setSize	
			qnx.ui.core::Container/layout	
			qnx.ui.core::Container/setSize	
			qnx.ui.core::Container/layout	
			qnx.ui.core::Container/setSize	
			qnx.ui.core::Container/layout	
			qnx.ui.core::Container/setSize	
			[Truncated]/onResize	
			[Truncated]/InitializeUI	
			lib::[Truncated]/Show	
			[Truncated]/[Truncated] 

 

 

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Updated Community Library

I would start with the original library.

 

http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/Community-Library-Released-for-cl...

 

The DateFormatter was not an issue with my projects, but I also have not reviewed and integrated the changes that were submitted yet.  So start with the original library and if you dont get mx.DateFormatter errors, then you are OK.

Please use plain text.
Developer
Kai001
Posts: 200
Registered: ‎03-10-2011
My Device: Not Specified

Re: Updated Community Library

Actually that's the first thing I tried that gave me the error.

 

I tried again and got the same thing: "Class mx.formatters::smileyvery-happy:ateFormatter could not be found"

 

I hope I can get this sorted out before the deadline.

 

Thanks for the help so far everyone! :smileyvery-happy:

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Updated Community Library

If you're in FB, include the MX libraries.

Will try to get an update, but I cannot promise anything.

Please use plain text.
Developer
Developer
CMY
Posts: 1,123
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: Updated Community Library

[ Edited ]

The easiest thing to do is to move the assests folder with the images into your project and just use the classes in the same package space as I have them. Several of the classes depend on each other, so you will have to update several files if you move around the packages and make sure you have all the required classes included as well.

 

 

@jtegen

 

I can go through and update the sources and send you a zip file to check and/or compile it myself if you like. I don't mind doing it, I'm just not trying to take credit for your work.

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Updated Community Library

@cmy:  I got your files and completed the update.  I hope to have it released very soon.  Thank you very much.

Please use plain text.