lock/unlock in closeCard short-circuits a visual effect

Peter T. Evensen pevensen at siboneylg.com
Thu Apr 26 16:16:34 EDT 2007


Hi Mark,

I can see what you are saying.  That seems like unexpected behavior, 
though.  It took me a while to figure out why it wasn't working.

I guess it is best to avoid the "visual effect" command and always use 
the lock and unlock screen with visual effect...

Thanks!

Mark Schonewille wrote:
> Hi Peter,
>
> You issue the visual effect command before locking the screen. 
> Revolution goes to the previous card and executes the visual effect 
> while the screen is locked, so you won't see anything. In this 
> situation, your second mouseUp handler is the correct script.
>
> Best,
>
> Mark
>
> -- 
>
> Economy-x-Talk
> Consultancy and Software Engineering
> http://economy-x-talk.com
> http://www.salery.biz
>
> Get your store on-line within minutes with Salery Web Store software. 
> Download at http://www.salery.biz
>
> Op 26-apr-2007, om 21:55 heeft Peter T. Evensen het volgende geschreven:
>
>> Sorry for the bad subject line, I regretted after I hit send.
>>
>> I tried "visual effect dissolve slow." The effect didn't work: it 
>> takes longer for the previous card to appear (like it is doing the 
>> dissolve) but the card appears right away.
>>
>> I have a sample stack that demonstrates the problem and does no other 
>> locks.  Here's the "go to previous" button script:
>>
>> on mouseUp
>>  visual effect dissolve fast
>>  go to previous
>> end mouseUp
>>
>> Here's the closeCard handler on that card:
>>
>> on closeCard
>>  lock screen
>>  -- do nothing else
>>  unlock screen
>> end closeCard
>>
>> It seems the lock and unlock screen here "short-circuit" the visual 
>> effect.
>>
>> If I replace the mouseUp above with
>>
>> on mouseUp
>>  lock screen
>>  go to previous
>>  unlock screen with visual effect dissolve fast
>> end mouseUp
>>
>> Everything works in my test stack.
>>
>> Should the two work differently?
>
>>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list