Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 11th, 2003, 06:02 AM
coderkind coderkind is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 6 coderkind User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Importing HTML-embedded XML into Flash

Hi,

does anyone know if it's possible to have HTML within a XML document, and then get successfully imported into Flash?

For instance, one of the XML nodes to have a hyperlink to another website...if Flash is parsing the XML, wouldn't it treat the hyperlink tag as another node?

Are there any good tutorials or online guides regarding this subject?

Thanks in advance to anyone who can help with this

Reply With Quote
  #2  
Old February 11th, 2003, 10:04 AM
bret bret is offline
flash junkie
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: CO, USA
Posts: 172 bret User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 38 sec
Reputation Power: 6
Send a message via Yahoo to bret
hey,

why would you need to put the hyperlink in the XML? couldn't you just name your node <link> and then tell flash to make a hyperlink out of that node? (by making your text field html enabled and just writing the <a> tag in flash?

bret

Reply With Quote
  #3  
Old February 11th, 2003, 10:29 AM
coderkind coderkind is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 6 coderkind User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
...yes...that may just work...thanks!

Reply With Quote
  #4  
Old February 12th, 2003, 09:06 AM
Eoril Eoril is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 1 Eoril User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question htmlText and XML : Not that simple...

Actually I have the same need but for different reasons...


I have to encode in unicode a russian text, title and lists.
Thus I have a text in Russian that can't be written directly in flash which does not understand Russian by himself.

However an encoded XML does the trick.

Point is how do you tell flash to start a new line while not using the <br> tag?

if you start new lines in XML that would be interpreted by flash as a two line break. And if you :
<![CDATA[ blablabla ]]>
then flash interpret the <br> as plain text even if you load the file as htmlTxt...

You are my last hope before I code a subnode list with a while procedure under flash that would recreate the formated text list.


Thanks for helping

Reply With Quote
  #5  
Old February 12th, 2003, 11:15 AM
bret bret is offline
flash junkie
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: CO, USA
Posts: 172 bret User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 38 sec
Reputation Power: 6
Send a message via Yahoo to bret
well, flash stores new lines using the escape symbol \r. you might try throwing those in where you want line breaks...

bret

Reply With Quote
  #6  
Old August 27th, 2003, 02:31 PM
flydaddy flydaddy is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 1 flydaddy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I've done this

There is a way to parse regular html tags through xml into flash 6. I had to do this for this project: http://www.industrialartistmanagement.com - a dynamic flash site I put together (with the help of a great asp guy).

Here's how we did it:

First all html tags need to be converted to escape text - so "<B>" becomes "<B>". This is because xml uses the "<>" characters to define nodes, so any "<" has to be converted to "<" and ">" becomes ">".

Then in flash you need a dummy text object that is outside the viewing area. Let's call this text object "dummyText".

When parsing the xml in flash you do this:
dummyText.htmlText=currentNode.firstChild.toString();

Let's say the html textfield you want to display is defined by a variable called "mytext" - then you set mytext like this:
mytext=dummyText.text;

going from dummyText.htmltext to dummyText.text actually converts the "<" and ">" characters back to "<" and ">" which then displays properly in your html textfield.

Yes my head was cracking over this nut for a while. Feel free to ask me for clarification...

peace
-flydaddy

Reply With Quote
  #7  
Old September 24th, 2003, 02:45 PM
red_deamon red_deamon is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 1 red_deamon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I know this was a little while ago but I'm trying to use html within an xml doc that's being read into Flash. When you first put it into a "dummy" text field with all of the tags escaped, did you assign the real text field to the dummy text field in the same frame or did you set it to the dummy text in one frame and then to the "real" html field in the following frame?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Importing HTML-embedded XML into Flash


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway