Barn Door Open Problem

Dan Shafer revdan at danshafer.com
Tue Aug 9 14:24:45 EDT 2005


OK, so my SWAG was wrong. Sorry.

So I did some testing. Rev 2.6.1 on OS X 10.4.2.

Script:

on mouseUp
   set the explicitVariables to true
   hide image 1
   show image 1 with visual barn door open
   set the explicitVariables to false
end mouseUp

Everything works exactly as I expect. I tried removing the word  
"visual". Still works. I tried quoting the effect. Still works. I  
even tried using the same syntax as the line you said didn't work.  
Works fine.

So there's evidently something else going on in your stack or there's  
a platform-specific issue here.


Dan


On Aug 9, 2005, at 11:02 AM, David Burgun wrote:

> Ok, I see, well if I just do:
>
> show image 1
> hide image 1
> set the fileName of image 1 to "myfile.jpg"
>
> Or anything that doesn't use "visual effects" it works fine. In  
> fact if I use one-word effects like dissolve it works too.
>
> Just tried doing this:
>
> show image "ImageSplash" with "barn door open" and it still doesn't  
> work!
>
> Although
>
> show image "ImageSplash" does!
>
> A mystery!
>
> Bye for now
> Dave
>
>
>
>> I didn't make myself clear.
>>
>> The image is undoubtedly still there. But if, inside your script,  
>> you have explicit declaration of variables required, then my  
>> question -- and I don't have the answer at hand -- is whether if  
>> you named the image, say "pic1" and then did:
>>
>> show image "pic1" with visual effect "barn door dissolve"
>>
>> it would work.
>>
>> From the Message Box, you'd expect the behavior to be different  
>> since the explicitVariables declaration wouldn't be effective there.
>>
>> It's just a thought. May be completely off target. I never use  
>> explicitVariables.
>>
>>
>> On Aug 9, 2005, at 10:10 AM, David Burgun wrote:
>>
>>
>>> Hi,
>>>
>>> No, the image is definitely there, since other parts of the code  
>>> reference it just fine, also this was working before and only  
>>> broke when change something completely unrelated. Also if I do  
>>> the exact same from the Message Box it works fine.
>>>
>>> Thanks anyway
>>> Dave
>>>
>>>
>>>
>>>> Dave...
>>>>
>>>> Just a SWAG but I suspect the complaint about the unquoted  
>>>> literal applies to the name of the image, not the visual effect.
>>>>
>>>> Since you have preferences set to declare locals within  
>>>> handlers, there's probably no declaration for an image called "1".
>>>>
>>>>
>>>> On Aug 9, 2005, at 1:34 AM, David Burgun wrote:
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>> That's got to be the weirdest subject line when you consider we  
>>>>> are talking about a programming environment!
>>>>>
>>>>> I changed a script that was created by an older version of rev.  
>>>>> It has a line in it:
>>>>>
>>>>>
>>>>> show image 1 with visual effect barn door open
>>>>>
>>>>> When I hit apply on the script I get a unquoted literal error,  
>>>>> so I changed it to
>>>>>
>>>>> show image 1 with visual effect "barn door open"
>>>>>
>>>>> and now the image doesn't show!
>>>>>
>>>>> I have the preference set so that you have to declare local's  
>>>>> within handlers, which is why I think it's complaining. What is  
>>>>> the correct syntax for this?
>>>>>
>>>>> Thanks in Advance!
>>>>> All the Best
>>>>> Dave
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>> Dan Shafer, Revolution Consultant and Author
>>>> http://www.shafermedia.com
>>>> Get my book, "Revolution: Software at the Speed of Thought"
>>>> From http://www.revolutionpros.com, Click "My Stuff"
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>>
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Dan Shafer, Revolution Consultant and Author
>> http://www.shafermedia.com
>> Get my book, "Revolution: Software at the Speed of Thought"
>> From http://www.revolutionpros.com, Click "My Stuff"
>>
>>
>>
>> _______________________________________________
>> 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
>>
>
> _______________________________________________
> 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