Ok - I’ve stumbled upon a tricky situation.
Basically I have Button components that are populated dynamically. The buttons need to each have an icon (using the button.icon property).
The icon however, is retrieved via webservices so all I recieve is a URL to the jpg that needs to be loaded as the icon. When using the icon property, you load an instance of something in your library over the top of your button.
So I was wondering if there was a way to retrieve this url, and load it into the library which would then allow me to use it as an icon???
Any suggestions would be greatly appreciated!
use loadMovie command
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary423.html
you can use loading jpeg to movieclip (button) instance name mc like
mc.loadMovie(url)
where url is image url (etc. “http://www.ax.com/1.jpg”)
you can additionaly state movieclips level but if you made your buttons earlier I suppose you defined it already so you only need to load jpeg
thanks for your help gvozden but that’s not exactly what I need to do.
I understand loadMovie but these are not button Movieclips, they are button components, and with those, when attaching an icon, you need a linkage id.
svg r u sure…
you can always extend component or place movieclips over it…
but hey
maybe I’m wrong