You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by skvsarathyourfriend <sk...@gmail.com> on 2014/07/09 07:29:16 UTC
Strange behaviour of scrolling in flex mobile
working on flex mobile list. list is represented using itemrenderer. here is
the itemrendeerer..
*
<s:Image id="img" x="30" y="50"/>
<s:Label id="nameLbl" width="100%" height="100%" text="Label"
textAlign="center" verticalAlign="middle"/>
<s:Button id="checkMarkLabel" label="+" height="100%" />*
on selected::
*
protected function onClicked(event:MouseEvent):void
{
if(checkMarkLabel.label =="✓")
{
checkMarkLabel.label = "+";
}
else if(checkMarkLabel.label == "+" )
{
checkMarkLabel.label = "✓";
trace("id::"+event.currentTarget.data.id)
//FlexGlobals.topLevelApplication.selectedId =
event.currentTarget.data.id;
}
}*
<http://apache-flex-users.2333346.n4.nabble.com/file/n7212/scrolligng_issuue.png>
the image gives you the clear picture. after selecting some items in the
list,if i scroll the list,the checked items gets unchecked and the unchecked
items gets checked.any answer is appreciable..
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Strange-behaviour-of-scrolling-in-flex-mobile-tp7212.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: Strange behaviour of scrolling in flex mobile
Posted by Justin Ransom Dallas <ju...@gmail.com>.
What does your "set data" code look like? My biggest worry is that I don't
see the value being stored in a model of some sort, but is instead being
done through manipulation of the ItemRenderer component itself.
On Wed, Jul 9, 2014 at 1:29 AM, skvsarathyourfriend <
skvsarathyourfriend@gmail.com> wrote:
> working on flex mobile list. list is represented using itemrenderer. here
> is
> the itemrendeerer..
> *
> <s:Image id="img" x="30" y="50"/>
> <s:Label id="nameLbl" width="100%" height="100%" text="Label"
> textAlign="center" verticalAlign="middle"/>
> <s:Button id="checkMarkLabel" label="+" height="100%" />*
>
> on selected::
> *
> protected function onClicked(event:MouseEvent):void
> {
> if(checkMarkLabel.label =="✓")
> {
> checkMarkLabel.label = "+";
> }
> else if(checkMarkLabel.label == "+" )
> {
> checkMarkLabel.label = "✓";
> trace("id::"+event.currentTarget.data.id)
> //FlexGlobals.topLevelApplication.selectedId =
> event.currentTarget.data.id;
> }
>
> }*
>
> <
> http://apache-flex-users.2333346.n4.nabble.com/file/n7212/scrolligng_issuue.png
> >
> the image gives you the clear picture. after selecting some items in the
> list,if i scroll the list,the checked items gets unchecked and the
> unchecked
> items gets checked.any answer is appreciable..
>
>
>
> --
> View this message in context:
> http://apache-flex-users.2333346.n4.nabble.com/Strange-behaviour-of-scrolling-in-flex-mobile-tp7212.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>
--
Justin Dallas
Phone:814-880-5637