ActionScript 1/2 :: Link A Url In A Text Box (on Stage) To It?
Nov 5, 2009How to link a url in a text box (on stage) to a actionscript? How to achieve this?
View 9 RepliesHow to link a url in a text box (on stage) to a actionscript? How to achieve this?
View 9 RepliesI dowloaded and played with the following scroller on this site... [URL] I see where the text is under Actions but I'm wondering if I can input hyperlinks and email links as well or will I only be able to use this with plain text. If formatting and links are allowed, how can I input the text to show as a link. Sorry, I don't know much about flash and just trying to make a simple text box with scrolling capability that will allow hyperlinks, bold, etc...
View 3 RepliesI have an AS3 flash movie and each page is a new frame. On my pages are dynamic scrollable text boxes that I created with the text tool. I would like to be able to make a piece of text a link (ex. click here for prices) so that it will direct the view to another page (label). I cannot figure out how to do so.
View 2 RepliesI'm pulling news information from an XML file. The root node is "article", the child nodes are (for example) "date", "title", "caption", "copy", "link", etc.
For each article, two new buttons are added to the stage.
1st button - on rollover, display the date & title for that article in a small movie clip w/ dynamic text fields.
2nd button - on click, display ALL nodes listed for that article in a large movie clip updating only the dyn text fields
What are some methods I can use to automate the process? That is, to avoid writing an if/else statement and some code to filter the XML properly for each and every article?
I need to somehow connect the XML content and the movie clips I add to the stage dynamically.
Is it common to write two ID attributes for each XML node? Unfortunately, each article isn't in sequence and older articles could be added even amongst the new ones... so a better "ID" would be the date of the article. Would that screw up automation?
I created "symbol1" movie clip. And I have dynamic text "myscore" on the main stage.
I have this code inside of "symbol1".
mybutton.addEventListener(MouseEvent.CLICK, b1);
function b1(event:MouseEvent):void {
myscore.text = "30";
}
And it gives me this error. (1120: Access of undefined property myscore.)
It works only when text and actionscript inside of the same symbol. I tried like this root.myscore.text = "30"; but it still doesn't work.
I'm having a little trouble using URL links in text. If I select a part of the text and give it a URL link (I'm using mailto: links here), strange things are happening to all the text in that text box at runtime in some cases the leading changes, other times some or all of the text disappears. But it only happens at runtime, so I have no way of knowing if or how to compensate. And simply removing the offending link or linked text doesn't fix the problem once the link has been created the only way to fix it is to create a new text box with no links.
View 4 RepliesI'm using this tutorial on drop down menus: http:[url]....how I can link the buttons to video clips within the stage...
View 1 RepliesHow to link the movieclip present in stage with the button which present inside another movieclip
View 3 RepliesI have a dynamic textfield called neighName on my Flash stage. I also have a movieclip that I call a region on my stage. When I mouseover the region, I want a word to display in a little popup *and* I want some text to display in my textfield. I have an external .as file for handling the region. I can make the code "see" my region, but I can't seem to make it see my textfield, although no errors are being thrown.
View 1 RepliesIn my movie I now load external text. But I want words in the external text to trigger my swf's. How do I do it? Since working on a mac I use BBEdit. Should I use html?
View 1 RepliesI found this awsome tutorial to create an animated button on this page [URL]. Everything works fine, but now I want to link the button to a frame with text in it called "text" in scene 1. So I tried it instead of
[Code]...
I'm teaching myself ActionScript and the book I'm reading just got into input text capabilities. The book shows me how to link input text to a variable and output that text to the output window using trace. My question is: how can I display the text that the user input onto the actual movie. For example... if I wanted the visitor to type their name into the input text box and click Submit and then a phrase shows up with their name such as "Hold on Name, my site will be done soon." How do I reference that variable and have it actually display in my movie?
View 5 RepliesI play around with templates and try to change them. A friend of mine has this banner and I am stumped on it. All it is, is making text into links. I have never had a problem with that before. I have CS4 but save the file as CS3. Because that is what he has. What my problem is the text at the upper right. Where there is 3 lines of text. I have been trying to add a link to each one and it is not working. In the actions script, this is what is says. I know I need to put the get(url) in there but everytime I do it, it is not correct. I am a n00b, I admit it.[URL]
View 1 RepliesI am wondering how to "link" any sort of text file (.txt or .doc) to a dynamic text box where once the swf file is played the text shows up. In all of the examples I have seen on here you have had to hit a button to load the info once the swf is loaded.
View 1 RepliesDoes anyone know how to link text to a file instead of a URL in flash?
View 1 RepliesFor a portfolio site, I have descriptive blurbs dynamically loaded from an external text file. In those blurbs is an option to "launch the site", which works great. Flash looks at:
<a href="http://www.mySite.com/" target="_blank"><u>Launch Site</u></a>
and understands the html.However, in another section I'm trying to "launch" a swf into a regular old Flash level or MC (not an html window).How would I write that kind of link into the blurb?
For a portfolio site, I have descriptive blurbs dynamically loaded from an external text file. In those blurbs is an option to "launch the site", which works great. Flash looks at:
<a href="http://www.mySite.com/" target="_blank"><u>Launch Site</u></a>
and understands the html.
However, in another section I'm trying to "launch" a swf into a regular old Flash level or MC (not an html window).
How would I write that kind of link into the blurb?
I found some inklings at this Kirupa thread, but still don't know...
I've build a simple twitter feed flash application that uses php script to read the latest tweet from xml and returns the string to flash to be displayed in a text box.
View 1 RepliesIf I have static text and I have converted one line within the text to an active email link...can I indicate a subject line also in the Properties, under Options --> Link?
Like: mailto:emailme@emailme.com?subject=My Subject Line Here
Can this be done in that panel? If not, how do I do that?
Also, how can I change this email line to rollover to a different text color on hover, without separating it out as a button graphic?
How would I go about making diagonal link like this one.I drew a retangle so that my text would fit in, select both text and rectangle, F8 turn into button,then I turn them 45degree. When hover the text change color the way I want, but the problem is that the button enters the hover state way too soon when my mouse isnt over the rectangle yet.Seems like as long as my mouse falls within x and y coordinates of the text then it goes into hover state.For example my mouse is under the diagonal box, not in yet, but right under the text and it would go into hover state.
View 1 RepliesI have few text fields with htmlText links (<a href>) in a scrollPane. The problem is that when jthe page loads for the first time in IE (both 6 and 7), fI have to double click the links to make them work properly. However after that a single ckick works fine. I can understand the problem that the scrollpane is not getting the focus
View 1 Repliesin flash how to give a link on static text with the mouse over=underline effect....
View 1 RepliesOn a current project, my client asked if there is a way to create a link from text which has been imported via XML to another part of the swf. In other words, when the text is clicked, it executes some code.The only way I can think of is to create a url which would reopen the page displaying the swf and pass a parameter which would navigate to the specified section.
View 3 RepliesI'm trying to create a link within the textArea to another frame.
I have:
var question_1 = "[Question 1]";
question_1.onRelease = function()
[code].....
able to link several buttons to a dynamic text box within the same mc on the same timeline, however when I try to move the dynamic text box to another mc, I am no longer able to link the buttons and populate the textbox.Textbox instance name is textbox.Button instance name is allegdistThe new movieclip is named page5It works within the same mc and timelineHere is the code I am using just for testing...How would I get the button to recognize the textbox in the new movie clip?
allegdist.addEventListener(MouseEvent.MOUSE_DOWN, click1);
function click1(event:MouseEvent):void{
textbox.text = "test"
[code]....
Program: Adobe Clash CS5.1Explanation:When you select a text field, under Options in the Properties there is the field "Link". Normally when you want to add a link you put the URL in a text box, then assign it a URL in the Properties...I am using a .xml file to pull up information, is there a code I can put in to the "Link" field in Properties to link to the URL that is entered by the .xml file?Example:The dynamic text field in flash displays the URL entered in the .xml, which is the URL for the Google homepage. The user clicks the link and it takes them to Google.
View 3 RepliesI am creating a map that has pop ups with country information. When a country is clicked, a box pops up with the country name, an overview of the area and a link. All the text is pulled in from an external XML doc. My problem is that the link only shows up on the first box (as soon as it clicks, it wont appear in other countries profiles).I don't receive any errors and the links work fine, just as long as they are the first to be clicked.
View 1 RepliesI have a text box with a scroller, and i have a list of links. The text is the answers to a faq the links are the questions. How do i set it up so when someone clicks a link it sends the scroll bar to the right place?
View 1 RepliesI have a txt file rendered as html in flash. Is it possible to use a link in the text file, to link back to flash to load a page or manipulate a variable?!
View 6 RepliesHere i got stuck with a prob... i think it's simple, but still im not clear...I need to link my dynamic text...That data is comming from an array...Is that possible to do.
View 5 Replies