Problem importing images

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!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bjb007
Posts: 313
Joined: Fri Dec 28, 2007 4:56 am

Problem importing images

Post by bjb007 » Thu Jul 31, 2008 10:17 am

I previously imported some small gif
images and used them successfully in
my programme.

Now that I've done the "real" thing I find
that no matter how many times I import
them they simply disappear!

This is after saving the file several times
as well as backups with revAltArchive.

No sign of them anywhere.

Could it be anything related to setting
quality to "Best"?

Hints etc. welcome.
Life is just a bowl of cherries.

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Thu Jul 31, 2008 9:50 pm

Are the image controls still there and empty, or did they somehow get deleted? A good definition of the problem is the first step to a solution :-)

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Fri Aug 01, 2008 2:21 am

Hi BJB,

Nope, the quality of an image doesn't cause any problems. This feature exists for quite w hile now and it never cause such a problem before.

What happens if you quit Revolution, start it again, create a new stack and import the gif file? Does it disappear?

If the picture doesn't disappear, there must be going on something in your stack. I can imagine several causes of the problem. Perhaps, you think you are importing an image, while you are not, or you are importing an image to a different stack than the one you aim for. This may happen if the stack you are looking at is not toplevelled or cannot be changed. So, you need to check whether the currently active stack really is the one you want to import a picture into.

Do you have any scripts that are triggered when a new object is created?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

bjb007
Posts: 313
Joined: Fri Dec 28, 2007 4:56 am

Problem importing images

Post by bjb007 » Fri Aug 01, 2008 4:40 am

Thanks for your responses.

After a while away I've turned my
computer on and checked the stack
and the graphics appear as expected.

However when I run the stack the
programme stops with an error
when the graphic is to appear.

Figured out that previously I was
using the "clone" function to make
a copy of the graphic and using that
in the prog.

Now I'm using the graphic itself but
still have the code to delete the cloned
image. However, the delete graphic code
is only triggered by clicking the "Reset"
button which I haven't done.

So a small change to the code should fix
the problem.

Another lesson I mustn't forget - when
you have code which works don't mess
about with it!
Life is just a bowl of cherries.

Post Reply