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

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

Reply via email to