Page 1 of 1

Visual effects in ide vs mobile

Posted: Wed Jan 28, 2015 8:34 pm
by trags3
I have a card with 2 images. Each image covers the whole card.
I am trying to show the Layer 2 image show when the card opens. After about 1 sec I want the image at layer 1 to be uncovered with the iris visual effect.
Then I do some stuff (play a short audio file) and then I show the Layer 2 picture with visual effect.

When I run this in the IDE it all works like a charm. (the audio doesn't work but that's ok)
When I test on the iOS simulator. Everything works fine except the visual effects are completely missing.
Here is the code I am using:

on openCard
wait 1 Second
Hide image"Portal"with visual effect iris open very slowly
put "174.aiff" into tAudio
if the environment is mobile then
mobilePlaySoundOnChannel tAudio,"current", "now"
else
end if
wait 6 sec
show image Portal with visual effect iris close very slowly
go cd 1
end openCard

Am I doing something wrong?
I am using LC 7.0.1 on a Macbook Air with Yosemite OS.

Any help would be appreciated.
Thanks
Tom

Re: Visual effects in ide vs mobile

Posted: Wed Jan 28, 2015 9:39 pm
by Simon
From the dictionary
• plain
• checkerboard - Desktop / Web
• venetian blinds - Desktop / Web
• iris close | iris open - Desktop / Web
• zoom close | zoom in | zoom open | zoom out - Desktop / Web
• wipe up | wipe down | wipe right | wipe left - Desktop / Web
• dissolve
• push up | push down | push right | push left
• reveal up | reveal down | reveal right | reveal left - Desktop / Web / iOS / Android
• shrink to bottom | shrink to center | shrink to top - Desktop / Web
• stretch from bottom | stretch from center | stretch from top - Desktop / Web
• scroll up | scroll left | scroll down | scroll right - iOS / Android
• curl up | curl down - iOS
• flip left | flip right - iOS. The background behind the flip is taken from the background color of the current stack - i.e. the card is cut out and flipped over the stack.
iris is Desktop/Web only

Simon

Re: Visual effects in ide vs mobile

Posted: Wed Jan 28, 2015 10:03 pm
by trags3
Simon
I should have thought to look in the dictionary.
What a shame, the iris effect is perfect for the app I am working on.

Thanks
Simon.

Tom

Re: Visual effects in ide vs mobile

Posted: Wed Jan 28, 2015 10:10 pm
by Dixie
try this when using visual effects... lock the screen, do what you wish to do and then unlock the screen with your choice of visual effect

Code: Select all

   lock screen for visual effect
   set the visible of image "portal" to false
   unlock screen with dissolve slow