Hi All,
How could I add a link within a dynamically loaded text?
Hi All,
How could I add a link within a dynamically loaded text?
Take a look at this tutorial, it will give you an idea on how to add a link to dynamic text.
Thanks electrongeek,
I read the tutorial and realized that it’s really easy to add a link. I also chech out your website and I think the interface of your site is the coolest of all. I hope one day I could build a website as cool as yours. BTW, is there any way to add a link without using add-ons?
Yeah, that tutorial shows you how to add a link, the add-on is just for the sliding effect I think.
Thanks for the comments by the way. =)
ElectronGeek,
I added HTML as the tutorial says. It just display all the tags I added. What’s happening?
Could you post your txt file here so I can see how you set it up?
Hi ElectronGeek,
Here’s the code to load and display text file.
loadText = new loadVars();
loadText.load(“images/mission.txt”);
loadText.load(“images/personnel.txt”);
//creating the loadVarsText function
loadText.onLoad = function() {
dynamicText.text = this.missionl;
};
and attached is the text file without html to be loaded.
Post the text file with the html so I can see what you did wrong.
Thank you again ElectronGeek,
Here is the html text file.
I’m at work right now so I didn’t look through the text file thoroughly, but it seems correct. I’ll look at it more carefully when I get home later.
For now, make sure that your textbox has the “render text as HTML” feature turned on. You can do this by clicking on your textbox to select it, open your properties panel and click on the “render text as HTML” button. Try that and see if it works. I also attached an image to show you where that button is, hopefully it will help. =)
Thanks ElectronGeek,
I’m also at work now and this is what my boss had me to do. Well, I hope I could finish this by the end of this month. I’ll strugling little longer till you get home.
Hi electrongeek,
I still couldnt figure it out. Have you looked my text file yet?
loadText = new loadVars();
loadText.load("images/mission.txt");
loadText.load("images/personnel.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
dynamicText.html = true;
dynamicText.htmlText = this.missionl;
};
First render dynamicText as html true.
Then be sure to tell it to not read .text, but .htmlText. Therefore rendering the incoming html font formatting tags.
KazchiX, you had some errors in your text file and I fixed them. I tested it and it works so try it. =)
Sorry for the wait, I was doing my homework. :-\
ElectronGeek,
So what was wrong with my text? It all looks same to me.
The most noticable problem was that in your URL, you were missing the http:// to your link.
The other minor problem is that you were missing these tags:
<u> </u>
Those create the underline on your link which isn’t really important but it will make your link stand out.
Did you get it to work? I tested it on my comp and the text file works.
Thank you ElectronGeek,
It finally worked. I still have some tiny problem with font tag but was able to add link to my website. You are very kind man. Here’s one last question. Is there any reference that shows which tag I can use and cant?
What part of CA are you at?
Here’s one that is a useful reference for HTML tags for flash.
http://www.macromedia.com/support/flash/ts/documents/htmltext.htm
I’m from orange county and you? =)
Thank you ElectronGeek,
I guess my question is endless. Can dynamic text field be a symbol and still be accessible?
I asked almost same question on different thread so if you are interested or know the answer, please drop a line or two. BTW, I’m from Davis. I work at the animal lab here. I think I’m going to bed now. Thank you so much for today. Hopefully see you tomorrow too.
A dynamic text field could be a symbol and still work, but if you’re planning on tweening it then there could be problems.
:: Copyright KIRUPA 2024 //--