XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

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:
Dell PowerEdge Servers
  #1  
Old February 28th, 2008, 08:43 AM
ikkehier ikkehier is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 3 ikkehier User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 24 sec
Reputation Power: 0
Flash getting input from XML how to add hyperlink?

Hi,

I have been searching all over, but being a newby I can't find or understand how to do the following.

I have a flash file that get's input from an xml file.
In this file I would like to add an hyperlink to another page.

Tried a lot of solutions on the web, but I think I don't understand.

here's the xml, I would like click here in <article> to be a hyperlink to an asp file.

<newsitem id="2">
<title>Latest News</title>
<date>27.02.2008</date>
<article>Here is the latest news. To watch the movie, click here.
</article>

Anyone willing to help?
Thx

Reply With Quote
  #2  
Old February 28th, 2008, 11:15 AM
jkmyoung jkmyoung is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 474 jkmyoung User rank is Sergeant Major (2000 - 5000 Reputation Level)jkmyoung User rank is Sergeant Major (2000 - 5000 Reputation Level)jkmyoung User rank is Sergeant Major (2000 - 5000 Reputation Level)jkmyoung User rank is Sergeant Major (2000 - 5000 Reputation Level)jkmyoung User rank is Sergeant Major (2000 - 5000 Reputation Level)jkmyoung User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 18 m 31 sec
Reputation Power: 52
Either you'd need an anchor <a> tag or a <link> tag. Not sure how it's done in Flash

eg. <a href="www.google.com">click here</a>

Reply With Quote
  #3  
Old March 19th, 2008, 02:57 PM
ikkehier ikkehier is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 3 ikkehier User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 24 sec
Reputation Power: 0
Well yes, that works in html of course or asp, but how about in xml ...

I got this far, but still no link showing up... anyone?

<article>text of article goes here <![CDATA[<a href="(www.etc)" target="_blank">Klick here to visit the website</a>]]>
</article>


thx

Reply With Quote
  #4  
Old March 19th, 2008, 03:31 PM
jkmyoung jkmyoung is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 474 jkmyoung User rank is Sergeant Major (2000 - 5000 Reputation Level)jkmyoung User rank is Sergeant Major (2000 - 5000 Reputation Level)jkmyoung User rank is Sergeant Major (2000 - 5000 Reputation Level)jkmyoung User rank is Sergeant Major (2000 - 5000 Reputation Level)jkmyoung User rank is Sergeant Major (2000 - 5000 Reputation Level)jkmyoung User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 18 m 31 sec
Reputation Power: 52
Possibly
--
<node> http://www.something.com</node>

btn.onRelease=function(){
getURL(node)
}
--
OR
<node><![CDATA[<a href="<A href="http://www.something.com">click here</a>]]></node>
setting your text box to interpret CDATA as html.

Reply With Quote
  #5  
Old March 24th, 2008, 11:07 AM
ikkehier ikkehier is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 3 ikkehier User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 24 sec
Reputation Power: 0
Only thing that at least makes text show up is:

<article><![CDATA[textexttexttexttext<a href="link here" target="_blank">Click to visit the website</a>]]>
</article>

BUT this only makes the whole line of text visible and still no link, anyone?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Flash getting input from XML how to add hyperlink?


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 6 hosted by Hostway