Page 1 of 1

Problems with AE4

Posted: Tue Mar 29, 2011 4:00 am
by dburdan
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?

Re: Problems with AE4

Posted: Tue Mar 29, 2011 9:34 pm
by malte
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

Re: Problems with AE4

Posted: Wed Mar 30, 2011 5:21 am
by dburdan
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.

Re: Problems with AE4

Posted: Wed Mar 30, 2011 6:50 am
by dburdan
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.

Re: Problems with AE4

Posted: Fri Apr 01, 2011 4:28 pm
by dburdan
Any ideas?