aeFadeOutDone Callbackmessage Use
Moderators: heatherlaine, kevinmiller, robinmiller, malte
aeFadeOutDone Callbackmessage Use
Malte (or any other kind soul),
I am having a problem getting the below snippet to work. I keep getting a compile error. I am on build 8.13. I just want to wait till my image fade out is done before moving to a new card.
aeFadeOut the long ID of img "Picture", 2000
on aeFadeOutDone
go to card "Next Topic"
end aeFadeOutDone
I have tried a variety of things but none successful. Any guidance would be appreciated.
Thaks
Greg
I am having a problem getting the below snippet to work. I keep getting a compile error. I am on build 8.13. I just want to wait till my image fade out is done before moving to a new card.
aeFadeOut the long ID of img "Picture", 2000
on aeFadeOutDone
go to card "Next Topic"
end aeFadeOutDone
I have tried a variety of things but none successful. Any guidance would be appreciated.
Thaks
Greg
Re: aeFadeOutDone Callbackmessage Use
A safer way to do this is without locking any messages. Try the send in time function:
The important thing to note here when using animationEngine and sending in time functions is that there needs to be some variance with the sending milliseconds (hence the 2025 instead of just 2000), so you don't cause conflicts just in case.
Code: Select all
on mouseUp
aeFadeOut the long id of img "Picture",2000
send "FadedOut" to me in 2025 millisecs
end mouseUp
on FadedOut
go to card "Next Topic"
end FadedOut
Re: aeFadeOutDone Callbackmessage Use
Hi Greg,
if this is your code then a compile error isn't a surpise really!
The "aeFadeOut" command should of course be wrapped in some kind of handler like "mouseup"!
I do not use AE but I guess the "aeFadeOutDone" will be sent to the object that invoked the "aeFadeOut" command.
In that case you should script:
Best
Klaus
Code: Select all
aeFadeOut the long ID of img "Picture", 2000
on aeFadeOutDone
go to card "Next Topic"
end aeFadeOutDone
The "aeFadeOut" command should of course be wrapped in some kind of handler like "mouseup"!
I do not use AE but I guess the "aeFadeOutDone" will be sent to the object that invoked the "aeFadeOut" command.
In that case you should script:
Code: Select all
on mouseup
## or opencard or whenever you want to fire this one!
aeFadeOut the long ID of img "Picture", 2000
end mouseup
## This needs to be in the same script or at least somewhere in the correct message hierarchy!
on aeFadeOutDone
go to card "Next Topic"
end aeFadeOutDone
Klaus
Re: aeFadeOutDone Callbackmessage Use
Thank you very much for both suggestions. At first neither worked for me in my stack but when I did a new stack it was fine. I think I have done to much experimenting in the first stack and have managed to corrupt something. Thanks again.
Re: aeFadeOutDone Callbackmessage Use
Spam, spam, spam, spam,
(sung to the Monty Python tune)
(sung to the Monty Python tune)
Re: aeFadeOutDone Callbackmessage Use
with bacon and Eggs!
Re: aeFadeOutDone Callbackmessage Use
Spam, egg, chips, beans and spam!
But, probably best not to add more comments to the thread - you can use the ! icon by each post to report it, a moderator (likely Klausimausi) will handle it appropriately.
But, probably best not to add more comments to the thread - you can use the ! icon by each post to report it, a moderator (likely Klausimausi) will handle it appropriately.
Re: aeFadeOutDone Callbackmessage Use
No need to flag anything here, I have a lot of time (unemployed) and read every posting every morning.
And due to years of experience I can smell a spammer from afar!
And due to years of experience I can smell a spammer from afar!