all groups > flash actionscript > april 2004 >
You're in the

flash actionscript

group:

still problems with image in text variable


still problems with image in text variable cgmirish1
4/1/2004 9:36:57 PM
flash actionscript:
I have tried all the tricks I know and the one that KGALD suggested to no
avail. (thank you!) (if you have the time maybe we can work on this off the
forum. My email is in the code sample below. I'd really appreciate it.) I am
probably doing something stupid, or missing something right in front of my
face. The image is in the library in the image section, and all I need to do
is have the image appear next to the appropriate text. Here is the text and
image source that I am referring to.

text = "<a href=\"mailto:cmcgrath@rochester.rr.com\"><u>Contact Colleen at her
email address.</u></a><a
href=\"http://home.rochester.rr.com/irish/credo/downloads/TFA_report_final.pdf\"
[quoted text, click to view]
pdf'</a>.</u>"+newline+newline+"<img src='raymond.gif'> Margaret Raymond is a
Research Fellow at the Hoover Institution and Director of CREDO. Most recently,
Raymond was the director of the Center for Research on Education Outcomes at
the University of Rochester in New York, which analyzes education reform
efforts around the country."

This text is within a text variable in a movie clip -- included here is a few
more lines of code that I was testing and does work; the mail to and the
download. I'd attach the .fla file but I get an erroe that says that type of
file is not permitted.

Will someone please correct my error. This is driving me crazy. My email
address is the one in the code so if you want to mail me off the forum, that
would be good also.
thanks
Re: still problems with image in text variable DangerAhead
4/1/2004 10:38:21 PM
if the text field is HTML then don't use "newline" or "\n" instead use "<br>".
use single quotes inside the <a> tags instead of double quotes.

text = "<a href='mailto:cmcgrath@rochester.rr.com'><u>Contact Colleen at her
email address.</u></a><a
href='http://home.rochester.rr.com/irish/credo/downloads/TFA_report_final.pdf'><
u>This is a link to the pdf</u></a><br><br><img src='raymond.gif'> Margaret
Raymond is a Research Fellow at the Hoover Institution and Director of CREDO.
Most recently, Raymond was the director of the Center for Research on Education
Outcomes at the University of Rochester in New York, which analyzes education
reform efforts around the country."
Re: still problems with image in text variable cgmirish1
4/2/2004 1:36:23 AM
No go -- still get lots of syntax errors. I think the best thing is if someone
would actually take a look at my file -- maybe I'm not explaining this just
right, but I am not using regular gml text fields. This area in within a text
variable. I am essentially a new user, and would appreciate a little hand
holding on this one.
thanks
Re: still problems with image in text variable Laiverd.COM
4/2/2004 10:51:02 AM
First of all (and in that respect nothing has changed); one can only load
(non-progressive) jpg and swf files at runtime using the IMG tag. gif is
still not possible. Also remember that the path to the image file has to
start from the HTML file the swf is embedded into.. Here's a simple example
of loading an external swf file into a textfield; works the same for a
image:
http://home.hccnet.nl/john.mulder/flash/swf_inside_textfield.zip

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

Re: still problems with image in text variable Laiverd.COM
4/3/2004 1:18:48 AM
Colleen?? If you are the one having originated this post and who send me a
mail, please send one again using a different emailadress, as my replies
keep getting bounced by your mailservers spamblocker.

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

Re: still problems with image in text variable Laiverd.COM
4/3/2004 1:22:53 AM
By the way; just read your initial post again, and I think the solution may
be the factthat you have the image in your library. If you want to keep it
there, just convert it to a movieclip, give that movieclip a linkage ID, for
instance 'myImage', and then in your HTML use <IMG src='myImage'>. If you
can keep it outside, just convert it to a jpg file and call it as you do now
(.gif becoming .jpg of course). Oh one more thing: the path to the file
should start from the HTML the swf is embedded in.

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

AddThis Social Bookmark Button