ActionScript 2.0 :: Loading Text + Html Link Into Flash Btns From XML?
Apr 25, 2007
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:
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 had to do some maintenance on an older flash site I built (Flash MX, AS2.0). I have some href links in a html text. For some reason they are no longer working correctly. If you click on it, it will do nothing. If you right-click on it, a menu will open with options to Open, Open in new window, & Copy link.
I would like to make an input text field in flash as2. What I need is when the user write down an answer it will direct him to an html page I created. There are 3 answers and 3 pages, so they will write down one of the answer and when they will click "enter" they will be redirected. I understand you can do it with "if" statement but I don't know how!
I'm importing text from an XML file into a textField. It includes a couple of image links.I'd like the images to display next to each other, but Flash seems to be forcing a linebreak between them.Note I'm using (pound ampersand 10 semicolon - seem to get converted to linebreaks in this forum) to create linebreaks manually - not that it should have any bearing. Have tried separating image tags with nonbreaking space, regular space - also made sure textField was plenty wide enough. No luck.Is this just "the way it is" or is there some way to get my images to display inline?Sample XML:
Code: <body><![CDATA[Please <a href="mailto:customerservice@domainname.com"><u>contact us</u></a> for any questions, comments or suggestions. We look forward to hearing from you.
I have a load vars function that looks for a txt file and grabs data from it, right now they have to be in the same dir. I'd like to have the txt in the root of my server and then be able to link from any dir in the site. I have: ("dataValues.txt") What should I add before it, I thought maybe a full URL, but no, is it something like ("../dataValues.txt"), basically I want to make the link global for the site - I don't have access to the files right now.
i made a video player with the xml playlist , it's a video channel indeed, it's embed swf in html. but my boss would like me to put a link on the web, when user click the link, it would directly play the specific video inside the video channel. is it possible to do it without server side script but javascript?
I'll have an swf that I'd like to open up as a popup from an html link. I've been searching the forum, but most similar questions are to go from flash to html.
I have a dynamic text box on my flash page called homepageText I've been able to import text from a .txt file into the Dynamic Text box and that's fine, but I want to be able to format certain parts of the text, like making parts bold/italic, adding links, adding images and all those things to the point flash will allow.
I have a 90% all flash-site and when u click news webpage splits up in HTML blended with flash in a page called news.asp
(buttons are in flash and content in asp bellow)When loceted on news.asp and you click... let's say service you go back to index.html with the flash main.swf, but the link has ALSO have to go to label (service) or frame 30 lets say...
I have a scenario that I get an string with html data, this is not just html data it's an email (outlook) saved as an html file and dropped in the string.Now this string needs to be formatted to an html document and should be a clickable link in a datagrid. So when I click on the link, the HTML document should pop-up and should gave me a nice HTML page that is readable for the normal users. I hope it's a bit clear what I want o_0. don't know where to start.
I have a website I would like to run locally in the computer. The website is in flash and links to some HTML pages in the same folder. How do I write the action script button so it opens the HTML page in the same page? Right now I have:
on (release) { getURL("localfile.html"); }
The above code doesn't go to the HTML page that I wanted in the same folder. Do I need a relative path or something? Indicate the folder it is in?
I am designing a website in flash CS3 using Action script 2.0 not 3.0 and Flash Player 8. The architecture I used is as follows:I have a menu/main page which loads the swf files of other flash pages.I have a particular flash chatroom page which is loaded by the main page that I would like to be able to link an web address (example url...) directly too that particular sub flash page ...rather than going to the main.swf which is what the original web address uses.
Technically I know I could link a web address to the chatroom.swf file, but then it would estetically look incomplete since the theme/design of the website is in the main.swf which calls the chatroom.swf.Thus my question is: is there a way to assign the web address to the chatroom.swf inside the main.swf.I would like to go directly to the chatroom without clicking chatroom on the main.swf menu.
I'm working on a website which has advert banners which link to external pages.I've recently added the ability to have flash banners, but am stuck on how to make the banners link without editing the flash file.
The idea is that clients wanting to advertise on the site send a flash advert which is then linked to their site through the CMS, however unless the client embeds the link into the flash file, or add a flashvar parameter which can then pull in the info from the database, the flash banner doesn't link as it's seems not to link being surrounded by an <a> tag.
This is probably a well known thing, but this is my first time doing flash adverts, so I'm coming to it from a completely novice position.Is this something than anyone creating a flash advert would know about and instinctively do or will it need to be instructed to the client before hand, or is there a way to get it to be a link through html?
Right now it is making the space behind the .swf file clickable for the link, but the Flash element is not clickable.
If the right thing to do is to edit the .swf file somehow, I don't consider myself a Flash developer, but are there any resources on where to get started or how to do something this basic with an existing .swf file?
And clicking the link would load up my Flash movie, which is basically just a shell that imports an XML glossary of terms, but when the page loads, it would automatically show the word "Blah" since that is the link that I clicked on in HTML.
Is this possible? I'm at about an intermediate level of understanding when it comes to AS3.0, but I haven't dabbled with manipulating XML using Flash much.
first of all my requirement is to implement set home page functionality in flash for firefox (for ie its ok) in html it is possible to drag a link to the home button on the browser tool bar to set the home page. so i want to make such a draggable link in my flash movie.. i don't know whether it is possible or not.. or else i welcome any other methods to set home page from flash in all browsers..
i tried Flash 8 Forum but maybe that was the wrong place to ask so i try herei looked around to load my movie in a popup window and found this easy to use link:
I am trying to link my gallery made in flash (and published in html), to link to the rest of my homepage made in html. I have seen several example about how to link from a flash buttom to a new URL, but what I need is to link to a local html file.
First. Which are the codes to use to link from my gallery "galeria.html" to the rest of my homepage?
second. Where should I place my files: galeria.fla ,galeria.swf ,galeria.html. Should all they stay in the same directory
how to create the portfolio page. What I have is a flash element within an HTML page that displays the current work. The work is loaded from a XML file. I wanted the capability of changing the XML file in order to have the flash element load different pieces of work. I would like to have the links to make this change in HTML, but I'm not sure if this is possible. I'm wondering if I'm just going to have to expand the flash element and have the links to change the XML file within the flash file itself.
I am calling in HTML text into a dynamic textfield on stage and need to change font styles within the HTML text for my titles (to Arno Pro).I dont know HTML and think I might somehow need to embed the font I want to use?If so, do I do this in AS or the HTML text file.[code]