Page 1 of 3

Screen Flash and Visual Effect

Posted: Sun Oct 19, 2014 7:45 am
by RogGuay
I’m using OS X Yosemite and LC 6.6.3 and LC 6.6.4 and noticing an occasional screen flash when unlocking screen with visual effect. Can anyone confirm? Here is a sample of my code that sometimes causes a screen flash. Makes no difference what visual effect I use . . . near as I can tell.

on mouseUp
lock screen for visual effect
set the vis of image "galex" to not the vis of image "galex"
unlock screen with dissolve
end mouseUp


Thanks,

Roger

Re: Screen Flash and Visual Effect

Posted: Sun Oct 19, 2014 3:53 pm
by dunbarx
Hi.

I do not have Yosemite yet, rather 10.6.8 with 6.6.4 No "flash", but perhaps you knew that.

Craig Newman

Re: Screen Flash and Visual Effect

Posted: Sun Oct 19, 2014 5:07 pm
by Klaus
Hi Roger,

just made a test on OS X 10.10 and LC 6.6.4 and there is no visual effect at all!?
The image simply dis-/appears? WTF? :shock:

Will investigate further...


Best

Klaus

Re: Screen Flash and Visual Effect

Posted: Sun Oct 19, 2014 11:05 pm
by RogGuay
Thanks, Craig. I did know that, but thanks for trying

Roger

Re: Screen Flash and Visual Effect

Posted: Sun Oct 19, 2014 11:07 pm
by RogGuay
Thank you, Klaus. I appreciate your help!

Cheers,

Roger

[quote="Klaus"]Hi Roger,

just made a test on OS X 10.10 and LC 6.6.4 and there is no visual effect at all!?
The image simply dis-/appears? WTF? :shock:

Will investigate further...

Re: Screen Flash and Visual Effect

Posted: Wed Oct 22, 2014 2:30 am
by [-hh]
Since I joined LC I never ever had the luck to see a visual effect working with unlock screen. I always thought LC was too fast (why do you abbreviate this Klaus?).

Re: Screen Flash and Visual Effect

Posted: Wed Oct 22, 2014 11:57 am
by Klaus
Hi Hermann,

well, I actually meant "What The Fuck", but did not mean to offend any american citizen, if present 8)


Best

Klaus

Re: Screen Flash and Visual Effect

Posted: Wed Oct 22, 2014 12:44 pm
by [-hh]
Oh, TTF (that's too fast) with LC, to unlock screen with a visual effect.

Re: Screen Flash and Visual Effect

Posted: Wed Oct 22, 2014 4:52 pm
by jacque
It sounds like there's a bug in LiveCode and Yosemite, but I've never had a problem with visual effects otherwise. HH, can you give us an example of an effect that fails?

Re: Screen Flash and Visual Effect

Posted: Wed Oct 22, 2014 7:27 pm
by [-hh]
Hi all,

here is a stack, tested with several versions of LC >= 6.6 on Mac OS 10.10 + WIn 7 + Xubuntu latest LTS.

No "unlock screen with visual x" works.
And I can't remember that it ever worked on several Mac OS >= 10.4.11 (since my join date)

The attached sample stack has one photo from Germany (Buchenberg).

Or compare with the following script.

Code: Select all

on mouseUp
  set visible of fld 1 to true
  put "locking screen" into fld 1
  lock screen
  go card 2
  wait 2 seconds with messages
  go card 1
  unlock screen with visual effect reveal up slowly
  put "screen unlocked with visual reveal up slowly " into fld 1
  send "set visible of fld 1 to false" to me in 1 seconds
  -- send "hide fld 1" to me in 1 seconds ## < -- doesn't work too
end mouseUp
Vice versa Jacque, do you have a simple example where unlock screen with visual ... works ?
It's the same with "hide me/show me with visual effect ..." (from the dictionary): doesn't work.

Certainly, visual effects work when going to cards.

Re: Screen Flash and Visual Effect

Posted: Wed Oct 22, 2014 7:45 pm
by jacque
I see. The syntax must include "for visual effect":

Code: Select all

lock screen for visual effect
  hide btn 1
unlock screen with visual effect "dissolve"

Re: Screen Flash and Visual Effect

Posted: Wed Oct 22, 2014 11:40 pm
by [-hh]
Thanks. You helped me to reach a new step with my learning process about basic things.

This could be added to the dictionary entry for 'unlock screen'. And also, in the dictionary entry for 'lock screen', the word "optional" for the extension "for visual effects" should be replaced by "obligatory (if visual effects are involved)".

But now, what about hide and show in this "visual" context. Until now it doesn't work for me. What am I missing here?

Code: Select all

on mouseUp
  hide this stack with visual dissolve
  wait 1 second with messages
  show this stack with visual iris open
end mouseUp

Re: Screen Flash and Visual Effect

Posted: Thu Oct 23, 2014 12:26 am
by Klaus
Hi Hermann,

visual effects unfortunately only work INSIDE of a stack.
To make a stack dis-/appear you can set the blendlevel in a repeat loop.


Best

Klaus

Re: Screen Flash and Visual Effect

Posted: Thu Oct 23, 2014 12:46 am
by [-hh]
Klaus,

I feel to know what you mean ("stack"="stack window"?).

From the dictionary entry to "show/hide with visual":
The object is any open stack, or any control in an open stack.

And a hidden stack is still open, isn't it?

After your info this should be corrected in the dictionary. User additions are currently disabled (at least for me).

Hermann

Re: Screen Flash and Visual Effect

Posted: Thu Oct 23, 2014 4:30 am
by RogGuay
So, after all that, do we all agree that there is a problem with Yosemite flashing when using unlocking with visual effect?

Thanks,
Roger