script help
David Burgun
dburgun at dsl.pipex.com
Mon Apr 24 08:50:52 EDT 2006
Opps! a Typeo crept in!
The line should read:
set the visible of image myImageIndex of card myCardIndex of
this stack to true
Actually this would be better written as a function with a parameter
to specify whether to hind or show the images:
function SetVisibleOfAllImages theVisibleFlag
local myCardCount
local myCardIndex
local myImageCount
local myImageIndex
put the number of cards in this stack into myCardCount
repeat with myCardIndex = 1 to myCardCount
put the number of images in card myCardIndex of this stack into
myImageCount
repeat with myImageIndex = 1 to myImageCount
set the visible of image myImageIndex of card myCardIndex of
this stack to theVisibleFlag
end repeat
end repeat
end SetVisibleOfAllImages
The call it like this from your preOpenStack or whatever handler:
get SetVisibleForAllImages(true) --Show All Images
get SetVisibleForAllImages(false) --Hide All Images
All the Best
Dave
More information about the use-livecode
mailing list