squirreltown
13 years agoRoku Guru
Get Title from XML
Modified DevientArt from the SDK
Trying to get Titles to appear on button
slideshow.AddButton(btn_bookmark, photo.GetTitle())
This returns the last image title in the XML file no matter how long the list, not for each image as it goes. The picture part of the slideshow works fine.
So if the XML list is 60 items long - image #1 will show title #60 and image #2 will show title #60 etc..
here is GetTitle defined in "mediarsstoolkit.brs
Function newPhotoFromXML(http As Object, xml As Object) As Object
photo = {http:http, xml:xml, GetURL:pGetURL}
photo.GetTitle=function():return m.xml.title.GetText():end function
return photo
End Function
Trying to get Titles to appear on button
slideshow.AddButton(btn_bookmark, photo.GetTitle())
This returns the last image title in the XML file no matter how long the list, not for each image as it goes. The picture part of the slideshow works fine.
So if the XML list is 60 items long - image #1 will show title #60 and image #2 will show title #60 etc..
here is GetTitle defined in "mediarsstoolkit.brs
Function newPhotoFromXML(http As Object, xml As Object) As Object
photo = {http:http, xml:xml, GetURL:pGetURL}
photo.GetTitle=function():return m.xml.title.GetText():end function
return photo
End Function