imageSource broken in LC 8?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

imageSource broken in LC 8?

Devin Asay
Has anyone else noticed this?

LiveCode has for years allowed you to set the imageSource property of a character to some valid image specifier, including a URL.

This seems to be broken in LC 8. Try this:

Create a field with a few characters in it.

Now try this in the message box:

set the imageSource of char -1 of fld 1 to "http://livecode.byu.edu/imgs/runmode.png"

Nothing happens.

But if you import an image file, say, “foo.png” and try it:


set the imageSource of char -1 of fld 1 to  “foo.png"

It works as expected.

I just tried it in LC 7.1.4 and it didn’t work either. Had to go all the way back to 6.7.11 before it would work.

If it’s been broken that long, maybe no one except me uses this technique.

Anyone else seeing this?

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: imageSource broken in LC 8?

Devin Asay
Should have checked quality.livecode.com<http://quality.livecode.com> first. Jim Lambert reported it a few weeks ago:

http://quality.livecode.com/show_bug.cgi?id=18606


On Dec 30, 2016, at 1:28 PM, Devin Asay <[hidden email]<mailto:[hidden email]>> wrote:

Has anyone else noticed this?

LiveCode has for years allowed you to set the imageSource property of a character to some valid image specifier, including a URL.

This seems to be broken in LC 8. Try this:

Create a field with a few characters in it.

Now try this in the message box:

set the imageSource of char -1 of fld 1 to "http://livecode.byu.edu/imgs/runmode.png"

Nothing happens.

But if you import an image file, say, “foo.png” and try it:


set the imageSource of char -1 of fld 1 to  “foo.png"

It works as expected.

I just tried it in LC 7.1.4 and it didn’t work either. Had to go all the way back to 6.7.11 before it would work.

If it’s been broken that long, maybe no one except me uses this technique.

Anyone else seeing this?

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

_______________________________________________
use-livecode mailing list
[hidden email]<mailto:[hidden email]>
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
hh
Reply | Threaded
Open this post in threaded view
|

Re: imageSource broken in LC 8?

hh
In reply to this post by Devin Asay
This is also defunct in LC 9.

Here a workaround for LC 8/9 that works for me:

Create an img x and set filename of img x to the url.
Then set imagesource of <char> to the short id of img x.

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: imageSource broken in LC 8?

Devin Asay

On Dec 30, 2016, at 4:52 PM, hh <[hidden email]<mailto:[hidden email]>> wrote:

This is also defunct in LC 9.

Here a workaround for LC 8/9 that works for me:

Create an img x and set filename of img x to the url.
Then set imagesource of <char> to the short id of img x.

Thanks hh. In fact I have just been implementing that very workaround. :)

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode