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: 125
Joined: Fri Apr 28, 2006 12:10 am

Screen Flash and Visual Effect

Post 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
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10504
Joined: Wed May 06, 2009 2:28 pm

Re: Screen Flash and Visual Effect

Post 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
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Screen Flash and Visual Effect

Post 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
RogGuay
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 125
Joined: Fri Apr 28, 2006 12:10 am

Re: Screen Flash and Visual Effect

Post by RogGuay »

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

Roger
RogGuay
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 125
Joined: Fri Apr 28, 2006 12:10 am

Re: Screen Flash and Visual Effect

Post 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...
[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Screen Flash and Visual Effect

Post 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?).
shiftLock happens
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Screen Flash and Visual Effect

Post 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
[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Screen Flash and Visual Effect

Post by [-hh] »

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: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Screen Flash and Visual Effect

Post 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?
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

Re: Screen Flash and Visual Effect

Post 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.
Attachments
visual2.livecode.zip
(188.45 KiB) Downloaded 985 times
shiftLock happens
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Screen Flash and Visual Effect

Post 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"
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

Re: Screen Flash and Visual Effect

Post 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
shiftLock happens
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Screen Flash and Visual Effect

Post 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
[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Screen Flash and Visual Effect

Post 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
shiftLock happens
RogGuay
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 125
Joined: Fri Apr 28, 2006 12:10 am

Re: Screen Flash and Visual Effect

Post 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
Post Reply