House of Fusion
Home of the ColdFusion Community

Search flex

December 04, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31       

Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  Adobe Flex

Flex Error 1067

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
-----BEGIN PGP SIGNED MESSAGE-----
Graham Pearson
08/29/08 08:53 P
-----BEGIN PGP SIGNED MESSAGE-----
Graham Pearson
08/31/08 08:45 A
Components.ChangeCurrentStatus
Douglas Knudsen
08/31/08 11:03 P
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Graham Pearson
08/29/2008 08:53 PM

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I am on my 4th Flex/Air application and I have done the same steps for each one, however this one application is producing the following error which I am unable to solve so I am asking guru's. The error is 1067: Implicit coercion of a value of type Function to an unrelated type Class. The second error is 1046: Type was not found or was not a compile-time constant: ChangeCurrentStatus. Both errors are a result of var CurrentStatusWindow:ChangeCurrentStatus = PopUpManager.createPopUp(this,ChangeCurrentStatus,true) as ChangeCurrentStatus; At the top of my mxml application I have import Components.ChangeCurrentStatus; This is the same code as I have done in other applications with just a name change. This was working up until late afternoon when I tried to pass a new variable to this ChangeCurrentStatus TitleWindow and now if I try to retype everything over, I can not get rid of this error message so I can either Debug or Compile. Does anyone have suggestions as to where I can look to sove this as I am a handson type of learner as if I can learn/understand than I can teach students how to do this. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIuJoW3GqPAgBSy90RAiybAJwLgLjjBcNvL4IPiyACjN2Qq1V/VACeN16T Bthag0LV6LzVMv7euMQ/b5k= =J7fd -----END PGP SIGNATURE-----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Stefan Richter
08/30/2008 10:26 AM

> var CurrentStatusWindow:ChangeCurrentStatus = > PopUpManager.createPopUp(this,ChangeCurrentStatus,true) as > ChangeCurrentStatus; I am not sure what type your ChangeCurrentStatus class is but it must   be of type IFlexDisplayObject (or extend that), because that is what   PopUpManager.createPopUp returns. The error seems to suggest that that   is not the case and your class is of a different type. Alternatively put the code that causes a problem into a simple snippet   that you can post here so we can reproduce it. If you need to include   dependent classes, upload a zip to somewhere so we can download and   check. But cut it down to the bare minimum needed to reproduce the   error. I've seen people upload whole projects before in which case I   personally won't invest the time debugging it. Regards, Stefan ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Graham Pearson
08/31/2008 08:45 AM

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I do not know if I was using a reserved word or something within Flex, but I changed the name of my mxml component to InsertNewStatusComponent with the exact same code as the original component and it started to work. I am puzzled as to why, but now I can continue with development so the application can be released on this Tuesday. Stefan Richter wrote: | I am not sure what type your ChangeCurrentStatus class is but it must   | be of type IFlexDisplayObject (or extend that), because that is what   | PopUpManager.createPopUp returns. The error seems to suggest that that   | is not the case and your class is of a different type. | | Alternatively put the code that causes a problem into a simple snippet   | that you can post here so we can reproduce it. If you need to include   | dependent classes, upload a zip to somewhere so we can download and   | check. But cut it down to the bare minimum needed to reproduce the   | error. I've seen people upload whole projects before in which case I   | personally won't invest the time debugging it. | | Regards, | | Stefan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIupJP3GqPAgBSy90RAjpRAJ9f5OlF5v0MOJja/FEqB6CVv1w8cgCfRFsf j341aYZZz8v67YSVkXnn3pw= =gmB6 -----END PGP SIGNATURE-----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Douglas Knudsen
08/31/2008 11:03 PM

Components.ChangeCurrentStatus This in /src/Components/ChangeStatus for sure?  is this a AS component and correctly named and the constructor is correctly named?  I doubt this was a internal collision, the Flex SDK's naming standards would not have a capitalized 'Componets' in the class path. DK On Sun, Aug 31, 2008 at 8:45 AM, Graham Pearson <gpearson@yourcfpro.com>wrote: ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists