flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: skin part type must be assignable error
Date Sat, 16 Feb 2013 06:39:01 GMT
Try building from the command line or ANT and see if this is an MXMLC or
FlashBuilder issue.

On 2/15/13 9:01 AM, "Tom Chiverton" <tc@extravision.com> wrote:

> Hi,
> I'm trying to build a project that is fine with the Adobe 4.1A SDK using
> the Apache 4.9 SDK, and the only thing that is tripping it up so far
> that I haven't been able to explain is a PureMVC Mediator we have that says
>                  (facade.retrieveMediator(AdminPanelMediator.NAME) as
> AdminPanelMediator).homepage = mainPage as EVMainContainer;
> I get a compile error reported in the latest Flash Builder saying
> "Implicit coercion of a value of type
> com.ev.global.view.components:EVMainContainer to an unrelated type
> com.ev.global.view.components:EVMainContainer.    "
> Which doesn't seem right, as I'm casting from the type to the same type ?
> homepage is defined :
>           public function set homepage(value:EVMainContainer):void
> and mainPage likewise:
>          public var mainPage : EVMainContainer;
> Is this a compiler error, or is something in my syntax tripping it up ?
> Removing ' as EVMainContainer' doesn't help. There is only one
> EVMainContainer class in the project.

Alex Harui
Flex SDK Team
Adobe Systems, Inc.

View raw message