Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Flash Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Flash Discussion Forum Flash design presents a limitless number of possibilities for your sites and designs. Discuss your Flash ideas, questions and issues here.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-22-2005, 10:44 PM
WebProWorld Member
 

Join Date: Jun 2004
Location: USA
Posts: 26
pbrollwitme RepRank 0
Default linking in a flash file

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!
Reply With Quote
  #2 (permalink)  
Old 05-23-2005, 07:20 AM
WebProWorld New Member
 

Join Date: May 2005
Posts: 6
zodex RepRank 0
Default

Hi,

you can use HTML Tags in the text file you are importing to Flash. Flash can recognize them and interprete HTML tags.
Reply With Quote
  #3 (permalink)  
Old 05-23-2005, 04:31 PM
WebProWorld Member
 

Join Date: Jun 2004
Location: USA
Posts: 26
pbrollwitme RepRank 0
Default

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?
Reply With Quote
  #4 (permalink)  
Old 05-23-2005, 04:40 PM
WebProWorld New Member
 

Join Date: May 2005
Posts: 6
zodex RepRank 0
Default

1.Select the dynamic text field in which you want to load the text file.

2.select the "Render Text as HTML" button in the Property Panel for that text field.

That is it!
__________________
www.eztruckpro.com
Easy trucking Software including truck Dispatching and Accounting.
Reply With Quote
  #5 (permalink)  
Old 05-23-2005, 06:11 PM
WebProWorld Member
 

Join Date: Jun 2004
Location: USA
Posts: 26
pbrollwitme RepRank 0
Default

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!
Reply With Quote
  #6 (permalink)  
Old 05-25-2005, 03:02 PM
WebProWorld Member
 

Join Date: Jun 2004
Location: USA
Posts: 26
pbrollwitme RepRank 0
Default

nevermind...got it...thanks!
Reply With Quote
Reply

  WebProWorld > Site Design > Flash Discussion Forum
Tags: , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0