|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Flash Discussion Forum Flash design presents a limitless number of possibilities for your sites and designs. Discuss your Flash ideas, questions and issues here. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I would like to import text into a flash movie and have linkable text within them movie when it is imported, similar to an html file where Check out the Conn-Men would say check out the conn-men and be linkable to the conn-men.org website. I know a normal txt file can't do that. I've tried to use an xml file to import the text, which i have done. I have put the attribute link in the xml file. Now i'd like the text box in which the text is imported to link to that webaddress. Any ideas. I know this is kind of scattered but so is my mind at this point.
Thanks! |
|
|||
|
it doesn't seem to be working. I've tried naming the external file both news.txt and news.html, both with the same text.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> &news = This is a test </body> </html> I've added &news= because when flash imported it without a news variable it was jumbled html code. My actionscript looks as follows: newsText = new LoadVars(); newsText.onLoad = function(success) { if(success) { _root.screen.news.newtext.text = newsText.news; } }; newsText.load("http://www.bartbryant.net/news.html"); i've tried loading both news.html and news.txt I have been succesful in loading the actual text of the html file but it isn't linkable, but rather shows the coding. Any thoughts? |
|
|||
|
i clicked the render as html button and this is what is coming up in the text box...
This is a test </body> </html> my html looks like this: <html> <body> &news=This is a test </body> </html> my actionscript looks like this: stop(); newsText = new LoadVars(); newsText.onLoad = function(success) { if(success) { newtext.text = newsText.news; } }; newsText.load("http://www.bartbryant.net/news.html"); am i doing something wrong?? Is my html right? Should i take out the &news= ? when i did that and took out news in the actionscript, the following appeared in the text box... %3Chtml%3E%0A%3Cbody%3E%0A%3Ca%20href=%22http%3A%2 F%2Fwww%2Econn%2Dmen%2Eorg%22%20target%3D%22%5Fbla nk%22%3EThis%20is%20a%20test%20%3C%2Fa%3E%20%0A%3C %2Fbody%3E%0A%3C%2Fhtml%3E%0A%0A%0A%0A%0A%0A%0A&on Load=%5Btype%20Function%5D I really appreciate all your help in trying to get this to work. Thanks! |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |