Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE FLASH: Adobe Flash ForumAdobe Flash TutorialsAdobe Flash Video TutorialsWeb Streaming ForumAdobe Flash

Dynamic Text Field Loading IMG tag (image)

Cow Forums : Adobe Flash
Dynamic Text Field Loading IMG tag (image)
by Matt Abron on May 14, 2008 at 8:13:36 pm

OK, Trying to load picture into my dynamic-scrollable text field...for a while now...I cannot see to get this to work...it will load text into the field if I REM the img tag, but when I add the html id I get a blank field.

here is my cut and paste of the HTML text from my test.txt (document) The second id is just there to make sure it is reading the html tags


/*

Here is an image you can use to link to us from your website:


HTMLQuick.com logo

Here is an example of how to use it:



Learn HTML code
*/

Any help would fantastic...

Gracias para todo!

matt



Is working off my local drive causing a problem?


Respond to this post   •   Return to posts index

Re: Dynamic Text Field Loading IMG tag (image)
by Pieter Helsen on May 14, 2008 at 8:22:38 pm

Try adding the width and height to your img tag. And structure your img tag like this
OPEN BRACKET img src="/Users/mattabron/Desktop/DynamicTextField/test.jpg width="300" heigth="300" /CLOSE BRACKET
(notice the slash at the end)


Kind regards,
Pieter

Respond to this post   •   Return to posts index

Re: Dynamic Text Field Loading IMG tag (image)
by Matt Abron on May 14, 2008 at 8:35:21 pm

Thank Pieter, and again I apologize for my mental break on this...I am actually a video editor trying to develop video for internet skills...hmmm

Well here is my actual text.txt...Note that my test pix is 80x80 pixels

OPEN BRACKET img src="/Users/mattabron/Desktop/DynamicTextField/test.jpg width="300" heigth="300" /CLOSE BRACKET I am triyng to set this crazy thing up to add pictures to my Dynamic text fields...so for god sake let this crazy shit work.

Flash AS3
var textLoader:URLLoader = new URLLoader();
var textReq:URLRequest = new URLRequest("/Users/mattabron/Desktop/DynamicTextField/text.txt");

function textLoaded(event:Event):void
{
external_txt.htmlText = textLoader.data;
}

textLoader.load(textReq);
textLoader.addEventListener(Event.COMPLETE, textLoaded);

What could I be doing wrong...seems like this should be easy...

thanks again



Respond to this post   •   Return to posts index


Re: Dynamic Text Field Loading IMG tag (image)
by Pieter Helsen on May 14, 2008 at 8:49:24 pm

I think you forgot to unquote the image path ;)

Anyhoo, here we go. This seems to work :)

Kind regards,
Pieter

Respond to this post   •   Return to posts index

Re: Dynamic Text Field Loading IMG tag (image)
by Matt Abron on May 14, 2008 at 9:11:40 pm

Pieter,
Thanks, I really appreciate your time and value your expertise...

Muchas Gracias...Que tengas Suerte!

matt



Respond to this post   •   Return to posts index

Re: Dynamic Text Field Loading IMG tag (image)
by Pieter Helsen on May 14, 2008 at 9:13:25 pm

That's what we're here for. Did that solve your problem?

Kind regards,
Pieter

Respond to this post   •   Return to posts index


Re: Dynamic Text Field Loading IMG tag (image)
by Matt Abron on May 14, 2008 at 9:29:37 pm

yea, initial quick tests look like it will do what I need it to, I suppose I will be able to load multiple pictures through put the text in the same fashion, I plan on finishing this part tomorrow...

Thanks Again

Matt



Respond to this post   •   Return to posts index

Re: Dynamic Text Field Loading IMG tag (image)
by Adam Clark on May 14, 2008 at 9:35:18 pm

I too am trying to create scrollable thumbnails for my webpage image gallery. I think this method could work for me too, but I was wondering if perhaps the TileList component would work for this, and if so are there any tutorials on how to set this up?

Thanks, great stuff here!

Respond to this post   •   Return to posts index

Re: Dynamic Text Field Loading IMG tag (image)
by Pieter Helsen on May 14, 2008 at 11:32:57 pm

This one Mayhaps? :)

And yes, I think this might be the best solution for what you want to do. Although, I'm not familiar with components/


Kind regards,
Pieter

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]