ActionScript 3.0 :: Loading XML To Make A News Reader?
Oct 21, 2009
I would like to create a Flash file using AS3 that pulls info from three different nodes in an XML file. The pic below is a screen shot of what I'm trying to accomplish.
Here's an example of my XML:
<?xml version="1.0"?><rss version="2.0"><channel><title>kstp.com - MORE NEWS</title><item><title>State announces details of Minnesota FluLine </title><description><![CDATA[<img
Making an XML news reader based off of senocular Squirrel XML news.
I'm using Fuse and wanted to target the dynamic text and or background portions of the headline section.
However, this movie clip is attached to the menu_mc so I'm stumped as to what I should exactly target for the fuse sequence (or any mx.transition/zigo engine based code-tweening process for that matter).
I've attached the files in a .zip for people to look at (and possibly conquer my problem!
I am trying to make a very simple rss reader to display news feeds. All I really want to do is have a text box display the first item of the feed, wait for a moment, then display the next one. I've been searching around and can't find any decent tutorials on the subject.
I have a question concerning this AS3 script, which is for XML-NEWS-READER i n FLASH
ActionScript Code: var loader:URLLoader = new URLLoader(); loader.addEventListener(Event.COMPLETE, onLoaded); var imgLoader:Loader = new Loader(); imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImgLoaded); var url:URLRequest/*
[Code]...
As you can see there is a MovieClip in the Library: NEWS_item. The Clip has a textfield and a Imag field(a MovieClip). While the text is passed in the text fields of the NEWS_item Clip there should be afterwords the photos be placed with addChild(imgLoader). But online the last Image appears. What is wrong here?Does someone have experience with xml readers an images ?
I found this news reader on [URL]. [URL] web_appl...s_xml_easybit/ It does pretty much what I want, but I need to be able to add url links in the main text. Anyone know how I can go about doing this?
I want to implement an XML news reader with images and video links( youtube for example) in as3. Does anyone know where i could find and example or at least, how to read video links from an XML file in as3?
how to communicate with flash and external card reader? For example, there is a computer with connecting magnetic card reader. Then, how can I load the data from the card reader into flash?
I am working on the news ticker module (AS2) where I have to fetch news from xml and populate that news headings into four text fields and these 4 headings will stay for a while and fade until last record. this process will continue.
What I try to do is make a RSS reader in flash that plays a sound when the RSS feed is changed. In an older version I reloaded the xml via a little timer, but what I understand about this socketthingy is that it keeps an open connection with the server/feed? Am I correct that this socket parses data (or smth) as soon as the xml changes ? If yes, why dont this work ? (it does after loading, but not if the swf is running and the xml is changed)
I'd like to make a news slider for flash that not only shows images and text, but can also play videos that are presented as news, through an XML file or something.A good example is the flash news slider that ea.com uses, which can play videos on clal as well.Can anyone direct me to a tutorial or guide me here on how I cna achieve this through Flash CS4?
I'm trying to make a news system, loaded from XML ... headers dyn created, onreleases ... so far..sorting the xml data (on DATE; xx/xx/xx) and storing it into an array for further violence I just found out something about this:
[AS] var myArray:Array = new Array(); myArray.push({day: "18", month: "02", year:"04"}); trace(myArray); [/AS]
I'd like to make a news slider for flash that not only shows images and text, but can also play videos that are presented as news, through an XML file or something.A good example is the flash news slider that ea.com uses, which can play videos on clal as well.how I cna achieve this through Flash CS4?
I am trying to make a AS3 version of a scrolling news ticker although Iseem to be having trouble. The code below doesn't seem to be working although its not throwing any errors. I think its not loading my xml nodes or something. All I am trying to do is it to eventually load an rss feed and scroll a selected set of nodes. For now I just tried to get it to display an xml formated file since rss is xml formated. Ultimately for this example I just want it to display the title attribute of every item.
Code: news_txt.x = 1024.0; var count:int; var textnode:String; var loader:URLLoader = new URLLoader(); loader.dataFormat = URLLoaderDataFormat.TEXT; [Code] .....
I'm wondering if someone could help me with giving me the right direction, I should look for. I'm trying to make a news system, loaded from XML ... headers dyn created, onreleases Now I was wondering if someone could help me with sorting the xml data (on DATE; xx/xx/xx) and storing it into an array for further violence
I wanted to add a second news box under the first one and have it pull the first two news items in the xml file and have it displayed on the movie. Currently it is putting the first news item in both news boxes.ction script so that the second box is actually the second "<news> tag". From the tutorial I removed the <info> <author> and <comment> tags.
I'm working on a project and attempting to create a dynamic news page by loading from an XML file. Everything seems to display fine for some people, for others it loads every dynamic text field with an instance path such as "_level0.instance1.instance30.instance45.conte ntMa in.Body1".
Here's the code I'm using:
Code: function loadXML(loaded) { if (loaded) { _global.atitle1 =
I am in the process of building a web site and am running into an issue with dynamic loading text.I am trying to make a scrolling news section with a stage of 200 W x 250 LCreated a movie clip with the following coding:
var myTextLoader:URLLoader = new URLLoader();var myTextField_txt:TextField = new TextField();myTextField_txt.wordWrap=true; myTextLoader.addEventListener(Event.COMPLETE, onLoaded); function onLoaded(e:Event):void {myTextField_txt.text = e.target.data;addChild(myTextField_txt);} myTextLoader.load(new URLRequest("myText.txt"));
Then set the clip (which is 250 W x 600 L) on the main stage, moving upwards, creating the auto scroll effect.The problem I am running into is that I can't figure out how to make the text use the whole width of the text box I created. It only uses half of the width, creating columbs like this:
Hello and welcome to our new
[code]...
The text box itself is at least twice the width of the sentences, but they aren't using the full width.
I would like to make a Marquee for news that is/has happened with my site.I have know Idea where I want to get started. Basically I want to have an XML File, and just load its contents and display it as a never ending marquee.
I have been working on a dynamic loading news ticker for a site and have been running into two separate problems:
The first, creating a movie clip, inserting the following code: var myTextLoader:URLLoader = new URLLoader(); var myTextField_txt:TextField = new TextField(); myTextField_txt.wordWrap = true; myTextField_txt.autoSize=TextFieldAutoSize.LEFT; [Code] .....
And having the clip load the text from the text file listed. In this version, everything is working fine except I don't have the ability to change the font, size, and color of the text using only flash and the text document, (to my understanding).
The second, creating two .fla files, one with the embedded font I want to display named font.fla, and the other blank named fontloader.fla. Also create an .as file in the folder with the following code: package { import flash.display.Loader; import flash.display.MovieClip; import flash.events.Event; import flash.net.URLRequest; [Code] .....
In this second scenario, the problem is that I can't figure out a way to make the dynamic text scroll vertically and loop, (Was trying to figure out a way to save the fontloader.fla as a movie clip, then importing it into a new .fla and just using a motion tween on the clip, but so far I'm confused by it). This second scenario is also not my first choice, because loading the text straight from a text file would make the news section very easy to update for those who don't have any design experience.
I'm trying to get the code below to work, but no such luck: Code: var newsAry = new Array("news/040720.html"); for(i=1; i<=newsAry.length; i++) { this["btn" + i].index = i; this["btn" + i].onRelease = function() { getURL("javascript:openNewWindow(" + newsAry[this.index - 1] + ",'newswin','height=400,width=450,toolbar=no,scrollbars=yes')"); }} I'm trying to get the 'newsAry' Array to work in the javascript getURL action. When I use a regular html page in there the page works just fine.
how I can make Flash buttons with rollover/rollout behaviors like News Today? (Ex. Refresh, Find, Broadcast) [URL] Instead, I have crappy buttons that stay on the rollover state if the cursor rolls over them too quickly. I need 'em to go back to the initial state if rollout occurs. My crappy buttons: [URL]
im trying to make a simple animated news page for digital flash magazine, I want there to be several boxes on the page that are static until you mouse over them at which point they will start to animate. I have got that far i have created the symbol and i have build the animation inside of the symbol.In my actions layer i have put...
Symbol.stop();
Symbol.addEventListener(MouseEvent.ROLL_OVER, animateMC); function animateMC(evt:MouseEvent):void{ Symbol.play(); }
and that works the symbol is static until i mouse over and it begins to play the part im having an issue with it making the animation stop when you move your mouse away (MOUSE_OUT)
Ok I'm trying to make a small thing on a website that will allow the user to update the news themselves.... after reading up on it i found that to export a textfile in this way I would have to have a serverside script to execute it for me (PHP in my case)... I did it, but it isnt working..
I have typical situation where big loop is loading lots of images and its done asynchronous which make browser to frees during loading and I want to make it synchronous but having big trouble doing it. I found this class synchronous loader and it work great but you cant add mouse event listener to loader. Here is sample code:
I'm almost certain that this is impossible, but I had to ask. One of my clients wants to know if I can build something that can read the text in Flash, kind of like an HTML reader for the visually impaired. The user would be required to have speakers.
It wouldn't have to read all of the text in the movie, just certain dynamic text fields that are in the SWF.