Default styles/skins for ProgressBar are missing.

On 9/8/10 12:37 AM, "PicSnapr" <> wrote:

This is such a simple code that compiles correctly, but I'm getting the error 
below when running it :(

TypeError: Error #1007: Instantiation attempted on a non-constructor.
 at mx.controls::ProgressBar/createChildren()[E:\dev\4.0.0\frameworks\pro 
 at mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\fr 

Here's the code that gives this error:

<s:TitleWindow ...>

<com:IconButton id="btnAdd" toolTip="Add file(s)" click="addFiles()" 
 skinClass="com.skins.IconButtonSkin" width="20"/>
<com:IconButton id="btnRemove" toolTip="Remove file(s)" click="removeFiles()" 
 skinClass="com.skins.IconButtonSkin" width="20"/>
<mx:ProgressBar id="uploadProg" labelPlacement="center" width="100%"/>
<com:IconButton id="btnCancel" toolTip="Cancel upload" icon="{cancelIcon}" 
 skinClass="com.skins.IconButtonSkin" width="20"/>
<com:IconButton label="Upload" toolTip="Upload file(s)" id="btnUpload" 
icon="{uploadIcon}" click="uploadFiles()"
 skinClass="com.skins.IconButtonSkin" width="20"/>
<com:IconButton id="btnView" toolTip="Show/Hide file(s)" click="changeView()"
 skinClass="com.skins.IconButtonSkin" width="20"/>

If I remove the progressbar code from here, it runs fine. But with that one 
line, I get above error during runtime. With this line in, even the Design mode 
doesn't show-up in Flash Builder 4 :(

Any idea what could be the issue here?

PS: I've tried with the normal s:Button as well, before the skinned button 
component. So obviously those can't be the problem.

Alex Harui
Flex SDK Team
Adobe System, Inc.

Reply via email to