ActionScript 2.0 :: Create A Dynamic News Page By Loading From A XML File?
Sep 9, 2010
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 =
[Code].....
View 1 Replies
Similar Posts:
Aug 2, 2006
I'm trying to create a dynamic news section that works off of a XML file and I'm running into some problems. Here's the code I'm using right now
Code:
//load XML
xmlContent = new XML();[code]....
It seems to duplicate the movies correctly, but it won't load the XML into the corresponding text boxes I've created. I've included a link to the source files as well if anyone has a minute to take a look.http:[url]....getting the date from the attributes of the news item I'd like it to go in the "date_txt" box within the news module clip.
View 3 Replies
Aug 1, 2007
how to create a dynamic news ticker like one of these? Only that it would scroll longer sentences? Of course the first idea is just load single line TextField and tween it across the screen beneath a mask. I don't like this because
a) It's retarded
b) Your swf width is quite long even if you don't see it, it's there.
c) It's retarded
I'm trying to think up a better solution. So far I haven't thought of anything better (does that mean I'm retarded?). Some other brain stormed ideas could be parsing each word in the String into it's own Sprite, as BitmapData, and sort of train tweening those, that was you can dispose each after it's cleared the screen. This seems like too much work, and potentially draining on the system's resources, having to create new instances, and repeteadly add them to the display list, and such.
View 10 Replies
Nov 10, 2009
I am trying to create a news rotator that pulls info and images from an XML file.I made something similar a while back which pulled just the headlines which worked great and I am trying to adapt this same idea to a current project. pull all the info from the XML and push them into separate arrays based on the type of information it is. ie title, description, image etc.From there I have a function which is supposed to display the all of the info and another which cycles through it based on a timer.Like I said before, this worked great with just the headlines, but when trying to add images its getting thrown off. The function which intends to parse the data and pushing it into separate arrays.
Code:
function onLoaded(evt:Event):void {
xml = new XML(evt.target.data);
var il:XMLList = xml.channel.item;
[code]....
I'm aware that it has something to do with either how the info for the images is being parsed (or not), and/or how I am going about displaying it.I was able to write a separate function which displayed one image as intended, but then wouldn't cycle through as the news changed.
View 1 Replies
Mar 18, 2010
I need to create an Events page that the is dynamic so the client could add events and pictures later on. This is the how the page looks like: [url]... The function that he needs is to be able to add text in the scroll portion on the left side, then when you click on the heading of the text it opens images on the right side and you could flip thru them using the arrows below them with a page number on top. All this needs to happen outside flash since he wont know where to go.
I have no clue how to start this or what to do! I know it will need to load pages dynamically and use xml for the images navigation. I'm not sure whats the best way to go about that, plus how do you make the heading link to the images on the right side.
View 4 Replies
Dec 15, 2009
[URL]I'm looking to make a page like this (go to the NEWS page).Does anyone know how to do this, or if there are any components out there that do this? I am familiar with making a standard xml page with just text, but I'm not sure how to add the videos and photos.
View 21 Replies
Mar 14, 2004
scrollpan with the news on the main page? I have tried tons of things, but haven't gotten something I want..I have made something just now that works like that, except the text doesn't work completely...Basically, I have a bounding box with a mask over the test I want... Code I use (and this is applied to an MC with the whole "container" pan")
Code:
onClipEvent (load) {
diff_y = bound_box._height-scroller._height;
bounds = bound_box.getBounds(this);[CODE]....
My problem is basically I place my content box in the mask and it will start the whole thing at half way... the box will scroll and everything works. it's just that the content starts half way, so half the box will be empty towards the bottom.
View 3 Replies
Aug 8, 2011
i want to display the news feeds from a facebook page, that is also mobile safe, i want to develop a mobile application..
How would this be done, could you show me some example code? or point me to t tutorial or something?
View 41 Replies
Jul 14, 2011
Possible Duplicate:Custom Preloader in Flex 4?I am working with a flex web application and i want to implement custom loading page on application startup like the above
View 2 Replies
Mar 27, 2012
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)
View 14 Replies
Apr 6, 2005
I am creating a flash app for a soccer website I'm doing for me school. What I have so far is a main section where news can be viewed and stuff.I have another part of the app that allows for someone to log in and add new news for everyone to see on the main screen. Is this possible without FlashCom and/or db?
View 4 Replies
Apr 6, 2005
I am creating a flash app for a soccer website I'm doing for me school. What I have so far is a main section where news can be viewed and stuff. I have another part of the app that allows for someone to log in and add new news for everyone to see on the main screen. Is this possible without FlashCom and/or db?
View 4 Replies
Aug 25, 2009
Here is what I'm trying to do: recreate the news ticker from [url]...
HEre is the trick: The client wants to be able to change the news themselves via an external .txt file, the also want each piece of news to link and the link will change..
I've got the text loading into the .swf just fine, but I have no idea how I can make the news pieces hot to a dynamically changing link that will be changed by them
View 6 Replies
May 17, 2010
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.
View 0 Replies
Mar 24, 2007
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!
View 3 Replies
Jun 14, 2005
how to create a news section using xml in flash?
View 2 Replies
May 12, 2009
I wanting to create a basic news scroll / ticker like this http:[url]....What's the best way of achieving this to get a continuous smooth animation.
View 3 Replies
Jan 30, 2009
Is there a script to create an admin page to modify an XML file? Currently- I'm going in and having to manually change 4 ID fields everytime I want to update. I'm looking to make it more accessible for everyone to update it.
View 1 Replies
Mar 6, 2008
I have a client that is wanting me to create a flash website in which they can add products pages (product info, images, etc.) themselves after the website is completed. I will setup up the first few products then they will do the rest. Would I wanted to go with dynamic text and empty movie clips loading the images? If so how could I have this create a duplicate page that refers to the new text and image?
View 3 Replies
Sep 20, 2006
I've created a XML-dynamic news box which uses a external .CSS Since my hosting is slow, when I load my movie of the news box, some of the times CSS doesn't seem to do its work -- All I see is the html code that I created in the XML file.
I was wondering how I preload the css and xml before executing/using it.
[Code]...
View 3 Replies
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
[code]....
View 3 Replies
Jan 2, 2006
I have a silly little question. One specific page on a site I work on needs to be protected with logins and passwords. All it is, is a list with downloads - consisting of files for students. Both the list (htmltext) and the downloads are inside a protected folder.
My question is: What's the easiest way to include this into my flash site ? (the site is completely flash).
I initially had two ideas: One was to make a popup appear that loads the protected file, and when people don't have access, I can show them a self made error page.A nicer thing would be to have the text file load dynamically into flash, but when a user doesnt have access, they get directed to the same error page again...
View 1 Replies
Sep 16, 2010
How can I create a music flash file that will play on every page of the web site, I am going to have about 7 pages.
View 1 Replies
Mar 10, 2008
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] .....
View 5 Replies
Jan 6, 2005
I have this news scroller for work - Vertical member (160 X 600) And the idea is that it has 3 text fields (Headlines). These fields are lined up vertically (one at the top of the scroller, one at the middle, and one at the bottom.). I load them dynamically from XML, and after about 5 seconds, I have them all move up. (the top one goes up the top, and comes back from the bottom, the other two move up). The problem is that I am trying to center justify them. When they're loaded I can center justify them, using this code:
Code:
MovieClip.prototype.centerFunction = function() {
format = new TextFormat();
format.align = "center";
_root.news2.headline2_txt.setTextFormat(format);
_root.news3.headline3_txt.setTextFormat(format);
_root.news1.headline1_txt.setTextFormat(format);
}
Now, when they are first center justified by the code, they look slightly off, and once they move they arrange themselves correctly.
View 5 Replies
Jul 17, 2009
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.
View 0 Replies
Jul 6, 2009
I need to create a full page flash file that overlays a webpage. Something like the example in this link.
I have figured out how to create the flash file which will overlay the page, with all elements centered, from here: kirupa forums tutorial.
The only thing I cannot figure out is how to attach the Close button which would come at the top right. AS3 is not allowing me to attach any behaviour to the button, neither does it allow me to put actionscript there. I am in dire straits.
View 3 Replies
Sep 2, 2010
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.
View 3 Replies
Mar 17, 2004
Anybody've the source code or component for a horizontal news ticker. The data read from an XML File.
View 1 Replies
Nov 9, 2003
here my .fla I have a text file saved as news.txt with the first line name= [URL]..
View 4 Replies