none
SmallBasic project won't load gif images from my website RRS feed

  • Question

  • Hi!

    I made a simple game with Small Basic that works well when I run it on my computer, but when I upload it, using the publish button in the toolbar, the images won't show. I know the game is working because for debugging purposes I added a couple of instructions that draw ellipses where the images should be and the ellipses show up.

    I uploaded the images to http://ingenieriasimple.com/smallbasic that is my own web site and the local version of the program does not have problems downloading the images from there, but the published version just won't.

    The project is in: http://smallbasic.com/smallbasic.com/program/?FSH316

    I think that if you import the project into your local Small Basic it will correctly download the images. I did it and it works.

    Is there any reason for the published version not working?

    Thanks.

    Friday, July 9, 2010 3:35 AM

Answers

  • Try using png files - the following works for me on SilverLight - http://smallbasic.com/smallbasic.com/program/?GJV352

    Image = Shapes.AddImage("http://litdev.web.officelive.com/images/bee_icon3.png")
    Shapes.Move(Image,100,100)

    Whereas, this doesn't:

    Terron = Shapes.AddImage("http://ingenieriasimple.com/smallbasic/TerronG.gif")
    Shapes.Move(Terron,200,100)

     

    • Marked as answer by Rushworks Monday, July 12, 2010 4:42 AM
    Saturday, July 10, 2010 6:18 PM
    Moderator

All replies

  • The Silverlight version does have some limitations, compared with the version that runs locally.

    This sounds like it cannot store the images locally on its server.  Probably for security reasons.

     

    Friday, July 9, 2010 3:57 AM
  • So it is a security matter. I will try uploading to skydrive to see if Silverlight can use that and post back.

    Thanks Rushworks!

    Friday, July 9, 2010 4:05 AM
  • Try using png files - the following works for me on SilverLight - http://smallbasic.com/smallbasic.com/program/?GJV352

    Image = Shapes.AddImage("http://litdev.web.officelive.com/images/bee_icon3.png")
    Shapes.Move(Image,100,100)

    Whereas, this doesn't:

    Terron = Shapes.AddImage("http://ingenieriasimple.com/smallbasic/TerronG.gif")
    Shapes.Move(Terron,200,100)

     

    • Marked as answer by Rushworks Monday, July 12, 2010 4:42 AM
    Saturday, July 10, 2010 6:18 PM
    Moderator
  • Thanks litdev! I will.

    I tried using skydrive but It did not work with the gif images. I will try the png format.

    Monday, July 12, 2010 3:55 AM
  • It works!!!!!

    Check it: http://smallbasic.com/program/?QJQ087

    PNG images are loaded from my website and work fine.

    The program needs adjustments to work well online (I can see that now) but it is a good start. There are many games that can be made under the same paradigm.

    Thanks to all!!!!!

    Monday, July 12, 2010 4:16 AM