Adding Hyperlinks To Text Inside Scrolling Text Box
I'd like to add a few links to the text inside a scrolling text box. Any help would be greatly appreciated. Thanks!
[Edit Moved to Actionscript! -SJT ]
FlashKit > Flash Help > Flash ActionScript
Posted on: 01-30-2003, 03:50 PM
View Complete Forum Thread with Replies
Sponsored Links:
Hyperlinks In A Scrolling Dynamic Text Box?
Hi,
I am trying to create a links page using flash, but cannot work out how to create a hyperlink in a dynamic text box. For a better clue of what I am doing look at www.nickwalkley.co.uk and click 'links'.
I think I either need to code the text as HTML, in which case I am having problems writing it, or apply a CSS file to the text but I can't figure out the code for that.
Your help would be appreciated.
Many thanks,
Nick
View Replies !
View Related
Hyperlinks Within Scrolling Text Fields
I have flash version 5 and have just added a scrolling text box to my project and need each line of text within the scrolling text field needs to link to different iframes within the html page it sits in. So I suppose simply my question is: how do I make text within scrolling text fields into hyperlinks?
If anyone could help with any hints, it would be great as I am sure it must be simply but I do not know how to go about doing it?
thanks
james
View Replies !
View Related
Scrolling Text Inside Text Fields?
Hi, i work in a technology company and require if it possible to have scrolling text animate within a text field. So you would'nt actualy animate the field itself only the text would scroll up like movie credits then repeat itself on a loop inside. Also the text that will be going in will be external and is dynamic, so you could get 1 result going in, but then 4 at another time depending on the results.
So idealy it would all be in one frame and be much like a component?
Thanks
View Replies !
View Related
DuplicateMC + Adding Text Inside MC
Hi! I have been stuck with this code for som hours now and I can't really get the hang of it.
I believe the problem lies in the 'xmlMC[i].foliotext.htmlText += "..."'
Please take a look
Code:
myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(success) {
if (success) {
child1 = this.firstChild.childNodes;
for (var i=0; i<child1.length; i++) {
link=child1[i].attributes.weburl;
title=child1[i].attributes.hdline;
date=child1[i].attributes.date;
desc=child1[i];
child2 = child1[i].childNodes;
duplicateMovieClip ("xmlMC0", "xmlMC"+i, i);
_root["xmlMC"+i]._y = i*50;
xmlMC[i].foliotext.htmlText += "<a href=""+link+"" target="_blank">"+title+" </a>"+date+"
"+desc;
for (var ii=0; ii<child2.length; ii++) {
images=child2[ii].attributes.url;
xmlMC[i].foliotext.htmlText += "<img src=""+images+"">
";
}
xmlMC[i].foliotext.htmlText += "
";
}
}
else {
xmlMC0.foliotext.htmlText= "xml loading error. Please try again later.";
}
};
myXML.load("xml/index.xml");
stop();
Ps. Don't mind that every textfield will get the same text. Dealing with that later... Ds.
View Replies !
View Related
DuplicateMC + Adding Text Inside MC
Hi! I have been stuck with this code for som hours now and I can't really get the hang of it.
It writes out nothing to my textfields. The movieclip is named "xmlMC0" and the textfield "foliotext".
I believe the problem lies in the 'xmlMC[i].foliotext.htmlText += "..."' Please take a look
Code:
myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(success) {
if (success) {
child1 = this.firstChild.childNodes;
for (var i=0; i<child1.length; i++) {
link=child1[i].attributes.weburl;
title=child1[i].attributes.hdline;
date=child1[i].attributes.date;
desc=child1[i];
child2 = child1[i].childNodes;
duplicateMovieClip ("xmlMC0", "xmlMC"+i, i);
_root["xmlMC"+i]._y = i*50;
xmlMC[i].foliotext.htmlText += "<a href=""+link+"" target="_blank">"+title+" </a>"+date+"
"+desc;
for (var ii=0; ii<child2.length; ii++) {
images=child2[ii].attributes.url;
xmlMC[i].foliotext.htmlText += "<img src=""+images+"">
";
}
xmlMC[i].foliotext.htmlText += "
";
}
}
else {
xmlMC0.foliotext.htmlText= "xml loading error. Please try again later.";
}
};
myXML.load("xml/index.xml");
stop();
Ps. Don't mind that every textfield will get the same text. Dealing with that later... Ds.
View Replies !
View Related
Adding A Dynamic Text Inside A Button
I have imported a Button from the common Library onto the stage, specifically it's under Buttons->Ovals-Ovals Buttons(blue), I edit it, added a layer on top of other layers, added an instance of dynamic text in this layer. this instance has a name myLabel.
now from the main timeline, i have the following actionscript:
trace(b.myLabel); //b is the instance name of the oval button
it is undefined.
however when I do:
for(var i in b){
trace([i,b[i]]);
}
the following is printed:
tabIndex,undefined
getDepth,[type Function]
enabled,true
useHandCursor,true
instance2,_level0.b.instance2
instance1,_level0.b.instance1
specifically instance2 correspond to the dynamic text which I gave a name "myLabel".
what's going on?? how can I use the instance name myLabel to reference the dynamic text correctly? I do not want to use b.instance2 because this name is obviously dynamically generated by flash. But I don't understand why flash is not using the instance name that I gave to the dynamic text.
please help!
see this sample file for a test run:
http://www.box.net/public/kpx9c11beh
thanks
View Replies !
View Related
Adding Xml To Scrolling Text Window
The problem is, I used this tutorial to make my scroll window. It seems to coding method isn't the best way to do it, as it makes it a pain in the ass to update. The guy didn't even put it in as an actionscript text, I would have to open up the text layer every time.
I'm trying to modify it, but I'm really new at flash and kinda stuck..
heres the tutorial (you can view the working example here):
http://www.stilva.com/smooth-scrollbar/
I think its more of a layering issue thats causing me problems...
anyways, i want to load my text externally into the text thats inside the mc txthold which is inside the container. How would I approach this? Please use the link to view the sample and see the source info.
View Replies !
View Related
Scrolling Text Inside A MC
attatched to this message is an fla that i got off of flashkit. it's a method of scrolling text with pictures that i want to use in a project. i want to place it inside a movie clip, which will go onto the main timeline. When i attempt to test the movie in flashplayer and try to use the scrolling buttons i get an output window that pops up and says...
Target not found: Target="/scrollingtext" Base="_level0.instance6" over and over again....can anyone tell me what i'm doin wrong?
View Replies !
View Related
Scrolling Text - Inside A Box.
Hello, my name is Jason and I have just begun to work with flash (since 2 years ago).
I am having a problem I just cannot figure out. I want to create a box with the alpha lowered ( half transparent ). Inside this box I want to have text, the text being linked to a file that I can update and it will update itself on the server. There are a couple of problems I am having with this, they include;
1) Getting a scroll bar onto the box so viewer's can read the full message I am intending to send to them.
2) Linking the file to the project.
Can anyone please help me...? If I am unclear please respond asking for more specific details and I can fill you in....
Thank you for your help;
Jasonrocks72
View Replies !
View Related
Loading Text Files With Hyperlinks Into Dynamic Text Field
I am using Flash 8 and loading external text files in dynamic text fields on my webage. These texts contain html links (<a href="page.html" target="_blank">Click Here</a> and I have "render as HTML" on and "selectable" off in my dynamic text field. Also, I am loading a CSS file. Not only do I not have a hand cursor, but I do not even have any of the text from that piece of html code down. What is going on with this? Please respond asap, as I have been struggling with this for a day now. Here is the Actionscript for loading the CSS:
var flash_css = new TextField.StyleSheet();
flash_css.load("styles.css");
flash_css.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.styleSheet = flash_css;
} else {
trace("Error loading CSS file.");
}
};
var zloc_lv:LoadVars = new LoadVars();
zloc_lv.load("zloc.txt");
zloc_lv.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.text = this.content;
} else {
trace("unable to load text file.");
}
};
zloc_txt.html = true;
zloc_txt.editable = false;
_global.styles.TextArea.setStyle("backgroundColor" , "transparent");
_global.styles.TextArea.setStyle("border styles" , "solid");
Here is a sample of the text file code:
&content=<span class="headline">Northwest Arkansas Locations</span>
121 Main St.
Russellville, AK 77801
(626) 111-1111<br />
<html><a href="
View Replies !
View Related
Loading Text Files With Hyperlinks Into Dynamic Text Field
Describes the mood or content of the topic posted 11-22-06 04:41 PM
I am using Flash 8 and loading external text files in dynamic text fields on my webage. These texts contain html links (<a href="page.html" target="_blank">Click Here</a> and I have "render as HTML" on and "selectable" off in my dynamic text field. Also, I am loading a CSS file. Not only do I not have a hand cursor, but I do not even have any of the text from that piece of html code down. What is going on with this? Please respond asap, as I have been struggling with this for a day now. Here is the Actionscript for loading the CSS:
var flash_css = new TextField.StyleSheet();
flash_css.load("styles.css");
flash_css.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.styleSheet = flash_css;
} else {
trace("Error loading CSS file.");
}
};
var zloc_lv:LoadVars = new LoadVars();
zloc_lv.load("zloc.txt");
zloc_lv.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.text = this.content;
} else {
trace("unable to load text file.");
}
};
zloc_txt.html = true;
zloc_txt.editable = false;
_global.styles.TextArea.setStyle("backgroundColor" , "transparent");
_global.styles.TextArea.setStyle("border styles" , "solid");
Here is a sample of the text file code:
&content=<span class="headline">Northwest Arkansas Locations</span>
121 Main St.
Russellville, AK 77801
(626) 111-1111<br />
<html><a href="
View Replies !
View Related
Loading Text Files With Hyperlinks Into Dynamic Text Field
Describes the mood or content of the topic posted 11-22-06 04:41 PM
I am using Flash 8 and loading external text files in dynamic text fields on my webage. These texts contain html links (<a href="page.html" target="_blank">Click Here</a> and I have "render as HTML" on and "selectable" off in my dynamic text field. Also, I am loading a CSS file. Not only do I not have a hand cursor, but I do not even have any of the text from that piece of html code down. What is going on with this? Please respond asap, as I have been struggling with this for a day now. Here is the Actionscript for loading the CSS:
var flash_css = new TextField.StyleSheet();
flash_css.load("styles.css");
flash_css.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.styleSheet = flash_css;
} else {
trace("Error loading CSS file.");
}
};
var zloc_lv:LoadVars = new LoadVars();
zloc_lv.load("zloc.txt");
zloc_lv.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.text = this.content;
} else {
trace("unable to load text file.");
}
};
zloc_txt.html = true;
zloc_txt.editable = false;
_global.styles.TextArea.setStyle("backgroundColor" , "transparent");
_global.styles.TextArea.setStyle("border styles" , "solid");
Here is a sample of the text file code:
&content=<span class="headline">Northwest Arkansas Locations</span>
121 Main St.
Russellville, AK 77801
(626) 111-1111<br />
<html><a href="
View Replies !
View Related
Help With Scrolling Text File Inside Swf.
Hello, I am being brought in on a project developed by someone else. Everything I have learned tells me to make an action script layer that contains all the action script but this person has not done that. It appears the script is on each component. Anyway, LSS the Flash calls a text file that displays inside the Flash and it is supposed to scroll but the problem is that if I add to the text file the scroll does not extend. It stops and you can't read the new content.
Edited: 10/16/2008 at 01:02:53 PM by Villageidiot2
View Replies !
View Related
Scrolling Text Box - Adding Images And Various Font Effects
Hello everyone
I have used several scrolling dynamic text boxes on the following site:
http://www.cocoabeachdentist.com/nawrocki_site.html
I would like to make some of the font bolded and add various font colors but when I do this, it makes those changes to all of the dynamic text not just the specific words I chose.
Also, I would like to add a few logo's to the dynamic text box but when I do this, the image does not scroll with the rest of the text.
Does anyone out there have some pointers or guidance on these issues?
Thank you in advance for your help!!
Denise
View Replies !
View Related
Getting Text Information With Hyperlinks Into Dynamic Text In Flash
I have Flash 8.
Here's what I need to do: Get content from an outside source...
http://cms.nichedirectories.com:8080/opencms/opencms/Pennbrook/news.php
to display, WITH hyperlinks, in a flash dynamic text box.
I'm very confused, very lost, and in a bit of a hurry. I don't want to have to go around the issue by breaking the page into three separate flash files, just to make sure the client can access JUST the news file, remotely, and it display in the news area.
Please help?
View Replies !
View Related
Dynamic Scrolling Text Code Inside
I have been working on this code for a while and finally got it working the way I want it and thought it would be nice to share it.
You need a MC on screen with a textfield inside.
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var keyWords:Array = Array("Growth", "Development", "Expansion", "Skills", "Training");
function randRange(min:Number, max:Number):Number {
var randomNum:Number = Math.floor(Math.random()*(max-min+1))+min;
return randomNum;
}
var n:Number = randRange(0, keyWords.length-1);
floatingText.arrayTxt.text = keyWords[n];
var floatingTextAnim:Tween = new Tween(floatingText, "_x", Regular.easeInOut, -300, Stage.width, 20, true);
floatingTextAnim.onMotionFinished = function() {
n = randRange(0, keyWords.length-1);
floatingText.arrayTxt.text = keyWords[n];
floatingText._y = (Math.random(Stage.width)*200)*2;
floatingTextAnim.yoyo();
};
Hope this helps someone out there.
View Replies !
View Related
Scrolling Text Inside Movie Clip
I'm having a problem with using scrolling text inside of movie clips. A series of five buttons will make visible it's own movie clip when pushed. Each movie clip has a masked text field and an up and down button. The problem is that I'll get one movie clip to pop-up and work, but then the next one I open will either load with the text out of place or the buttons won't work. I'm a beginner and at a loss.
Can anyone help? Let me know if you need more info. Thanks.
View Replies !
View Related
Scrolling Masked Mc With Dynamic Text Inside
On this site (bottom right) are two text areas that scroll.. firstly how did they manage to get the scrolling text so clean like "dynamic text" ? and secondly how did they get it to do the constant scroll effect (as in rollOver and it starts and goes all the way to the bottom)?
http://www.thepeoplesbureau.com/
the first bit i cant work out.. because the text looks like dynamic text (arial), but the scrolling plain has buttons in.. so that says to me its a MC that they're scrolling.. but how did they frame it? a mask? i thought you couldn't mask dynamic text? or is it a pixel font? if it is a pixel font how can i do it with out a pixel font and with arial (dynamic text style)?
hope that all makes sense
View Replies !
View Related
Scrolling Masked Mc With Dynamic Text Inside
On this site (bottom right) are two text areas that scroll.. firstly how did they manage to get the scrolling text so clean like "dynamic text" ? and secondly how did they get it to do the constant scroll effect (as in rollOver and it starts and goes all the way to the bottom)?
http://www.thepeoplesbureau.com/
the first bit i cant work out.. because the text looks like dynamic text (arial), but the scrolling plain has buttons in.. so that says to me its a MC that they're scrolling.. but how did they frame it? a mask? i thought you couldn't mask dynamic text? or is it a pixel font? if it is a pixel font how can i do it with out a pixel font and with arial (dynamic text style)?
hope that all makes sense
View Replies !
View Related
A Scrolling HTML File Inside Of .swf Text Area
Can somebody please help me. I want to load an HTML file inside of a text box w/ a scroll bar.
Is it possible in AS3? Is this simply under loading external file into text area?
How can I get this to work?
Any examples, code, tutorials, or links would be greatly appreciated?
I am struggling to get this effect ( a .swf file that has a scrolling text area which looks like HTML (text, images, and links) scrolling, with selectable text.
Edited: 08/05/2008 at 12:31:42 AM by jntSpecialty
View Replies !
View Related
How To Make: Vertical Scrolling Menu With Text Links Or Buttons Inside?
Hi,
I need to learn how to create a scrollable text field in Flash MX professional with scrolling links (or buttons), similar to this: http://www.macromedia.com/cfusion/kn...fm?id=tn_16142
The text inside the scroll needs to be linkable to url’s or other .swf or html files.
Please help. It’s like a vertical scrolling menu with text links or buttons inside.
Can you please help me out with a link on the web or tutorial so I can learn to do this.
Bye,
Dan
Email: gupi73@hotmail.com
View Replies !
View Related
Hyperlinks Or Text Help Plz
I was wondering if there was a way to make text within a flash movie link to another part of a flash movie? I have found away to use a hyperlink to go from a flash movie to a webpage but is there another way to move from different points on the timeline or even just bring up a new flash movie over the top of the original???
any help would be great
thanks
View Replies !
View Related
Hyperlinks Or Text Help Plz
I was wondering if there was a way to make text within a flash movie link to another part of a flash movie? I have found away to use a hyperlink to go from a flash movie to a webpage but is there another way to move from different points on the timeline or even just bring up a new flash movie over the top of the original???
any help would be great
thanks
View Replies !
View Related
Hyperlinks Within Text Files
Im importing a variable from wihtin a text file:
loadText = new loadVars();
loadText.load("whoweare.txt");
// creating the loadVarsText function
loadText.onLoad = function() {
content.text = this.introtext;
};
and i have the following in the text file:
introtext=Based in the <a href="test.htm">UK</a>,
I clearly want the 'UK' to be a hyperlink but instead the entire string appears as is wihtout the brackets.
How do I get hyperlinks to work here?
View Replies !
View Related
Add Hyperlinks To Db-derived Text
Hello,
I've gotten a lot of good tips from kirupa so here goes:
I am working on an mp3 player that pulls song titles from a database, using php and MXPRO2004.
I am able to display the song titles in a scrolling pane that contains a duplicating text box.
I would like to learn how to make a link for each song that would load an mp3 into Flash and play it, depending on the song title that is clicked.
The songs would be named 1.mp3, 2.mp3 etc, and would be kept in a specific folder. This folder would be based upon the album's catalog number ( /audio/mp3/catalog_id/1.mp3 ). The catalog_id would be loaded from the page url and inserted into the link. The catalog_id would be a number, like 6528.
The mp3 file names (1.mp3 etc) would then append themselves to the link for the corresponding title.
Can someone point out a thread that talks about this or give me a few hints? Thanks alot!
The code that I have so far, which loads the titles::
myLoad = new LoadVars();
myLoad.path = this;
//this is the group's name::
myLoad.musical_group_id = _root.musical_group_id;
//this is the album name::
myLoad.catalog_id = _root.catalog_id;
myLoad.onLoad = function(success)
{
if (success) {
this.path.pane_sp.boundingBox_mc._visible = false;
this.path.pane_sp.setScrollContent("emptyClip");
var mc = this.path.pane_sp.getScrollContent();
for (var i = 0; i < Number(this.totals); i++) {
var item = new Object();
item.title = this["title" + i];
item._y = i * 25;
mc.attachMovie("singleRecord", "record" + i, i, item);
}
this.path.pane_sp.refreshPane();
} else {
trace("PHP PAGE NOT FOUND");
}
};
myLoad.SendAndLoad("flash_songs.php", myLoad, "GET");
View Replies !
View Related
Hyperlinks In A Text Scroller
I've just done this tutorial:
http://www.kirupa.com/developer/mx/textscroller.htm
Here's my question...
Can you create hyperlinks inside a dynamic text box? I really hope the answer is yes (but I fear the answer's no).
Thanks in advance.
James
View Replies !
View Related
Dynamic Text Hyperlinks
I have a section of dynamic text within a box with a scrollbar. I have an email address at the end of the text that I would like to hyperlink. However, this does not seem to be possible with dynamic text.
Does anyone have any suggestions?
View Replies !
View Related
Add Hyperlinks To Db-derived Text
Hello,
I've gotten a lot of good tips from kirupa so here goes:
I am working on an mp3 player that pulls song titles from a database, using php and MXPRO2004.
I am able to display the song titles in a scrolling pane that contains a duplicating text box.
I would like to learn how to make a link for each song that would load an mp3 into Flash and play it, depending on the song title that is clicked.
The songs would be named 1.mp3, 2.mp3 etc, and would be kept in a specific folder. This folder would be based upon the album's catalog number ( /audio/mp3/catalog_id/1.mp3 ). The catalog_id would be loaded from the page url and inserted into the link. The catalog_id would be a number, like 6528.
The mp3 file names (1.mp3 etc) would then append themselves to the link for the corresponding title.
Can someone point out a thread that talks about this or give me a few hints? Thanks alot!
The code that I have so far, which loads the titles::
myLoad = new LoadVars();
myLoad.path = this;
//this is the group's name::
myLoad.musical_group_id = _root.musical_group_id;
//this is the album name::
myLoad.catalog_id = _root.catalog_id;
myLoad.onLoad = function(success)
{
if (success) {
this.path.pane_sp.boundingBox_mc._visible = false;
this.path.pane_sp.setScrollContent("emptyClip");
var mc = this.path.pane_sp.getScrollContent();
for (var i = 0; i < Number(this.totals); i++) {
var item = new Object();
item.title = this["title" + i];
item._y = i * 25;
mc.attachMovie("singleRecord", "record" + i, i, item);
}
this.path.pane_sp.refreshPane();
} else {
trace("PHP PAGE NOT FOUND");
}
};
myLoad.SendAndLoad("flash_songs.php", myLoad, "GET");
View Replies !
View Related
Hyperlinks In A Text Scroller
I've just done this tutorial:
http://www.kirupa.com/developer/mx/textscroller.htm
Here's my question...
Can you create hyperlinks inside a dynamic text box? I really hope the answer is yes (but I fear the answer's no).
Thanks in advance.
James
View Replies !
View Related
Dynamic Text Fields As Hyperlinks
Hi all
I am making a website that is composed of several Modules and Sections etc
At the top of each page I want to show the users current location
e.g Product1 * Module2 * Topic 4
The above will be dynamic text based on the current location
e.g Safety * Induction * Facts
How can i make each word a link but still display the whole location without unneccessary gaps
For example if i put an invisible button ontop of each location element - i wouldnt know how wide each button should be as the words will vary!
Any help much appreciated
Thanks
Paul
View Replies !
View Related
Text Hyperlinks To Html Docs.
I would like to create text links in flash to external sites that open a new browser window. I would also like to create links that open up a mail window. I have tried using the "URL" field in the character window but it doesn't seem to work once I open it up in a browser. It puts the little dotted line under the text in flash but nothing happens in the browser. Any advice?
Thanks again oh knowledgable ones.
spud
View Replies !
View Related
Creating Hyperlinks In A Dynamic Text Box
Hello there,
I am stuck trying to create a hyperlink in a dynamic text box. The text box's data is loaded from a separate text file. I've tried setting the box to read HTML, but that didn't seem to do any good. What I want to be able to do is list the name of a website & allow the user to click this, & then for the website to open in a new browser window. I thought if I added this in the text file I'm loading, it might work:
"A HREF="http://www.site.com" target="_blank">Title</A"
But it didn't, & nothing shows in the text box at all. If anyone could give me some pointers they would be much appreciated. Thanks very much & have a good day
Michael.
PS Sorry about the somewhat mashed up HTML, I'm not sure how to display the line of code here without it actually working!
View Replies !
View Related
Hyperlinks In Dynamic Text Files?
how can i do this right now im generating dynamic text files in my flash movie i need to know how i can put hyperlinks in my textfiles
or can this even be acheived if it can can someone out there help
me on this matter i would greatly appreciate thnx. you can also see the attachment for reference
View Replies !
View Related
Dynamically Loading Text - With Hyperlinks
Does anybody know if this is possible?
I have a text file i am using to dynamically load text but i want some of the text to link to an external url. Does anybody know of any possible way to do this or any tutorials there might be?
Please respond even if this is not possible
Yours,
Matt
View Replies !
View Related
Hyperlinks In External Text Files
Is there anyway at all to have flash automaticaly turn URL's in externaly (or for that matter any) loaded text into hyperlinks?
Also, can i get flash to load the "&" symbol? Whenever im loading text from a .txt file into flash the text breaks when flash encounters "&".
JAK
View Replies !
View Related
|