Screen Flash and Visual Effect

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

RogGuay
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 114
Joined: Fri Apr 28, 2006 12:10 am
Location: Seattle

Screen Flash and Visual Effect

Post by RogGuay » Sun Oct 19, 2014 7:45 am

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9578
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Screen Flash and Visual Effect

Post by dunbarx » Sun Oct 19, 2014 3:53 pm

Hi.

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

Craig Newman

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Screen Flash and Visual Effect

Post by Klaus » Sun Oct 19, 2014 5:07 pm

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

RogGuay
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 114
Joined: Fri Apr 28, 2006 12:10 am
Location: Seattle

Re: Screen Flash and Visual Effect

Post by RogGuay » Sun Oct 19, 2014 11:05 pm

Thanks, Craig. I did know that, but thanks for trying

Roger

RogGuay
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 114
Joined: Fri Apr 28, 2006 12:10 am
Location: Seattle

Re: Screen Flash and Visual Effect

Post by RogGuay » Sun Oct 19, 2014 11:07 pm

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...

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Screen Flash and Visual Effect

Post by [-hh] » Wed Oct 22, 2014 2:30 am

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?).
shiftLock happens

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Screen Flash and Visual Effect

Post by Klaus » Wed Oct 22, 2014 11:57 am

Hi Hermann,

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


Best

Klaus

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Screen Flash and Visual Effect

Post by [-hh] » Wed Oct 22, 2014 12:44 pm

Oh, TTF (that's too fast) with LC, to unlock screen with a visual effect.
shiftLock happens

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7214
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Screen Flash and Visual Effect

Post by jacque » Wed Oct 22, 2014 4:52 pm

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?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Screen Flash and Visual Effect

Post by [-hh] » Wed Oct 22, 2014 7:27 pm

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.
Attachments
visual2.livecode.zip
(188.45 KiB) Downloaded 223 times
shiftLock happens

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7214
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Screen Flash and Visual Effect

Post by jacque » Wed Oct 22, 2014 7:45 pm

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"
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Screen Flash and Visual Effect

Post by [-hh] » Wed Oct 22, 2014 11:40 pm

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
shiftLock happens

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Screen Flash and Visual Effect

Post by Klaus » Thu Oct 23, 2014 12:26 am

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

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Screen Flash and Visual Effect

Post by [-hh] » Thu Oct 23, 2014 12:46 am

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
shiftLock happens

RogGuay
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 114
Joined: Fri Apr 28, 2006 12:10 am
Location: Seattle

Re: Screen Flash and Visual Effect

Post by RogGuay » Thu Oct 23, 2014 4:30 am

So, after all that, do we all agree that there is a problem with Yosemite flashing when using unlocking with visual effect?

Thanks,
Roger

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”