It's probably been asked before, but I can't seem to find any posts or samples about this.
I'm a long time C++ programmer, but I just started playing with MCML and C# this weekend. I am just trying random ideas to get a better understanding for how VMC development works.
In my current test, I was imagining a TV show browser and I wanted to create a strip of selectable images. My entire approach could be flawed and I would certainly welcome any criticism, but the general approach I was taking was to use an array of strings in a cs file, with each string being the URL for an image.
My understanding is that I should create a UI element in an mcml file that defines a "button", which I could then feed to a repeater. I was trying to define an image property for the button UI file called "ImageURL" and setting the source to "$Required". Down in the content block, I was creating a graphic element and setting its Content to be "[ImageURL]".
So far, the compiler is complaining about:
Unable to convert "$Required" to an object of type 'Resource'. (Invalid Resource value '$Required')
My high level question is, how do you create a graphic element and have it reference content that isn't statically available at build time (i.e.: a URL or filename that could change at runtime)?
If there is an MCML sampler file that demonstrates this, I must have missed it.
Thanks!