This content has been marked as final. Show 2 replies
"EWN-CMI" <firstname.lastname@example.org> wrote in message
>I think I am having an event timing issue. My desire is to change the
> image on each selection of a tabNavigator. I can swap the image without
> through a img.load process. I placed the image on a canvas and set the
> "showEffect" and "hideEffect" on the canvasto fadeIn and fadeOut. (I
> have 2 images on the canvas) On the tabNavigator "change" event I call my
> getImage() function and set canvs.visible=false, I have the tab index for
> img.load=headerPic[idx] and then I set canvs.visible=true; The result is
> I do not get the first visible change, I think. Tab 1 is initialized to
> visible in ionComplete, clicking on tab 1 has no effect since it is
> already. When tab 2 is selected the image changes to the new image
> and then fadesOut. Tab 3 then will fadeIn. Also regardless of the tab
> selected, if I select another tab the ongoing fade effect will continue on
> newly selected tab. It seems the load method doesn't care about effects -
> so I
> don't know how to sequence these effects.
You can use the completeEffect on Image to have an effect every time an
image loads, such as you can see used here
but I don't think there's a corresponding effect that you can apply to the
old image before the change.
I think you're going to need to use ActionScript to get the control over the
effects that you want, so you can call either the end() or the reverse()
method on the effect when the graphic needs to change in mid-effect.
Wow you lost me! Not sure what you're trying to fade, an icon on the tab navigator's tab, or an image on a canvas...can you describe what you want to happen?