LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
on openStack
set the filename of image "prevImage" of this stack to empty
set the filename of image "prevImage" of this stack to "C:/exports/test.jpg"
end openStack
But it doesn't work.
If I put "C:/exports/test.jpg" in the source of the 'basic properties' for the image, it displays it, but if I just run the above code, I get nothing.
The stack is being called from another stack by the way.
on openStack
set the filename of image "prevImage" OF CD 1 of this stack to empty
set the filename of image "prevImage" OF CD 1 of this stack to "C:/exports/test.jpg"
end openStack
This does not work when you open that stack again/a second time?
Or do other (sub-)stacks NOT have their own "openstack" handler so they call this handler?
In that case there must of course exist an image "previmage" on cd 1 of the "calling" stack, since "THIS" will then refer to the calling stack!
I've got one stack with a button. This button does a screenshot export to a file, then opens the sub stack. The sub stack then gets the file and pops it in the image.
Works fine the first time, but if I go back to the first stack and press the button again, the image doesn't appear in the substack.