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>

 

if remove progressbar code here, runs fine. 1 line, above error during runtime. line in, design mode doesn't show-up in flash builder 4
any idea issue here?
ps: i've tried normal s:button well, before skinned button component. can't problem.

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

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい