Groups | Blog | Home
all groups > flash actionscript > march 2005 >

flash actionscript : Need help loading text from external source


gma216
3/27/2005 11:03:51 PM
Trying to creating something like this:
http://www.kirupa.com/developer/mx/multiple_dynamictext.htm
but would like to add URL links in the dynamic textbox. Is there any way?
Any help would be much appreciated.
Thanks
greghudson
3/28/2005 2:08:15 AM
On the button the following actionscript:- // return to the opening screen
_root.wawsrb.onRelease = function() { gotoAndPlay('OpeningMenu', 1); }; COLoad
= new LoadVars(); COLoad.load('textfiles/COtext.txt'); COLoad.onLoad =
function(success) { if (success) { unitinfo.html = true; unitinfo.htmlText
= this.COtext; } else { getURL('javascript:alert('Could not load requested
file');'); } }; In the text file I have:- &NSWtext=Australian National
Liver Transplant Unit.<br>Royal Prince Alfred Hospital,<br>Missenden
Road,<br>CAMPERDOWN, New South Wales, 2050, Australia.<br>and<br>The New
Children's Hospital<br>Hawkesbury Road, Westmead, NSW, 2145, Australia<br><font
color='#F35710'><a href='mailto:anltu@cs.nsw.gov.au'>eMail to the A.N.L.T.U.
<font color='#0000CC'>or </a><font color='#F35710'><a
href='http://www.cs.nsw.gov.au/Gastro/LiverTransplant/default.htm'
target='_blank'> A.N.L.T.U. Web Page</a> The page has a map diaplay with
States(country areas) as the buttons and a text area that displays addresses
and contacts for that state. On rollover of the State button the textfile is
loaded using html and the text file displays a coloured link to the URL. Hope
this helps
macron
3/28/2005 5:25:21 PM
just a note - if you set the dynamic text as html, i think it limits your ability to embed font outlines.

AddThis Social Bookmark Button