XML is like:
<imageshow>
<image path="images/home1.jpg" url="www.google.com" data="The Department
of Education has several options for youth aged between 16 to 21 who are
either not attending school or are at risk of dropping<img id='arrow'
src='arrow' />" />
</imageshow>
Actually I want this arrow image which is in "data" attribute, to be linked
to url given in "url" attribute of above XML.
I am using following for loop to push xml values into array
for (i=0; i<totalImages; i++) {
images.push(xmlNode[i].attributes.path);
imgContent.push(xmlNode[i].attributes.data);
//trace(images);
}
And later using a function, i am setting text field value:
movTxt.imageData.htmlText = imgContent[j];
Thanks
On Wed, May 28, 2008 at 12:33 AM, Helmut Granda <[EMAIL PROTECTED]>
wrote:
> what does the XML Looks like?
>
> On Tue, May 27, 2008 at 6:33 AM, Rajiv Seth (Pixelated) <
> [EMAIL PROTECTED]> wrote:
>
> > When I am trying to call an image inside text field dynamically, it is
> > appearing after a line break, but I want the image to come in line with
> the
> > text.
> > I have created the text field dynamically:
> >
> > [i]txtHolder.createTextField("imageData",1,0,0,550,60);[/i]
> >
> > and set these properties:
> > [i]txtHolder.imageData.multiline = true;[/i]
> > [i]txtHolder.imageData.wordWrap = true;[/i]
> > [i]txtHolder.imageData.html = true;[/i]
> > [i]txtHolder.imageData.border = true;[/i]
> > [i]txtHolder.imageData.htmlText = "";[/i]
> >
> > Now I am loading an image along with text into it using XML. I want to
> use
> > and arrow image which will come in the end but in same line. But the
> image
> > is taking a line break.
> >
> > Can anyone suggest me how to use <img> in text field so that it appears
> > without line-break.
> >
> > Thanks
> > _______________________________________________
> > Flashcoders mailing list
> > [email protected]
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> ...helmut
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
--
Regards
Rajiv Seth
Ph: 09839157388
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders