Then use the previous script a bit modified:

on SetImage pID,pButton,pStackName
  local tFlag
  ------
   set the cantAbort of this stack to true
   if there is an image ID pID of stack pStackName then
    set the ID of image ID pID of stack pStackName to 250000
    put true into tFlag
   end if
   set the icon of btn pButton to image ID 250000 of stack pStackName
   -- or what you want :-)
if tFlag then set the ID of image ID 250000 of stack pStackName to pID
   set the cantAbort of this stack to false
end SetImage

As Ken told you too and as far as I know, you have not another solution.

Le 4 janv. 06 à 14:44, Paul Claude a écrit :

I made things far too much complicated :-)

put image ID <ID> of stack "x3" into image <Image Name> is enough ;-)


Eric, the problem was another:

set the icon of btn x of stack X1 to (image ID <ID> of stack "x3")

doesn't works if also in stack X2 there is an image with the same ID:
Revoultion loads the image of X2 in place of the one of X3, also if these
images have differents names.

Best Regards from Paris,
Eric Chatonet
------------------------------------------------------------------------ ----------------------
http://www.sosmartsoftware.com/    [EMAIL PROTECTED]/


_______________________________________________
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