|
|
Home /
Groups /
Adobe Flex
Flex Error 1067
-----BEGIN PGP SIGNED MESSAGE-----Graham Pearson 08/29/08 08:53 P > var CurrentStatusWindow:ChangeCurrentStatus =Stefan Richter 08/30/08 10:26 A -----BEGIN PGP SIGNED MESSAGE-----Graham Pearson 08/31/08 08:45 A Components.ChangeCurrentStatusDouglas Knudsen 08/31/08 11:03 P -----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----- > 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 ----- -----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----- 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 -----
|
Mailing Lists
|
Latest Fusion Authority Articles
|
||||||