[Newbies] Re: playing a sound in squeak

2010-04-10 Thread FrankBz
hi, I get a Dictionary error when trying to execute the above code. Perhaps I need to store the loaded sound in a sound dictionary of the environment? thanks in advance -- View this message in context: http://n4.nabble.com/playing-a-sound-in-squeak-tp1750578p1835782.html Sent from the Squeak -

[Newbies] Drag and Drop - strange problem

2010-04-09 Thread FrankBz
hi, I'm facing a strange problem in my program. Basically I have this morph which acts as a receiver of other morphs that can be dropped on it. The behavior I want is: drag a morph on the receiver and once you drop it a method is executed and then the dropped morph disappears. This was exactly ho

[Newbies] playing a sound in squeak

2010-04-03 Thread FrankBz
Hi, I was wondering, what's an easy and quick way to load and play a sound file, say a wav, in a squeak program? If you have experience with any other format (midi, mp3, etc.) feel free to share it. What I'm really interested in is how sound works in squeak. Regards -- View this message in con

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

2010-03-28 Thread FrankBz
thanks jerome, it works perfectly.. now I'm trying to change the image accordingly to certain events.. when a just do again backgroundSketch: on my PasteUpMorph, it just remove the previous content without substituting it with the new image.. I have tried to call deleteBackgroundPainting before b

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

2010-03-27 Thread FrankBz
Hi, I tried with PasteUpMorph.. it worked fine, but I can't drag this kind of morph and I need to.. how can I enable dragging property of a PasteUpMorph? regards -- View this message in context: http://n4.nabble.com/How-to-add-a-gif-or-an-image-to-a-Morph-tp1593261p1693540.html Sent from the Sq

[Newbies] Drag and Drop problem

2010-03-20 Thread FrankBz
Hello everyone, I would like to have a Morph which according to different colored morphs dragged into it, responds with different actions. For example, if the dragged morph is blue, the container morph should change its background color, otherwise it should do nothing. So far I was able to have a

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

2010-03-18 Thread FrankBz
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 proble

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

2010-03-15 Thread FrankBz
It works fine, except that animated gifs are shown statically. Any idea on how to keep them animated? -- View this message in context: http://n4.nabble.com/How-to-add-a-gif-or-an-image-to-a-Morph-tp1593261p1593274.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. __

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

2010-03-15 Thread FrankBz
Hi, how can one insert an animated gif or any type of image to a Morph? Thanks in advance -- View this message in context: http://n4.nabble.com/How-to-add-a-gif-or-an-image-to-a-Morph-tp1593261p1593261.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. ___

[Newbies] Re: Ho to get center of the system screen

2010-03-15 Thread FrankBz
thanks guys! it works perfectly.. what I meant in my original post was that I tried with - myMorph position: World center - that as pointed out by jerome doesn't correspond to the display center. regards -- View this message in context: http://n4.nabble.com/Ho-to-get-center-of-the-system-scree

[Newbies] Ho to get center of the system screen

2010-03-14 Thread FrankBz
Hi, how can I get a point representing the screen center? I need it to open a morph at that position. So far I tried with - World center - but the position is on the bottom right of the screen. Does anyone know how to get it? Thanks in advance -- View this message in context: http://n4.nabble

[Newbies] Re: LedMorph - step problem

2010-03-08 Thread FrankBz
___ That seems wrong - you should not define startStepping and stopStepping because those methods already exist. - Bert - Sure bart, those startStepping and stopStepping do already exist in any Morph. Anyway, you can define your own startSteppin

[Newbies] Re: LedMorph - step problem

2010-03-08 Thread FrankBz
Sorry, I solved it. The problem was that I had to change the target of that button to 'self' instead of the led instance. Anyway, if you have any other advise or suggestion, you're welcome. Thanks a lot -- View this message in context: http://n4.nabble.com/LedMorph-step-problem-tp1582908p15844

[Newbies] Re: LedMorph - step problem

2010-03-08 Thread FrankBz
Hi Jerome, thanks for answering.. I modified the program as you suggested and now it seems to work fine. Basically it starts or stops stepping when sending those messages to the LedFrame in the workspace. What is still not working is the button that should invoke stopStepping. May it depend on th

[Newbies] LedMorph - step problem

2010-03-06 Thread FrankBz
Hi, I'm trying to write a LedMorph that shows the actual time. It should have also two buttons, 'quit' which closes the frame and 'stop' which should stop the clock. Unfortunately the stop button does not work and I can't figure out where's the problem. Even by trying to send the stopStepping mess