Runtime Error 1007 on a simple ProgressBar in Flex 4
this such simple code compiles correctly, i'm getting error below when running
typeerror: error #1007: instantiation attempted on non-constructor.
@ mx.controls::progressbar/createchildren()[e:\dev\4.0.0\frameworks\projects\framework\src\ mx\controls\progressbar.as:1110]
@ mx.core::uicomponent/initialize()[e:\dev\4.0.0\frameworks\projects\framework\src\mx\core\ uicomponent.as:7250]
......
here's code gives error:
<s:titlewindow xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:com="com.*" xmlns:folders="services.folders.*"
height.mini="80" height.full="400"
minheight.full="200" minheight.mini="70"
title="upload photos" creationcomplete="initcom()"
currentstate="full" controlbarvisible="true"
width="418" minwidth="400">
<s:controlbarcontent>
<com:iconbutton id="btnadd" tooltip="add file(s)" click="addfiles()" icon="{addicon}"
skinclass="com.skins.iconbuttonskin" width="20"/>
<com:iconbutton id="btnremove" tooltip="remove file(s)" click="removefiles()" icon="{removeicon}"
skinclass="com.skins.iconbuttonskin" width="20"/>
<mx:progressbar id="uploadprog" labelplacement="center" width="100%"/>
<com:iconbutton id="btncancel" tooltip="cancel upload" icon="{cancelicon}" click="onuploadcanceled()"
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()"
icon.full="{viewiconfull}" icon.mini="{viewiconmini}"
skinclass="com.skins.iconbuttonskin" width="20"/>
</s:controlbarcontent>
</s:titlewindow>
i'm not able reproduce error following sample:
<?xml version="1.0" encoding="utf-8"?>
<s:application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<s:titlewindow title="upload photos" width="418" minwidth="400">
<s:controlbarcontent>
<s:button id="btnadd" tooltip="add file(s)" width="20"/>
<s:button id="btnremove" tooltip="remove file(s)" width="20"/>
<mx:progressbar id="uploadprog" labelplacement="center" width="100%"/>
<s:button id="btncancel" tooltip="cancel upload" width="20"/>
<s:button label="upload" tooltip="upload file(s)" id="btnupload" width="20"/>
<s:button id="btnview" tooltip="show/hide file(s)" width="20"/>
</s:controlbarcontent>
</s:titlewindow>
</s:application>
can try simplify application reproduce issue in small amount of code sample can investigate further?
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment