You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Arne Broedel <ar...@googlemail.com> on 2013/08/28 00:48:09 UTC

illegal override in Flex 4.10, not in 4.6

Hi,
I'm trying out WebOrb for Java with a little testApp.
When trying to use Flex 4.10 I get the following Error. Using Flex 4.6
everything works fine.

VerifyError: Error #1053: Illegal override of removeItem in
weborb.data.ActiveCollection.

at flash.display::MovieClip/nextFrame()
at
mx.managers::SystemManager/deferredNextFrame()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/managers/SystemManager.as:286]
at
mx.managers::SystemManager/preloader_preloaderDocFrameReadyHandler()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/managers/SystemManager.as:2635]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.preloaders::Preloader/timerHandler()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/preloaders/Preloader.as:525]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
[SWF] /weborb/w4jarticle/main.swf - 2,550,740 bytes after decompression

Re: Event on pushView() or popView()

Posted by Jonathan Campos <jo...@gmail.com>.
There is a built in event. I'm going to have to look for it because it
wasn't made to be obvious. It's pretty buried.


On Wed, Aug 28, 2013 at 12:54 AM, Frank Dahmen <fr...@dahmenia.de> wrote:

> yes this would be possible but i thought there could be some built-in
> event to listen to
>
>
> ----- Original Message ----- From: "Jerry Hamby" <je...@vdex.com>
> To: <us...@flex.apache.org>
> Sent: Wednesday, August 28, 2013 7:30 AM
> Subject: Re: Event on pushView() or popView()
>
>
>
> I just use the addedToStage or removedFromStage events available on every
> View page.
> On either, you can just dispatch a custom event.
>
>
> On Aug 27, 2013, at 9:25 PM, Frank Dahmen wrote:
>
>  Hi,
>>
>> is there any event which can be catched whenever a view is pushed or
>> popped from a ViewNavigatorApplication?
>> I'd like to reset the the state of the navigationContent when the view
>> changes.
>>
>> Thanks
>>
>
>
>


-- 
Jonathan Campos

Re: Event on pushView() or popView()

Posted by Jerry Hamby <je...@vdex.com>.
I found a link that shows it being used in some code:
http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/tests/performance/mobile/ComponentCatalog/src/ScriptRunner.as

On Aug 28, 2013, at 11:18 AM, Jonathan Campos wrote:

> On Wed, Aug 28, 2013 at 11:58 AM, Frank Dahmen <fr...@dahmenia.de> wrote:
> 
>> where can i find the current reference? on the adobe reference it is not
>> listed.
> 
> 
> This is buried in the code. It was never documented. :)
> 
> 
> -- 
> Jonathan Campos



Re: Event on pushView() or popView()

Posted by Frank Dahmen <fr...@dahmenia.de>.
Thanks for digging:)



----- Original Message ----- 
From: "Jonathan Campos" <jo...@gmail.com>
To: "users" <us...@flex.apache.org>
Sent: Wednesday, August 28, 2013 8:18 PM
Subject: Re: Event on pushView() or popView()


> On Wed, Aug 28, 2013 at 11:58 AM, Frank Dahmen <fr...@dahmenia.de> wrote:
> 
>> where can i find the current reference? on the adobe reference it is not
>> listed.
> 
> 
> This is buried in the code. It was never documented. :)
> 
> 
> -- 
> Jonathan Campos
>

Re: Event on pushView() or popView()

Posted by Jonathan Campos <jo...@gmail.com>.
On Wed, Aug 28, 2013 at 11:58 AM, Frank Dahmen <fr...@dahmenia.de> wrote:

> where can i find the current reference? on the adobe reference it is not
> listed.


This is buried in the code. It was never documented. :)


-- 
Jonathan Campos

Re: Event on pushView() or popView()

Posted by Frank Dahmen <fr...@dahmenia.de>.
this is what i was searching for.

where can i find the current reference? on the adobe reference it is not 
listed.


----- Original Message ----- 
From: "Jonathan Campos" <jo...@gmail.com>
To: "users" <us...@flex.apache.org>
Sent: Wednesday, August 28, 2013 5:05 PM
Subject: Re: Event on pushView() or popView()


> On Wed, Aug 28, 2013 at 12:54 AM, Frank Dahmen <fr...@dahmenia.de> wrote:
>
>> yes this would be possible but i thought there could be some built-in
>> event to listen to
>
>
> Try listing on the activeView for "_navigationChange_" but I believe the
> little bugger that you are listening for is "viewChangeComplete" on the
> ViewNavigator. This is fired when the view change is finished since the
> view changes are scheduled to run async. You also have "viewChangeStart"
> depending on when you need to change your nav.
>
>
>
>
> -- 
> Jonathan Campos
> 


UI testing with RIATest in 4.10?

Posted by Ben Smeets <be...@okapion.com>.
I'm trying to find out what good testing solutions (not unit test, but UI test) are still available for Flex lately. In the past, I looked (amongst others) at Riatest. I'm having a hard time figuring out if it is still usable though. So curious if there is anybody else succesfully using it in a Flex 4.10/Spark only project (with me, compiler errors all over the place)?

Cheers, Ben

Re: Event on pushView() or popView()

Posted by Jonathan Campos <jo...@gmail.com>.
On Wed, Aug 28, 2013 at 12:54 AM, Frank Dahmen <fr...@dahmenia.de> wrote:

> yes this would be possible but i thought there could be some built-in
> event to listen to


Try listing on the activeView for "_navigationChange_" but I believe the
little bugger that you are listening for is "viewChangeComplete" on the
ViewNavigator. This is fired when the view change is finished since the
view changes are scheduled to run async. You also have "viewChangeStart"
depending on when you need to change your nav.




-- 
Jonathan Campos

Re: Event on pushView() or popView()

Posted by Frank Dahmen <fr...@dahmenia.de>.
yes this would be possible but i thought there could be some built-in event 
to listen to


----- Original Message ----- 
From: "Jerry Hamby" <je...@vdex.com>
To: <us...@flex.apache.org>
Sent: Wednesday, August 28, 2013 7:30 AM
Subject: Re: Event on pushView() or popView()


I just use the addedToStage or removedFromStage events available on every 
View page.
On either, you can just dispatch a custom event.


On Aug 27, 2013, at 9:25 PM, Frank Dahmen wrote:

> Hi,
>
> is there any event which can be catched whenever a view is pushed or 
> popped from a ViewNavigatorApplication?
> I'd like to reset the the state of the navigationContent when the view 
> changes.
>
> Thanks



Re: Event on pushView() or popView()

Posted by Jerry Hamby <je...@vdex.com>.
I just use the addedToStage or removedFromStage events available on every View page.
On either, you can just dispatch a custom event.


On Aug 27, 2013, at 9:25 PM, Frank Dahmen wrote:

> Hi,
> 
> is there any event which can be catched whenever a view is pushed or popped from a ViewNavigatorApplication?
> I'd like to reset the the state of the navigationContent when the view changes.
> 
> Thanks 


Event on pushView() or popView()

Posted by Frank Dahmen <fr...@dahmenia.de>.
Hi,

is there any event which can be catched whenever a view is pushed or popped 
from a ViewNavigatorApplication?
I'd like to reset the the state of the navigationContent when the view 
changes.

Thanks 


Re: illegal override in Flex 4.10, not in 4.6

Posted by Arne Broedel <ar...@googlemail.com>.
I will also contact the weborb guys



2013/8/28 Arne Broedel <ar...@googlemail.com>

> so there is no simple workaround. Either Flex SDK would have to be changed
> or the weborb.swc. So I will probably have to use Flex 4.6. Is that right?
>
>
> 2013/8/28 Alex Harui <ah...@adobe.com>
>
>>
>>
>> On 8/27/13 10:35 PM, "Justin Mclean" <ju...@classsoftware.com> wrote:
>>
>> >Hi,
>> >
>> >> That's always a risk when we add new features.
>> >Wasn't that change reversed and the signature of removeItem still
>> >identical to before?
>> We removed it from IList, but left it on ListCollectionView.
>>
>> -Alex
>>
>>
>

Re: illegal override in Flex 4.10, not in 4.6

Posted by Ben Smeets <be...@okapion.com>.
Not entirely up to speed with the discussion, but is monkey-patching the weborb.swc a possible solution?

http://stackoverflow.com/questions/5096795/how-to-monkey-patch-or-override-a-swc-class-in-flex

Ben

On 28 aug. 2013, at 10:20, Arne Broedel <ar...@googlemail.com> wrote:

> so there is no simple workaround. Either Flex SDK would have to be changed
> or the weborb.swc. So I will probably have to use Flex 4.6. Is that right?
> 
> 
> 2013/8/28 Alex Harui <ah...@adobe.com>
> 
>> 
>> 
>> On 8/27/13 10:35 PM, "Justin Mclean" <ju...@classsoftware.com> wrote:
>> 
>>> Hi,
>>> 
>>>> That's always a risk when we add new features.
>>> Wasn't that change reversed and the signature of removeItem still
>>> identical to before?
>> We removed it from IList, but left it on ListCollectionView.
>> 
>> -Alex
>> 
>> 


Re: illegal override in Flex 4.10, not in 4.6

Posted by OmPrakash Muppirala <bi...@gmail.com>.
This change was added in 4.10, so you can upgrade to 4.9.1 and still
benefit from the improvements after 4.6.

Alternatively, you can use 4.10 and monkey patch the SDK.  The problem is
in the file:
frameworks\projects\framework\src\mx\collections\ListCollectionView.as.
Simple comment the removeItem() function.

This is a temporary solution only.  Best would be to contact the WebOrb
team and request them to fix their code to accommodate for the new
changes.

Thanks,
Om


On Wed, Aug 28, 2013 at 1:20 AM, Arne Broedel
<ar...@googlemail.com>wrote:

> so there is no simple workaround. Either Flex SDK would have to be changed
> or the weborb.swc. So I will probably have to use Flex 4.6. Is that right?
>
>
> 2013/8/28 Alex Harui <ah...@adobe.com>
>
> >
> >
> > On 8/27/13 10:35 PM, "Justin Mclean" <ju...@classsoftware.com> wrote:
> >
> > >Hi,
> > >
> > >> That's always a risk when we add new features.
> > >Wasn't that change reversed and the signature of removeItem still
> > >identical to before?
> > We removed it from IList, but left it on ListCollectionView.
> >
> > -Alex
> >
> >
>

Re: illegal override in Flex 4.10, not in 4.6

Posted by Arne Broedel <ar...@googlemail.com>.
so there is no simple workaround. Either Flex SDK would have to be changed
or the weborb.swc. So I will probably have to use Flex 4.6. Is that right?


2013/8/28 Alex Harui <ah...@adobe.com>

>
>
> On 8/27/13 10:35 PM, "Justin Mclean" <ju...@classsoftware.com> wrote:
>
> >Hi,
> >
> >> That's always a risk when we add new features.
> >Wasn't that change reversed and the signature of removeItem still
> >identical to before?
> We removed it from IList, but left it on ListCollectionView.
>
> -Alex
>
>

Re: illegal override in Flex 4.10, not in 4.6

Posted by Alex Harui <ah...@adobe.com>.

On 8/27/13 10:35 PM, "Justin Mclean" <ju...@classsoftware.com> wrote:

>Hi,
>
>> That's always a risk when we add new features.
>Wasn't that change reversed and the signature of removeItem still
>identical to before?
We removed it from IList, but left it on ListCollectionView.

-Alex


Re: illegal override in Flex 4.10, not in 4.6

Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,

> That's always a risk when we add new features.  
Wasn't that change reversed and the signature of removeItem still identical to before?

Thanks,
Justin

Re: illegal override in Flex 4.10, not in 4.6

Posted by Alex Harui <ah...@adobe.com>.
That's always a risk when we add new features.  If a thirdparty did the
same, we can break their library.  Did you ask the weborb folks if they
will cut a update release?

-Alex

On 8/27/13 3:48 PM, "Arne Broedel" <ar...@googlemail.com> wrote:

>Hi,
>I'm trying out WebOrb for Java with a little testApp.
>When trying to use Flex 4.10 I get the following Error. Using Flex 4.6
>everything works fine.
>
>VerifyError: Error #1053: Illegal override of removeItem in
>weborb.data.ActiveCollection.
>
>at flash.display::MovieClip/nextFrame()
>at
>mx.managers::SystemManager/deferredNextFrame()[/Users/justinmclean/Documen
>ts/ApacheFlex4.10/frameworks/projects/framework/src/mx/managers/SystemMana
>ger.as:286]
>at
>mx.managers::SystemManager/preloader_preloaderDocFrameReadyHandler()[/User
>s/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/
>mx/managers/SystemManager.as:2635]
>at flash.events::EventDispatcher/dispatchEventFunction()
>at flash.events::EventDispatcher/dispatchEvent()
>at
>mx.preloaders::Preloader/timerHandler()[/Users/justinmclean/Documents/Apac
>heFlex4.10/frameworks/projects/framework/src/mx/preloaders/Preloader.as:52
>5]
>at flash.utils::Timer/_timerDispatch()
>at flash.utils::Timer/tick()
>[SWF] /weborb/w4jarticle/main.swf - 2,550,740 bytes after decompression