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
langsky
Posts: 25
Registered: ‎12-21-2009
My Device: BlackBerry Z10
My Carrier: Verizon

Help! Installed new BB Tablet SDK 0.9.4 and get Spark Errors

I am new to Flash Builder and am working on my first application.  Everything has been working great until I recently started receiving the below errors.  I have included snippets of code to hopefully start the discussion to try and solve this.  Any help would be most appreciated.

Flash Builder 4.5 (Burrito)
Flex Hero SDK
Blackberry Tablet SDK 0.9.4

I have a custom item renderer that includes a progress bar and that is what seems to be throwing the errors although the errors are not linked to any specific line numbers in my code, just to the project itself.

Item Renderer:

<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
autoDrawBackground="false">

 

private function pBarProg():void
{
var endProg:Number = Math.abs(data.goalValue) - Math.abs(data.stValue);
var comPer:Number = Math.round((Math.abs(data.totProg)/Math.abs(endProg))*100);
goalPBar.setProgress(Math.abs(data.totProg), Math.abs(endProg));
}

<s:VGroup horizontalAlign="center" paddingLeft="45">
<s:Label text="% to Goal" fontSize="16" fontWeight="normal" fontFamily="Arial"/>
<mx:ProgressBar id="goalPBar" height="30" width="300" mode="manual"
minimum="0" maximum="{Math.abs(data.goalValue - data.stValue)}"
labelPlacement="center" updateComplete="pBarProg()" color="0xFFFFFF"
fontSize="18" fontFamily="Arial"/>
<s:Label id="lblDaysRem" text="..." fontSize="18" fontWeight="normal" fontFamily="Arial"/>
</s:VGroup>

Errors:

Type 1120: Access of undefined property ProgressBarSkin.
Type 1120: Access of undefined property ProgressBarTrackSkin.
Type 1120: Access of undefined property ProgressIndeterminateSkin.
Type 1120: Access of undefined property ProgressMaskSkin.
Type 1172: Definition mx.skins.spark:ProgressBarSkin could not be found.
Type 1172: Definition mx.skins.spark:ProgressBarTrackSkin could not be found.
Type 1172: Definition mx.skins.spark:ProgressIndeterminateSkin could not be found.
Type 1172: Definition mx.skins.spark:ProgressMaskSkin could not be found.

 

 

 

Please use plain text.
Developer
JRab
Posts: 2,462
Registered: ‎11-04-2010
My Device: Bold 9700

Re: Help! Installed new BB Tablet SDK 0.9.4 and get Spark Errors

hey,

 

what is your project type? When you started out. also try navigating to Project > Clean and choose your project then hit OK.

J. Rab (Blog) (Twitter)
--
1. If you liked my post or found it useful please click on the thumbs up and provide a Like!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!

Approved Apps: OnTrack | ssShots | Hangman
Please use plain text.
Developer
langsky
Posts: 25
Registered: ‎12-21-2009
My Device: BlackBerry Z10
My Carrier: Verizon

Re: Help! Installed new BB Tablet SDK 0.9.4 and get Spark Errors

I am using a Flex Mobile Project.  I tried cleaning, but I still have the errors.  It is so weird because the project was working fine and now with the new BB Tablet SDK I get these errors, but even if I remove the reference to the BB Tablet SDK I still get the errors.

Please use plain text.
Super Contributor
Meghasanghvi
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

Re: Help! Installed new BB Tablet SDK 0.9.4 and get Spark Errors

hi

 

i am also getting same error When i want to display Alert Box in application.

in adobe forums i search and i find to extrenally install mx.swc after i done this my project .swc file is deleted.

how to display Alert in spark?

 

 

thanks & regards

Megha

 

 

Please use plain text.