ActionScript 3.0 :: Flash XML Link Dynamic Flash Text
Jun 24, 2011I have a problem with making a url link from my data.xml file. My code is as follow:
[Code]...
I have a problem with making a url link from my data.xml file. My code is as follow:
[Code]...
I want to make link from a dynamic text(in flash project) to an external swf i created(a gallery that is controlled by xml file). This is the code of first frame of my fla project:
url="edit";
loadVariablesNum(url + "_main.html",0);
_root.link=1;
function linkgal() {
loadMovieNum("gal_car.swf", 1);
[Code]...
I 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 have a problem with the line space flash creates when a dynamic text is loaded in a dynamic text field on the stage i put a dynamic textFild with istance name "profile_text". then im loadin in it a text. my text is written in the Notepad like this
[Code]...
i already set a Textformat to my dynamic text with i tryied to play with the "Leading".. but i think it something dealing with paragraph. how i can decrease spacing between paragraphs??
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 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 RepliesI have a very simple xml file.
Code:
<article>
<link>
<site>Click for transfering to: <a href="http://www.google.com">Google</a>.</site>
</link>
</article>
I successfully load the xml into the stage,although the part <url= "http://www.google.com">Google</url> doesn't appear.Do I have to create a unique script in order that part of dynamic text to become a link?
so i got my page set up pretty much, to sumarize its mostly 3 divs. one with a flsh banner, one with a flash menu, and the other is the content div, with html in it. you click on a link in the flash menu and it loads one of six different pages. but i came to realize that every page has the same banner and menu in it. it would be nice not to have to reload them every time. is there a way to just load different html in the content div by clicking something in the menu?
View 3 RepliesI am trying to create a hyperlink to an external website within a dynamic text field. Basically, I need it to work like this: My text will read, "Here is an example. Click here to see a larger version." I need the "click here" part to be a hyperlink. But since I already have all of this text within a dynamic text field, I can't figure out how to make that one part of the text a hyperlink. I've searched online for an answer to this but can only find information on how to create a hyperlink from the entire text field or to add a button hyperlink. I don't want to do these things.
View 4 RepliesI am trying to link to link several buttons to a dynamic text box.I am trying to populate the dynamic text box with specific data called from an external text file by each button.
In other words:
Button 1 ---> text file1----->Dynamic Text Box
Button 2 ---> text file2----->Dynamic Text Box
I have searched everywhere, but cannot seem to find anything specific.
Does anyone know of any tutorials I could try?
I think this is a relatively easy fix but I have looked around for the answer and have not been able to find it. I am using a dynamic scrollable html text box. I would like to add links. The only problem is that the double forward slashes (//) in http:[url]....makes the following text become a commment.I have a dynamic text box with an instance name of myText and in my AS layer I have:
Code:
myText.htmlText ="the text for this scrollable text box,
which is html formatted";
If I try to add a html link, obviously it doesn't work.The only workaround that I know of uses exteral .txt files.I would prefer to use those since I have not been able to get my scrolling bar with tweening to load properly with external .txt files.
I just made a flash news scroller where the news headlines are dynamic text and have different urls provided in the link section. But when I click on any of them, they all go to the first link only.
View 1 RepliesI have a text box that will be updated by my client. I want them to be able to include links in their text, but I really don't want to require my "not-so-computer-savy" client to have to remember to type this out everytime they need to add a link[code]...
View 2 RepliesI'm wondering if it is feesible to create a dynamic text box with like a contents sections at the beginning of the box that once you click a link it will scroll down to the appropriate info withing that dynamic text.
I created an image to help further explain my situation.[URL]..
I have a .txt file with html code inside of it that loads into my swf. i've managed to create a link (ain't i the genius) but the problem is that if the link ponits to another website e.g
a href="http://www.something.com/file.mp3" it just opens the file in the browser.
is it possible to get it to download the file instead?
I'm wondering if it is feesible to create a dynamic text box with like a contents sections at the beginning of the box that once you click a link it will scroll down to the appropriate info withing that dynamic text.
I created an image.
[URL]
I just made a flash news scroller where the news headlines are dynamic text and have different urls provided in the link section. But when I click on any of them, they all go to the first link only.
View 1 Repliesi'm attempting to resolve a problem with targeting. i would like to target multiple iframes from a link that has been pulled into a flash document. basically, the link needs to load a title and an mov file. the mov file has to be loaded into an iframe, but the title could be loaded into another dynamic text field.. i'm using a text file that is loaded into a dynamic text field. the link within the text file currently looks like this:
<a href="video/AlzyGramp.mov" target="videowindow" onClick="parent.titles.location.href = 'alzy.html'; return true;">Alzy Gramps</a>
but it doesn't work. is there a problem with flash htmltext reading javascript? i even installed the flashjavascript gateway.
in flash how to give a link on static text with the mouse over=underline effect....
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 RepliesI'm messin around with a premade Photogallery that uses external XML file to populate the flash gallery. Everything works great but I wanted to manipulate it alittle so I can add active links.Here are my tests:
Test1
I changed all instances of .text to .htmlText
published: (flashplayer 7 actionscript 2) = Everything still worked fine
Test2
I changed all instances of .text to .htmlText and added <a href> to xml file.
published: (flashplayer 7 actionscript 2) = Everything still worked fine but no link text showed up.
Test3: I changed all instances of .text to .htmlText and added <a href> to xml file and converted txtbox to "render as html"
published: (flashplayer 7 actionscript 2) = No text showed up at all.Here is the basic XML file:
-------xml page----------------------------------------------------------------
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>[code].....
How can i link from a text to my email adress... So when someone click on the text it open the outlook or something like that to send to my email...
View 1 RepliesI'm working on an entirely flash-based site for a client who has already been using Blogspot for his News/Homepage updates. He wants to continue updating through Blogspot, but wants the blog to automatically fill in the text box on the flash site Homepage. I'm not sure if this is possible, or how I would go about doing it.
Here is the blogspot page: [URL]
Here is an example of what the scrolling SWF text box will be like: [URL]
How to notepad text url Link in Flash buttons! flash action script with notepad text linking go to url?
View 1 RepliesI followed the tutorial "ActionScript 3 XML Basics" but it left out how to add the link from the xml file to the text area of flash. Does anyone know the actionscript code to do this?[code]
View 5 RepliesIs it possible in Flash to set a hyperlink (in a textField), and then have that link run a function within Flash (not Javascript)?I know one can easily launch a URL via a text link, or even run a Javascript function, but what about a function in Flash?
View 2 RepliesI am trying to make a text link within a scroll box jump to another frame within the same Flash file. Is this possible without having to make a button or movie clip? For some reason if I insert an object like a movie clip or button in the scroll box, it appears in a different area when I publish the file so I can't use that option for links.
I need to be able to highlight the text and then program it to jump to another frame label.
I am working on a press section of a site and was wondering if this was possible? I have a texfield that loads in html formatted text for a notepad file. I have done this lots of times and put <a href=blah> on certain words within notepad to make them links to other pages.
For this one i would like to have the textfield with links, but when the user clicks a link, i want it to trigger something in flash (i.e. click here for more info sending a variable to my main as script that will bring up some other text etc).
if so how would i go about writing the link inside notepad? I'm thinking that i just need to know the code for combining the text links with something in flash as.
I am doing a Flash header where button text and links has to be easily configured by the owner, so i'm thinking the smartest way is to load button text + link from an xml file.There will be 7 horizontal buttons. The name of the button will be loaded into a dynamic textfield i guess, but what about the link?Im fairly sure it's possible to make an animated button and load an html link into it's Actionscript... but how?My XML would look like this:
Code:
<?xml version="1.0" encoding="UTF-8" ?><buttonsDanish>
<forside name= "Forside" url= "http://www.whatever.biz" />
[code].....