I was wondering how you use Actionscript 2, to read a URL/web address in a XML file and when you click a button, or an icon, you are then taken to a page specified in the XML document?
I've inherited a menu bar (www.ensim.com). You can see that when you hover over the buttons (most of them, anyway) you get a drop down with subnav links.
The way they did it was to populate the movie clip with text from an external .txt file, so you could easily add sub links and change urls and stuff. Nifty idea.
The problem is a new url I'm trying to add apparently contains an escape character that it doesn't like. The new url is "/index.asp?page=solutions&sec=voip". When that goes in there, it won't write the link lable (<a href="borked url">This doesn't show up</a>)
Sort of weird, I kind of assumed that, being a plain old txt file, it would just spit it out and move along.
I'm loading html formated text from an external txt file into a masked "createTextField", which was styled using an external CSS file. Everything is fine, except for one strange thing...any links at the beginning of my text file DON'T work...the links towards the bottom of my text file DO work.I have never ran into this problem before.So far, I'm totally stumped.Note: I have "a:hover" and "a:active" properties set via the CSS file.When I rollover the links that aren't working, the anchor rollover properties do change, so there is some recognition going on, but the mouse doesn't change to a hand
I bought a flash template who uses this code for links in the header
onClipEvent (load) { num = 2; _parent.ti1.gotoAndStop(num); _parent.ti2.gotoAndStop(num);
[Code].....
What I want is to be able to modify the page URL from an external file (xml or txt). I want just an external file, and here, on the AS of the button to modify just the line number of where to get the link from external file.
Just wondering if flash is able to do this using a 3rd party app perhaps? Im creating a flash application (closed source), and I want it for others to be able to customize the program in the means of changing text colors by editing the actionscript using an external .as file. Problem is, the external actionscript works, but it will only work when I recompile or republish the fla file in flash.
Looking for a way for flash to read the external .as file without using the fla file.
I have an ActionScript driven flash project that displays a sequence of images. Currently I am using an array with the names of the images. Is there any way I can open a text file for reading and populate the array. Otherwise I would have to keep compiling the SWF each time.
A friend of mine has a Flash Action script running on a LAMP server that currently reads an xml config file. He's asked me if it's possible to remove the xml file, and replace it somehow with a system (lets call it an 'auto xml generator') that intercepts the request to read that file and generates an output, so it appears to all intents and purposes as if the file still exists and contains the contents that has actually been returned from our auto xml generator'
I have a blog that I insert swf video into via an iframe which references a CS4 published html page from my swf file. I would like to put html links into each individual blog post to act like a table of contents that someone could use to move to specific frames in my video.
I wish to create a glossary that is read from an external *.txt file. The glossary function like a dictionary in that there is a word, its definition, and a link to a relevent page where the word appears. e.g. <label="apple" def="that thing people eat" url="apple.txt"> The reason I want it external to flash is so that new words can be added and removed manually and flash will simply update. A user can type in a word to search for in the "sorted alphabetically" list within flash.
XML_var = new XML(); // now load up the url. XML_var.load("http://www.lick.fm/tracklist.xml"); // when xml is loaded call functon displayXML
[Code].....
This ascript reads an external xml file and picks up the tracklist names for current playing and previous playing songs on my radio station website. It works and looks perfectly fine but i need this to refresh every 30 seconds to read the dynamic xml file and update flash.
AS3: Code: Select all//Set XML calls var xmlLoader:URLLoader = new URLLoader(); xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded); xmlLoader.load(new URLRequest("xml/books.xml")); function xmlLoaded(e:Event):void { var xml:XML =new XML(e.target.data); When tracing, the XML declaration is gone, so I am not sure how to read or target it. trace(xml); }
I'm working on a flash header for a website with the page links contained in an external .txt file, and I'm experiencing a strange problem.The site is both in English and Italian: I worked first on the english version, I modified the AS code for the new .txt file and then I saved the project with another name and translated all the text into Italian.I also changed the name of the external .txt file as well as all the page links contained therein.Problem is when I click a page link in the Italian version of the site, the links are the same of the English version; seems like the .swf file "remembers" the old links just as I never changed the file name.This is the "_urls_IT.txt" file:
I am creating a CBT course using Flash CS4 As3. I need to capture progress information from the user as they complete each unit in the course so that the next time they access the course they can pick up where they left off. To do this I need to know how to write and retrieve this information to and from a text file or a cookie so that it can be retrieved re-enters the course.
I used Dreamweaver to embed my flash file into an html file, using "Insert-->Media-->Flash".When I preview the file, everything works fine, but when I upload the file to the web, the external links to my blog and e-mail will not work. Before, I just had the flash file up, with no html, and it worked fine.Url...
I am trying to create html links from a external xml file to be dynamically added to a text field (im using flash builder)the process i am having trouble is: -Loading an external swf which contains the textfield loading external xml which contains the cdata with links adding the cdata to the htmltext property of the textfield the link is showing correctly, the mouse turns into a hand... but when i click on the link it doesnt work. i have seen a few forum posts similar to this problem but all are using textfield control in flash builder but im trying to add the cdata into an externally loaded swf which holds the textfield.
I am having a nightmare using CSS to style HTML within a dynamic textfield in my flash doc. From what i now understand after much trial and error and reading online, CSS doesn't even work properly in flash even for the tags that it does understand (which are few and far between anyway). For some reason my layout is getting completely screwed up in certain scenarios (predominantly when there are images present too) when i hover over links (which are styled in an external CSS file). If i remove the external CSS styling (which only contains the following simple code):
Then everything works fine (but no links are underlined as standard or on hover). Does anyone know of any way to style the links without using an external CSS file (all i want to do is have no underline as standard and then underline them on hover). As this is from user input into a text editor I cannot place these links manually on the page in flash as they could be anywhere, I need a way of parsing the HTML and then displaying it accordingly.
I have a main swf file and config.xml located in the same directory. My .swf file uses config.xml to fetch config variable which it does with success.The problem appears when I put those files into Flex directory. I embed .swf file like this.
I mean, I use dynamically changing xml-data in my app that I could get straight from the server but it is gzipped. So I was wondering is there a way to unzip it and read it as a xml file with actionscript?
I want to read in a HTML file and format with a CSS file.I'm using MX2004.From what I've read, this should be possible?I'm getting stuck at the first obstacle, I can't figure out how to read in the HTML file.THe use of the CSS styling seems to be straight forward.
trying to change a gallery that reads xml file to one that reads txt files and that also has a preloader and centrally resizes automatically. since i got no replies i tried and finally after a few months managed to get it to read txt files. unfortunately, i have realised that i require the gallery to read data from a php file and not a txt file because i dont have the permissions to create a txt file and edit it on the server.
just been doing it for a couple days, i downloaded a template and have been trying to figure out how to edit the links. It came with a _URLs.txt, but all the links on the menu go to the same link.for example[URL]
I'm trying to create a Flash Carousel in AS2. I've made the Carousel itself, and have got the icon images and tooltips from an XML file using this code:
xml.onLoad = function() { var nodes = this.firstChild.childNodes;
[Code].....
I have functions for 'over', 'out', and 'released', and to move the carousel automatically, left or right depending on mouse position.
I was wondering if there was a way you could make each individual icon have an external link that leads to a different place on my website when you click on an icon, where I could specify the link url itself in the XML file?
I have a main file,which loads some external swf files.These external swf files load some html text in dynamic textfields.These html texts also contain links.Is it possible, to link in one of the external swfs,using html?
I want to create a kind of "video player" that will allow me to move a playhead accross all theses SWF that are playing back to back. What I need to do is get the totalFrames of all these swf objects that are to be loaded. I tried loading each SWF (using the Loader class ofcoarse) and on the COMPLETE event grab the totalFrames and then move to the next SWF to populate an array that will be used to create a UI piece. The problem is that it starts playing the swf once it load and you can hear the background sound of each SWF. It also slows the program down. Is there anyway of grabbing the totalFrame property from external SWF's without actually having to load each SWF?