[Newbies] Re: How to add a gif or an image to a Morph

FrankBz kyotosong at libero.it
Thu Mar 18 11:26:13 UTC 2010


it works perfectly. just curios, how can I refer to the added image from the
browser?
Suppose I'm in the situation where I want to have a morph that includes the
image by default (i.e. at each instantiation of that object I have a morph
with that image as background), how can I do that?
The problem is that I'm writing a a morph that should change background
image accordingly to user action.. 

Just to be more precise, I would like to have something that in Java would
look as follow:
ImageIcon img = new ImageIcon("./myimagepath"); 
Then I need to use this image in my morph.
Sorry for the Java example, but it's the easiest thing I could think of to
explain the concept.

Thanks in advance
-- 
View this message in context: http://n4.nabble.com/How-to-add-a-gif-or-an-image-to-a-Morph-tp1593261p1597827.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.


More information about the Beginners mailing list