This content has been marked as final. Show 4 replies
So what is the problem? Do you already know how to load in external pictures? If not, drop the XML for a bit and practice using the MovieClipLoader class. Once you've got that down, then it is just a simple mater of reading the XML node and passing it to the MCL for loading.
Remember that paths for external files in Flash are relative to the html or projector and not to the swf calling the asset.
Thanks for your reply.
I figure using xml to load in a picture is easy for the client so i am tryng to find a way to do it.
I am loading the text with xml and i would have liked to use the same xml file for the pictures as well. There are many tutorials out there but i havent found one which deals with loading individual pictures in.
But do you know how to load just one picture regardless of the source of the file name? In other words, do you know how to use the MovieClipLoader class?
Actually I think the help file for the MCL has just the code you need – should be the only tutorial you need!
And yes this is a great way to go about it. Many clients can be taught to change an XML file – of course some can't… :)
Thanks Rothrock. I'll go check it out.
Thanks for the advice.