| Author |
Flash Question - Image Into HTMLText
|
|
| Jon Parkhurst 2005-09-15, 7:30 pm |
| Sorry for the cross-posting, but I'm a bit desperate for answers.
I'm attempting to pull in an image to a Dynamic Text box set to HTMLText
from a text file. It is not working. The text from the file comes in fine,
but the image does not.
Actionscript:
loadText = new LoadVars();
loadText.load("data-main.txt");
loadText.onLoad = function() {
txtServiceMain.HTMLText = this.txtServiceMain;};
scrollMain._visible = (txtMain0.maxscroll > 1);
Text from file:
txtMain0=This is the main text&txtNews=This is the news&txtServiceMain=<img
src="codehtml4food.jpg">This is Service Area Main text. This is Service
Area Main text. This is Service Area Main text. This is Service Area Main
text.
Directory master
index-pageV.swf
data-main.txt
codehtml4food.jpg
Any ideas on what could be happening? Have I miscoded and I just can't see
it?
TIA,
Jon Parkhurst
PriivaWeb, Inc.
http://priiva.net
| |
| Jon Parkhurst 2005-09-15, 7:30 pm |
| thanks alan. both of these thigns are currenlty present in the movie. i am
tryign to load an external image currently from another site and I'll see if
that works.
It *may* also be possible there is some form of bug that doesn' tallow you
to insert images from outside data files. I really hope this isn't true,
but it's looking like it might be.
Thanks,
Jon
"Alan" <dont_mail_me_period@macromedia.com> wrote in message
news:BF4F59EA.24BC58%dont_mail_me_period@macromedia.com...
> is the .swf and the text file you are importing to it at the same folder
> level?
>
> try using a root relative path in the img tag
> (then try it uploaded to the actual site, not doing a local preview)
>
>
| |
| darrel 2005-09-15, 7:30 pm |
| > Flash MX has a text box that is HTML text and should render HTML tags
> (some). <img> is a supported tag.
So, it's like a mini-web browser that actually renders HTML? If so, maybe
also grab the exact same file in Flash, but have it spit out as a text
string. Then you can see what is actually being imported (and if it's
different then the source file).
-Darrel
| |
| dan mode 2005-09-15, 11:24 pm |
| darrel - some tags, yes.
alan - yes, flash will display images in text boxes and some html tags.
jon - yes, go to the flash forum.
"Alan" <dont_mail_me_period@macromedia.com> wrote in message
news:BF4F548A.24BC48%dont_mail_me_period@macromedia.com...
> And- will a FLASH form text box display images or html tags?
>
> don't use flash, but i'm guessing a "textbox" in flash is similar to an
html
> textbox. It's for text, that is why only the text portion is displaying.
>
> check in the Flash newsgroup or Flash webforum.
>
in[color=darkred]
>
| |
| dan mode 2005-09-15, 11:24 pm |
| give me the url to text file, man. I'll get it to work for you.
"Jon Parkhurst" <jonjunk@priiva.net> wrote in message
news:dgcquk$fcv$1@forums.macromedia.com...
> i'm not following "grab teh same file in flash, but have it spit out as a
> text string"
>
> i'm setting an HTMLText.text (the text properties of HTMLText box) to a
> variable whose value is pulled from a text file. The variable is coming
> in - the text part of it, but the image is not. The new image "test.jpg"
is
> sitting in the same place as the movie, was created a bit ago, and it a
b&w
> image (so i don't think it's a formating issue with the image).
>
> Look here:
> http://priiva.net/dev/perusich/index-v.html
>
> Click on the "Click to Play" button in the lower right hand corner of the
> movie. This takes you from "Main" content to "services" content. ALL
text
> that you are seeing is derived from the data-main.txt file. The image
file
> is located in the Services page, and is not showing at all, despite proper
> tags (so far as I know, the day i forget how to put an img tag in...).
>
> j
>
>
>
| |
| Jon Parkhurst 2005-09-16, 7:36 pm |
| i hate you dan. i really thought there was something there. i had a bright
shiny spot in my morning, then i looked down and realized it was nothing but
a cruel trick by a monkey hating man.
i hope your donuts are sour this morning and your ear hair thick.
jon "i'm startin a blog" parkhurst
> darrel - some tags, yes.
>
> alan - yes, flash will display images in text boxes and some html tags.
>
> jon - yes, go to the flash forum.
>
| |
| Jon Parkhurst 2005-09-16, 7:36 pm |
| http://priiva.net/dev/perusich/data-main.txt IM me when you get on this
morning. I'm wondering if it's the simple fact that you can't pull in
images from external text file references. (don't know why it would make a
difference, but it's appearing to do so.
I'll post back if I'm wrong on that url.
thanks mate,
jon
"dan mode" <danswhc@yahooREMOVEME.com> wrote in message
news:dgcugt$k3s$1@forums.macromedia.com...
> give me the url to text file, man. I'll get it to work for you.
| |
| darrel 2005-09-16, 7:36 pm |
|
> i'm not following "grab teh same file in flash, but have it spit out as a
> text string"
Grab the raw file and have it render in the flash file as the raw text (not
rendered HTML). That way you can be sure that it's not doing some weird
reformatting of the HTML as it imports.
-Darrel
| |
| Jon Parkhurst 2005-09-16, 7:36 pm |
| ah, i might try that. i'm not sure it's making much of a difference. or how
the raw text import will treat the <>, but good idea.
"darrel" <notreal@hotmail.com> wrote in message
news:dgekf1$4i0$1@forums.macromedia.com...
>
>
> Grab the raw file and have it render in the flash file as the raw text
> (not
> rendered HTML). That way you can be sure that it's not doing some weird
> reformatting of the HTML as it imports.
>
> -Darrel
>
>
| |
| dan mode 2005-09-16, 7:36 pm |
| darrel is right.
you need to parse the text file first. I'll contact you offlist.
"darrel" <notreal@hotmail.com> wrote in message
news:dgekf1$4i0$1@forums.macromedia.com...
>
a[color=darkred]
>
> Grab the raw file and have it render in the flash file as the raw text
(not
> rendered HTML). That way you can be sure that it's not doing some weird
> reformatting of the HTML as it imports.
>
> -Darrel
>
>
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |