Shifting the Controls out of the Card

Thierry Douez th.douez at gmail.com
Mon Apr 22 09:51:36 EDT 2013


Hi,

Umm, as I have not too much time right now
( I'm crashing LC with my tests on my latest work! )

Are you sure your code doesn't break before setting the loc ?

May be worth debugging it ?

HTH,

Thierry


------------------------------------------------
Thierry Douez - http://sunny-tdz.com
Maker of sunnYperl - sunnYmidi - sunnYmage


2013/4/22 Ender Nafi Elekçioğlu <endernafi at gmail.com>

> Hi Thierry,
>
> Well, your code works for me, too.
> But in my own code {the one in the question} replacing comma with , didn't
> work.
> The key point here is, I suspect, putting the *answer* command fixes the
> issue.
> Probably, the engine needs a little pause but, weirdly, *wait* command
> doesn't help.
>
>
> Maybe posting a little more script will help:
> _put "a,b,c,d" into tRows
> _put 1 into x
> _repeat for each item tRow in tRows
> __repeat with y=1 to 8
> ___put tRow & "_" & y into tName
> ___put the id of image (tName & ".jpg") of card "images2" into tIcon
> ___create button tName
> ___put the long id of button tName into tButton
> ___set the icon of tButton to tIcon
> ___set the loc of tButton to (-240 & comma & randomInRange(40, 96))
> ___set the lockLoc of tButton to true
> ___set the layerMode of tButton to "dynamic"
> __end repeat
> __add 1 to x
> _end repeat
>
>
>
>
> ~ Ender Nafi
>
> ~… together, we're smarter …~
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list