Richmond, this gave me the horrible case of the jitters. The image would shift 
positions as I dragged it. I tried locking and unlocking the screen before and 
after the sizing and positioning of the image, but apparently when the user is 
interacting with the IDE, the screen is going to unlock anyway whenever an idle 
hits. Seems there ought to be a way around this, but I don't have the time 
right now to troubleshoot it. It is however fairly quick on my Macbook Pro. 

Bob


On Feb 9, 2012, at 10:16 AM, Richmond wrote:

> On 02/09/2012 10:40 AM, David Glasgow wrote:
>> Hello folks,
>> 
>> I am trying to get an image to slide from the middle of the screen either to 
>> the top or the bottom.  However, the screen has a perspective, as if you 
>> were looking down a bowling alley, with a vanishing point somewhere above 
>> the screen.
>> 
>> To maintain the sense of depth, images 'pushed away' should shrink into the 
>> distance, and ones 'pulled' closer should embiggen.  Any suggestions how 
>> this could best be achieved?
>> 
>> The eventual destination of this may well be iPad, so any special 
>> considerations there would be welcome.
>> 
>> Cheers,
>> 
>> David Glasgow
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> Here's the clunky version:
> 
> I made a stack 1024x768 pixels and popped an image right in the middle of it, 
> and
> put this in the script of the image:
> 
> on mouseDown
>   grab me
> end mouseDown
> 
> on mouseStillDown
>   set the idleRate to 1
>   put the item 2 of the loc of me into LOK
>   if LOK > 0 then
>   set the width of me to LOK
>   set the height of me to LOK
>   end if
>   set the loc of me to 512, LOK
> end mouseStillDown
> 
> on mouseUp
>   set the idleRate to 1
>   put the item 2 of the loc of me into LOK
>   if LOK > 0 then
>   set the width of me to LOK
>   set the height of me to LOK
>   end if
>   set the loc of me to 512, LOK
> end mouseUp
> 
> certainly is achingly clunky on my P4, 3 GHz, 2 GB RAM running kinkified 
> Ubuntu.
> 
> AND, while I'm here, an opportunity for a faintly bi*chy note:
> 
> tried to upload the stack to RevOnline with no success 
> whatsoever.....................
> 
> Richmond Mathewson.
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to