Problems with AE4

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dburdan
Posts: 104
Joined: Fri Jan 28, 2011 5:39 am

Problems with AE4

Post by dburdan » Tue Mar 29, 2011 4:00 am

I can't seem to use the "wait" function alongside an AE4 function. For examle:

Code: Select all

   aeFadeIn the long id of image "img1", 800
   wait for 1600 milliseconds
   aeFadeIn the long id of image "img2", 1600
This code goes crazy and doesn't work like expected. I even tried cross-fading once the first image loaded. Am I missing something?

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Re: Problems with AE4

Post by malte » Tue Mar 29, 2011 9:34 pm

Hi,

if you want to wait, you will need to make sure that messages can pass. If you use

wait 1600 milliseconds with messages

all should work as expected.

Hope that helps,

Malte

dburdan
Posts: 104
Joined: Fri Jan 28, 2011 5:39 am

Re: Problems with AE4

Post by dburdan » Wed Mar 30, 2011 5:21 am

So here is what I did.

Code: Select all

on openCard
   aeFadeIn the long id of image "img", 1000
   wait 1000 milliseconds with messages
   aeFadeIn the long id of image "img2", 1000
end openCard
What it does is wait 1 second then fade both images at the same time. Can't figure out why. I have tried so many combinations.

dburdan
Posts: 104
Joined: Fri Jan 28, 2011 5:39 am

Re: Problems with AE4

Post by dburdan » Wed Mar 30, 2011 6:50 am

I got it working with sort of a hack.

Code: Select all

on openCard
   send "splash2" to me in 1.5 seconds
   aeFadeIn the long id of image "splash", 500
end openCard

on splash2
   send "nextCard" to me in 2 seconds
   set the visible of image "splash2" to true
   aeFadeOut the long id of image "splash", 1000
end splash2

on nextCard
   visual effect dissolve fast
   go to next card
end nextCard
Unfortunately this run VERY choppy. I use AE in other parts of my app and it works fine.

dburdan
Posts: 104
Joined: Fri Jan 28, 2011 5:39 am

Re: Problems with AE4

Post by dburdan » Fri Apr 01, 2011 4:28 pm

Any ideas?

Post Reply