Jump to content


Xml images...


  • You cannot reply to this topic
1 reply to this topic

#1 Takatoshi

    Young Padawan

  • Members
  • Pip
  • 23 posts

Posted 30 May 2006 - 09:55 AM

Hi all, Hope everyones ok

I was wondering is it possible to load an image from xml into a dynamic text field?

Ok basically it's this:

object = MCMovie.createTextField("Image"+i, intFieldUId, 15, 45+ (110*i), 70, 70); 
object.text = scorer.childNodes[0].childNodes[1].childNodes[0].childNodes[i].childNodes[0].firstChild;

That fetches the string from the xml file, but i want it to display it as an image.

Edited by Takatoshi, 30 May 2006 - 10:01 AM.


#2 FlawedKid

    Young Padawan

  • Members
  • Pip
  • 36 posts

Posted 12 August 2006 - 09:20 AM

Umm sorry if this sounds stupid but wouldnt it be easier and more appropriate to load the xml image into a movieclip?

You can use a similar syntax to create mc's that you used to create the text field.

yourMC.createEmptyMovieClip.("MC_Name");

If your still having trouble post your .fla and ill try and help

Edited by FlawedKid, 12 August 2006 - 09:21 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users