Page 1 of 1

Visual effects going to substack?

Posted: Sun Jul 22, 2007 8:11 pm
by kpeters
Not working - what am I doing wrong. Docs say to use 'go .. in window' in this case - at least that's how I interpret it.

TIA,
Kai


Code: Select all

---------------------------------------------------------------------------------------------
on openStack
  send "Continue" to me in 3 seconds
end openStack

---------------------------------------------------------------------------------------------
on Continue
  visual effect "wipe down slow"
  close this stack
  go to stack "Login" in new window
end Continue


Posted: Sun Jul 22, 2007 8:16 pm
by malte
hi kai,

try:

on Continue
visual effect "wipe down slow"
go to stack "Login" in the window of this stack
end Continue

Posted: Sun Jul 22, 2007 8:30 pm
by Klaus
Hi Kai,

in other words visual effects only work in ONE window.

Posted: Sun Jul 22, 2007 8:58 pm
by kpeters
Then how would you interpret this?
The visual effect command affects only navigation within a window. If you want to create a transition effect when moving between stacks, use the go...in window form of the go command:

visual effect wipe down
go stack "Index" in window "Part 2" -- replaces stack on screen

Posted: Sun Jul 22, 2007 9:00 pm
by Klaus
Hi Kai,

but you could fake a visual effect with stacks, at least the "dissolve" one.

1. Use a repeat loop and set the blendlevel of stack one until it is totally transparent.
2. Hide this stack
3. Use another repeat loop and set the blendlevel of stack two to "fade" this one in

Know what I mean?


Regards

Klaus

Posted: Sun Jul 22, 2007 9:02 pm
by Klaus
Hi Kai,

the docs are correct since this will take place in ONE window :-)

Posted: Sun Jul 22, 2007 10:00 pm
by kpeters
I'll take your word for it.

The docs are poorly written in part! In the example stated, if see a line saying ...'in window "Part 2" I infer that this refers to a second window.

That's just the way my brain works.

Guess I will take your blendlevel approach then - thanks!

Kai

Posted: Mon Jul 23, 2007 7:18 pm
by Klaus
Hi Kai,

the blendlevel approach will be the better (crossplatform) choice, since the nice dissolve (a "fade out" actually) effect you see on the mac relies on QuickTime!

If QT is not installed (on windows) you will get this boring and ugly pixel dissolve effect you may know from Director.

You can check the difference by yourself:

...
set the dontuseqteffects to true
## switch QT OFF for transitions
## don't forget to switch it ON again later!
## do something with a dissolve effect and be prepared to be bored :-D
...


Best

Klaus

Re: Visual effects going to substack?

Posted: Sat Jul 11, 2020 12:01 pm
by trevix
but you could fake a visual effect with stacks, at least the "dissolve" one.

1. Use a repeat loop and set the blendlevel of stack one until it is totally transparent.
2. Hide this stack
3. Use another repeat loop and set the blendlevel of stack two to "fade" this one in
Hi.
This does not seems to work on iOS simulator.
??

Re: Visual effects going to substack?

Posted: Sat Jul 11, 2020 12:07 pm
by Klaus
It not only seems to! :D
Since we can only have one stack/window open at a time, this does not work on mobile at all.

Re: Visual effects going to substack?

Posted: Sat Jul 11, 2020 12:15 pm
by trevix
I was referring to this:

Code: Select all

repeat with U = 0 to 100
set the blend level of image "something" to U
end repeat
Somehow is not fading/redrawing on the simulator (ok on OSX). No matter if inter a delay in the loop
But I don't see why it could not be:

Code: Select all

repeat with U = 0 to 100
set the blend level of image "something" to U
end repeat
set the blend level of image "something2" of stack2 to 100
go visible stack2
repeat with U = 100 down to 0
set the blend level of image "something2" to U
end repeat
But on simulator doesn't work

Re: Visual effects going to substack?

Posted: Sat Jul 11, 2020 12:40 pm
by Klaus
Well, you quoted my "stack" trick! 8)
Sorry, no idea why this does not works in the simulator.

Re: Visual effects going to substack?

Posted: Sat Jul 11, 2020 5:35 pm
by jacque
BlendLevel is one word. Try it that way, it should work.

Re: Visual effects going to substack?

Posted: Sun Jul 12, 2020 8:34 am
by trevix
Ok: in order to make it work I had to do a send in time > loop.
Boh. Thanks anyway for your answers.