Flikr XML RSS Feed Issue
Hey everyone, I am hoping someone can lead me down the path to figure out this issue I am having.I am trying to create an app that shows images using the RSS feed supplied by the sets page. I am not going through flikr's API, i am simply using the url from the feed on the sets page.so far, I have been able to ouput the xml from the rss feed as a whole it looks like this<feed xmlns="
Adobe > ActionScript 3
Posted on: 09/22/2008 10:04:41 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Flash Line Feed Email Issue
Hi, can anyone help me with a code for sending an email from flash.
I have created an email to send 5 x input text fields to an email address.
The issue I am having is the text comes through on one line instead of creating separate lines to deliver the text to the mail recipient - when placed live on the server.
I have attached the code i have used and it is working within the flash document and when exported is working fine.
Just to eliminate these ideas i have already tried the codes listed below.
If any one can help me to figure this out I would greatly appreciate it.
Could it be a problem with the server?
Cheers,
Kirst
Attach Code
on (release) {
var sendto = "me@myemail.com.au";
var strName = "User Name: = " + Name + chr(10);
var strComputer = "Computer Name: = " + Computer + chr(10);
var strDepartment = "Department: = " + Department + chr(10);
var strPhone = "Phone: = " + phone + chr(10);
var strDetails = "Details: = " + Details + chr(10);
var strMessage = strName + strComputer + strDepartment + strPhone + strDetails;
getURL("mailto:" + sendto + "?subject=Intranet - " + Details + "&body=" + strMessage);
}
also tried the following codes to try to separate the fields:
<
>
vbCrLf
Chr(10)
Chr(13)
Help With XML Or RSS Feed
Hello, I'm a n00b at flash and hence don't know any actionscript. I am trying to make a flash file that gets a weather feed, and I have a few questions.
First: What would be the best way to get a weather feed in flash- RSS or XML
Second: If you could point me in the way of any tutorial or give me some code to use to interface with the xml, or rss feed.(no serverside code should be needed, since I wish to turn this file into an .exe to run of my desktop)
Thanks, any and all tips are greatly appreciated.
--- Tomokatsu ---
Rss Feed Help
I am using this code for an RSS FEED (works Great)
Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
caption = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
caption[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
}
first_item();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("news.xml");
//
function first_item() {
delay = 5000;
p = 0;
display(p);
p++;
}
function timer() {
myInterval = setInterval(ticker, delay);
function ticker() {
clearInterval(myInterval);
if (p == total) {
p = 0;
}
fadeout();
}
}
function display(pos) {
over = new TextFormat();
over.underline = false;
//
out = new TextFormat();
out.underline = false;
//
newsText._alpha = 100;
newsText.text = caption[pos];
timer();
}
function fadeout() {
this.onEnterFrame = function() {
if (newsText._alpha>=0) {
newsText._alpha -= 5;
} else {
display(p);
p++;
delete this.onEnterFrame;
}
};
}
I want to load the first child into one text box and the 2nd child into another text box. any sugestions?
Just Looking For Some Feed Back..
Hi gang, I was just wonder if I could get some constructive (key word here is CONSTRUCTIVE) on a web site I am building. It is only my second flash site...Well that actually matters and it is not finished. Does it look to busy. Is it to grey? etc
Thx in advance for your advice
Here's the link: My site.
Flash And XML RSS Feed
I suppose I'd do better to post this here.
See thread:
http://www.flashkit.com/board/showth...hreadid=477366
Attempting a FLasBlog.
Cheers!
Holiday
Non-local Xml Feed
Okay I have a file in which some vars are loaded from and external xml feed. It works perfectly on my local machine, but when I upload it to a webserver(not the same server the feed is on) it no longer loads those vars. I've heard before that this problem exists but I do not know how to correct it. Do I have to draw those vars in PhP then put them back into an xml file on the same server as the swf file?
Please help.
Herk
News Feed
Hi,
How can I do an XML News Feed using flash?
Below are examples of sites with what I want to do:
- http://www.braingiants.com/v5/welcome.html
- http://www.kurtnoble.com/
- http://www.heartlesscrew.com/
Thanks
RSS Or XML Feed In Flash
I help run a news site, and we're trying to reach a broader audience in our 2nd year online. We want to set up a CNN or ESPN like news ticker that will go on the bottom of several popular websites. We've already gotten clearance from a few sites. The main thing: We run off of Blogger. What we're looking to do is to put an XML or RSS feed and transfer that to a ticker type thing on a Flash document. Again, imagine the ESPN or CNN ticker for a guide. If you need to see our site to see what we're talking about,this is it.
We have an XML feed syndicating our Blogger site to LiveJournal also at this link provided.
I'm thinking that if there is some way to get an XML feed into dynamic text, we should be able to get it to scroll, but you guys are the experts. We just want some type of ticker using XML or RSS, like the ones on ESPN or CNN. Our versions of flash are Flash 8 and Flash MX, both on Macs. Can anyone please help us?
I'd Like Some Feed Back On This.
I just finished whipping up together a Caching class that will keep manage loaded images and keep them cached inside the app for reuse. I'm kinda looking for peoples' feedback as to whether they think that it's really necessary.
Now, I know the first thing you're thinking... The browser has caching built in... Well, there is still a request being made for the file. I see some ups and downs personally to this, so I'd just like to see what people think after seriously looking at it and weighing the pros and cons.
Thanks.
PHP Code:
/*
* [Static] Cache.as
*
* All code/functions/classes
* written by: Matt Robenolt
* Copyright © 2007 YDEK Productions LLC
* http://www.ydekproductions.com
* matt@ydekproductions.com
*
*/
/**
* A static class for caching Loader objects inside the application.
*/
package com.ydekproductions.utils
{
import flash.display.Loader;
import flash.net.URLRequest;
import flash.utils.Dictionary;
public class Cache
{
private static var _cache:Dictionary;
/**
* Adds image to cache and returns Loader object.
* If image already exists, return cached Loader object.
*
* @param $request URLRequest object to load.
* @return Loader object.
*/
public static function load($request:URLRequest):Loader
{
if(_cache == null) _cache = new Dictionary();
if(_cache[$request.url] != undefined) return _cache[$request.url];
_cache[$request.url] = new Loader();
_cache[$request.url].load($request);
return _cache[$request.url];
}
/**
* Remove item from cache.
*
* @param $request URLRequest or String representing cached item.
* @return Boolean true if item existed in cache, false if not.
*/
public static function remove($request:*):Boolean
{
if(_cache == null || !isCached($request)) return false;
var r:String;
if($request is URLRequest)
{
r = $request.url;
}
if($request is String)
{
r = $request;
}
if(r == null) return false;
try
{
_cache[r].close();
}
catch($e:Error)
{
//throws error if the stream is not currently in progress
}
_cache[r].unload();
delete _cache[r];
return true;
}
/**
* Check if item exists in the cache.
*
* @param $request URLReqest or String representing cached item.
* @return Boolean true if item existed in cache, false if not.
*/
public static function isCached($request:*):Boolean
{
if(_cache == null) return false;
var r:String;
if($request is URLRequest)
{
r = $request.url;
}
if($request is String)
{
r = $request;
}
if(r == null || _cache[r] == undefined) return false;
return true;
}
/**
* Removes all items from cache.
*
* @return void
*/
public static function clear():void
{
if(_cache == null) return;
for(var r:String in _cache)
{
remove(r);
}
}
}
}
Then just to accompany the class, I whipped this up just for you to test and see how it's applied:
PHP Code:
import com.ydekproductions.utils.Cache;
var img:Loader;
//put 3 buttons on the stage to correspond with these actions.
loadImageBtn.addEventListener(MouseEvent.CLICK, loadImage);
removeStageBtn.addEventListener(MouseEvent.CLICK, removeStage);
removeCacheBtn.addEventListener(MouseEvent.CLICK, removeCache);
function loadImage($event:MouseEvent):void
{
if(Cache.isCached("image.png")) trace("cached");
else trace("not cached");
img = Cache.load(new URLRequest("image.png"));
addChild(img);
}
function removeStage($event:MouseEvent):void
{
removeChild(img);
}
function removeCache($event:MouseEvent):void
{
Cache.remove("image.png");
}
I'd also like to know if you can find any bugs or flaws, or any missing features.
Feel free to use this if it suits your needs for anything!
Using The Date In An RSS Feed
Friends,
I'm successfully pulling in an RSS feed but I'm trying to only show the entries posted since my last visit. Realizing that's not just some simple code snippet, can someone help me at least figure out how to get this...
Code:
<pubDate>Wed, 24 Oct 2007 06:51:44 -0600</pubDate>
... into a format that Flash can work with?
I can figure out the shared objects and the current time stuff, I'm just not sure how Flash needs the info above.
Thank you!
-Layne
How To Get An RSS Feed Into Flash
Hey all,
I would like to get an RSS feed into a Flash piece that I am building. I would like to only display the title of the feed(that will be a link) and when the user clicks on the title(link), it will link them to the site with the provided article. I would like title(link) to update as the feed is updated.
Does anyone know how to do this or where to start?
Thanks.
Live XML Feed?
Okay,
So I currently have a bit of Flash that gets data from an XML file.
What I'd like to do is avoid having to have the Flash reload in order for this content to be updated.
I've looked all over the Internet, in books and even asked around about XMLSockets; no one seems to give me a straight answer.
What exactly are my best options here? I've set up an XMLSocet Server on my server, I have some PHP the compiles my XML...what do I need to do?!?!!!
Web Cam Feed Problem
I have developed an web cam feed & i embedded it into a html file it is working, now i want to share it from other network pc, any idea ???
RSS Feed Parsing
this is something new to me -> basically i want to parse a flickr rss feed and scrape out the image url's.
of course being rss the xml classes come in handy here, but wondering if someone had done something similar before i dive in head first.
FMS Webcam Feed
Hello i am trying to use FMS and Flash to stream live webcam feed to a website.
what it basically is, a user can start broadcasting on my site via flash encoder or some other program that will connect to the FMS server and Display his webcam stream and others can watch are there any tutorials out there that i can read on or lean from?? i have the flash swf that i have made that accepts webcam as in the user can view himself but others cant see it only themselves if they have the cam set up
Thanks in advance
~John Grissom
Problem With XML/RSS Feed
I have created a small weather widget which I am currently manipulating to get the data I need out of the description field. However all of the data I require is listed as attibutes within a single tag. The Yahoo Weather RSS feed contains a tag that looks like this
Quote:
<yweather:condition text="Cloudy" code="26" temp="82" date="Thu, 21 Aug 2008 2:55 pm EDT"/>
All of the information I need is right there. However when I try to access this tag in the XML tree such as:
var weather:XMLList = xmlData.channel.item.yweather:condition;
I get an error because of the colon, "Expecting semi colon before colon.
Is there anyway to approach this and access that tag?
thanks!!
RSS Feed And Parse
I have an rss feed that I'd like to bring into a Flash movie, and am successful in linking the code, but it displays too much info and not in a very readable format. How do I tell Flash to parse the rss feed? I've searched for tutorials on here and found none (if there is one please send a link). Everything else I've found on here and elsewhere is way more complicated (don't need scrolling text or drop-down menus, etc.) I'm able to control a tiny bit through textstyle.css, but not enough.
If I were to parse the rss, what would that code look like and how would it link up to the existing link and text box, or is there another manner in which I'd be required to link it to control the output?
Thanks...
Here is my code so far,
Code:
this.createClassObject(mx.controls.TextArea,"myEvent",151,{html:true});
myEvent.setSize(380,100);
myEvent._x = 299;
myEvent._y = 284;
//init TextArea component
myEvent.html = true;
myEvent.wordWrap = true;
myEvent.multiline = true;
myEvent.label.condenseWhite = false;
myEvent.setStyle("borderStyle","none");
_global.styles.TextArea.setStyle("backgroundColor","transparent");
//load css
kungFuStyle = new TextField.StyleSheet();
kungFuStyle.load("textstyle.css");
myEvent.styleSheet = kungFuStyle;
//load in XML
kungFuContent1 = new XML();
kungFuContent1.ignoreWhite = true;
kungFuContent1.onLoad = function(success) {
if (success) {
myEvent.text = kungFuContent1;
}
};
kungFuContent1.load("http://LiveWireMusician.lwcr.com/rss/calendarDirect.aspx?i=13574.13856");
Need To Scroll RSS Feed
Hey There
Found this great code for an RSS reader that someone posted (THANK YOU!), but now I need it to scroll. Can someone help? I've been looking at so much code lately it's all looking the same!
Code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoaded);
loader.load(new URLRequest("http://news.google.com/news?ned=us&topic=n&output=rss"));
var txtFormat:TextFormat = new TextFormat();
txtFormat.color = 0x5a5a5a;
txtFormat.leftMargin = 1;
txtFormat.font = "Verdana";
txtFormat.size = "12";
var txtField:TextField = new TextField();
txtField.width = 385;
txtField.height = 180;
txtField.wordWrap = true;
txtField.selectable = true;
txtField.multiline = true;
txtField.defaultTextFormat = txtFormat;
addChild(txtField);
txtField.y=30;
var xml:XML;
function onLoaded(e:Event):void
{
xml = new XML(e.target.data);
var il:XMLList = xml.channel.item;
for (var i:uint=0; i<il.length(); i++)
{
txtField.htmlText += "<a href='MYLINK'><font color='#03367a' face='Verdana'><b><i><u>" + il.title[i] + "</u></i></b></a><br><br></font>" + il.description[i] + "<br>";
}
}
txtField.addEventListener(TextEvent.LINK,linkHandler);
function linkHandler(e:TextEvent)
{
var url1:String = e.text;
ExternalInterface.call("window.open", url1, "_blank", "");
}
RSS XML Feed And Flash
Can you format the text of an RSS XML feed like this one:
http://www.washingtonpost.com/wp-srv...sheadlines.xml
I can connect to this file and display its content in a text field, but do you know how to format the content in terms of each node (i.e: title= Arial, 12, 0x000000 ; link= Arial, 10, 0x0000CC, undeline ; description= Times New Roman, 10, 0x000000)
Any advice will help.
Thanks.
XML Feed For CD-ROM Content
I am building a CD-ROM menu which links to a number of external EXE files. (These are 'screen cam' software movies built with Camtasia). The list of EXEs is growing. I want to build an external file (which I assume would be best in XML) storing the following:
- Title of movie
- Description (which will be one-two sentences of text)
- Filename (which will need to be called from Flash MX)
- If possible: Length of movie
Ideally I'd like a scrollable box that would build the list based from the external file. So it might look something like this:
Movie filename 1 (which would be hyperlinked to the EXE file)
A short description of the movie here, telling the user a little bit about it. It will probably be about two sentences long.
Duration: 3 minutes 42 seconds
-------------------------------------------------------------
Movie filename 2 (which would be hyperlinked to the EXE file)
A short description of the movie here, telling the user a little bit about it. It will probably be about two sentences long.
Duration: 3 minutes 42 seconds
-------------------------------------------------------------
Movie filename 3 (which would be hyperlinked to the EXE file)
A short description of the movie here, telling the user a little bit about it. It will probably be about two sentences long.
Duration: 3 minutes 42 seconds
--------------------------------------------------------------
etc etc...
I am very new to XML so this is a real struggle for me. I did find a script that embedded the XML as HTML, but then we have the problem of web browser security kicking into play when I click on a hyperlink to an EXE - that would not happen with a Flash FSCommand. (E.g. It tells me that I am trying to download a file - do I want to do this....)
Any help would be greatly appreciated!
Thanks,
Martin B
RSS Feed Load
I'm working on a new website and trying to integrate my blog to it, in flash. Feedburner has a neat javascript that loads the RSS feed to any html document. Thus, I place a dynamic text field field and call an html document that has the Feedburner code in it. Sadly, when I execute, it won't load the feed. Thoughts? Help?
The feedburner code is posted here, feel free to offer any advice.
Attach Code
<script src="http://feeds.feedburner.com/HowToGetABetterJobFaster?format=sigpro" type="text/javascript" ></script><noscript><p>Subscribe to RSS headline updates from: <a href="http://feeds.feedburner.com/HowToGetABetterJobFaster"></a><br/>Powered by FeedBurner</p> </noscript>
Rss Feed In My Movie
hey guy's i am using 2 component's from flashloaded... flashticker and rss feed... i am presently on a linux server at godaddy... for some reason it is not working... on a hunch i just put the url of my website with the php file and this is the error i am getting....this is a valid xml fee....i tried 2 ( one being on a different site of mine working fine )... from looking at the info below - i need to get with godaddy right and have them enable the server to allow the calling of the feed ...right ?
Warning: readfile(): URL file-access is disabled in the server configuration in /home/content/d/g/g/dggowen/html/mortgagedaily.php on line 6
Warning: readfile(http://MortgageDaily.com/rss.xml): failed to open stream: no suitable wrapper could be found in /home/content/d/g/g/dggowen/html/mortgagedaily.php on line 6
RSS Feed Functionality In AS 2.0
Hi,
Can someone please tell me how can i achieve the RSS feed functionality in AS 2.0.
In brief, for RSS feed, when any RSS link is given, the AS 2.0 XML object does not understand the link. I can use that link in AS 3.0 'URL' object.
Also, AS 3.0 has the functionality of traversing through any XML file without the developer knowing its exact structure but this is not possible in AS 2.0. How can I achieve this.
Please assist.
Sarika Jain
Ybrant Digital, India
sarikaj@ybrantdigital.com
Mobile - +91 - 9701636000
Rss Feed Display
hi i am using action script 2.0
i have a url to a RSS feed, can someone tell me how to display the contents of the url in a textarea.
many thanks
Google Map Feed
I would like to link in a google map url like you would do w/ iframes in regular html. if you go here: http://www.ideaworks.com.au/ and go to their contact page they link in the map. that's what I'm trying to archive. please help.
News Feed
Hello
What would be the best way to display live news on my MX 2004 site using:
http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/technology/rss.xml
The user would need to be able to click on a link, opening another browser, if they wishes to read the news item in full.
Many thanks
Steve
Live Feed For FMS
Hi,
Is there any way to publish in FMS a live stream not coming from a web cam or any other hw device.
I'm interesting in knowing if there is a public API that enables the insertion of a feed from a stream buffer generated by an external software running in the same host where FMS is located
Thanks in advance
XML Feed To Flash
Hello Forum,
I'm trying to parse a RSS which comes from a page to Flash. But Im having some trouble, I wonder if someone could help me with some input/hits/tips whatever to take out links to picture, texts and attributes from the RSS so I can make flash with dynamic pictures.
I found two components but I cant make them work.
http://code.google.com/p/as3corelib/
http://code.google.com/p/as3syndicationlib/
Also this tutorial but it seems confusing. Can anyone help so I can get on with some articles, tutorials or something.? http://www.ploem.be/blog/?page_id=105
the RSS is here:
Attach Code
<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link rel="self" type="application/rss+xml" href="http://domain.dk/shop/htc-14c1.rss" />
<title>shop11(HTC)</title>
<link>/shop/htc-14c1.html</link>
<description></description>
<item>
<title>Productname Alpha</title>
<link>domain.dk/shop/productname-alpha-175p.html</link>
<guid isPermaLink="true">domain.dk/shop/productname-alpha-175p.html</guid>
<description>
<![CDATA[
<a href="domain.dk/shop/productname-alpha-175p.html"><img border="0" src="domain.dk/images/produktbilleder/foto-paa-vej-t.jpg" /></a><br /><br />Vi præsenterer iPhone 3G.Igen.<br />
<br />Pris:Â 150,00Â DKK
]]>
</description>
<pubDate>Wed, 14 Jan 2009 16:53:46 +0200</pubDate>
</item>
<item>
<title>Productname Beta</title>
<link> domain.dk/shop/productname-beta-186p.html</link>
<guid isPermaLink="true"> domain.dk/shop/productname-beta-186p.html</guid>
<description>
<![CDATA[
<a href="domain.dk/shop/productname-beta-186p.html"><img border="0" src="domain.dk/images/produktbilleder/foto-paa-vej-t.jpg" /></a><br /><br />abitur magna. Donec at eros. Sed porta, <br />
<br />Pris:Â 1.562,50Â DKK
]]>
</description>
<pubDate>Wed, 14 Jan 2009 14:50:40 +0200</pubDate>
</item>
<item>
<title>Productname Charlie</title>
<link>domain.dk/shop/productname-charlie-187p.html</link>
<guid isPermaLink="true"> domain.dk/shop/productname-charlie-187p.html</guid>
<description>
<![CDATA[
<a href="domain.dk/shop/productname-charlie-187p.html"><img border="0" src=" domain.dk/images/produktbilleder/foto-paa-vej-t.jpg" /></a><br /><br />m. Curabitur magna. Donec at eros. Sed porta, <br />
<br />Pris:Â 1.250,00Â DKK
]]>
</description>
<pubDate>Wed, 14 Jan 2009 14:50:45 +0200</pubDate>
</item>
<item>
<title>Productname Delta</title>
<link>domain.dk/shop/productname-delta-188p.html</link>
<guid isPermaLink="true">domain.dk/shop/productname-delta-188p.html</guid>
<description>
<![CDATA[
<a href="domain.dk/shop/productname-delta-188p.html"><img border="0" src="domain.dk/images/produktbilleder/foto-paa-vej-t.jpg" /></a><br /><br />c at eros. Sed porta, sapien feugiat dapibus ornare,<br />
<br />Pris:Â 1.250,00Â DKK
]]>
</description>
<pubDate>Wed, 14 Jan 2009 14:50:50 +0200</pubDate>
</item>
</channel>
</rss>
Xml News Feed
hAs aNyone ever connected to a xml news feed through flash? I did a search and could come up with anything. Any help would be great.
Ill Feed You Pizza If You Help Me
here is the site
http://jfreeden.com/test/main2.html
here is the actionscript
setProperty("obj1", _alpha, "0");
setProperty("obj2", _alpha, "0");
setProperty("obj3", _alpha, "0");
setProperty("obj4", _alpha, "0");
setProperty("obj5", _alpha, "0");
obj1.loadMovie("background1.swf");
obj2.loadMovie("background2.swf");
obj3.loadMovie("background3.swf");
obj4.loadMovie("background4.swf");
obj5.loadMovie("background5.swf");
// targetAlpha contains the value of _alpha you want the clip to fade towards
function doFade() {
this._alpha += (this.targetAlpha-this._alpha)/4;
if (Math.round(this._alpha) == this.targetAlpha) {
delete this.onEnterFrame;
}
}
// get a clip named myClip to fade out
obj2.targetAlpha = 0;
obj2.onEnterFrame = doFade;
obj3.targetAlpha = 0;
obj3.onEnterFrame = doFade;
obj4.targetAlpha = 0;
obj4.onEnterFrame = doFade;
obj5.targetAlpha = 0;
obj5.onEnterFrame = doFade;
// and get another clip named myOtherClip to fade in
obj1.targetAlpha = 80;
obj1.onEnterFrame = doFade;
what will make the transition smoother, i already cranked down the quality to a low 20.. the background files are 20kb. I figured if i lowered the target alpha, it would go quicker/smoother but it didnt help, i also messed with the division factor within (this.targetAlpha-this._alpha)/4; the lower the # the choppier the transition, the higher the # the longer it takes.. frame rate is at 30. Thanks all!
RSS Feed In FLASH?
is it possible to get an rss feed into flash? i guess like a dynamic text box or something? i couldn't find any info about his on kirupa...
bry
Rss Feed Reader
Can anyone recommend a tutorial or an example on how to build a rss feed reader?
Thanks in adavanced!
AM
How To Get An RSS Feed Into Flash
Hey all,
I would like to get an RSS feed into a Flash piece that I am building. I would like to only display the title of the feed(that will be a link) and when the user clicks on the title(link), it will link them to the site with the provided article. I would like title(link) to update as the feed is updated.
Does anyone know how to do this or where to start?
Thanks.
Sounds Feed
This is just a "heads up" on an RSS feed that you can subscribe to which will automatically tell you when new button sounds are added to my page.
Was wanting to get an idea of who would be interested in, if not subscribing, downloading free sounds.
The reason for a feed is that I don't know when I will be uploading sounds. I could release one and not another for two weeks, then I could release 10 at once...So it saves people from checking my site to see if I've added new ones.
Best,
KK
RSS Weather Feed
I've been asked to build a website for a golf course which of (course) will be a great project but I would like to include a live RSS weather update with symbols if possible.
I have not attempted anything like this before and it would be great if you guys could post any help/links on how I could pull this off.
Thanks for any help.
Astrology Feed?
im tying to ake a astrology site using as3. does anyone know where i can get information regarding the positioning of the planets?
Help With RSS XML Feed And ActionScript 3
I am working on a Flash based RSS reader and trying to extract just the <img src="..."> code out of the <description> tag, but I haven't found a solution. I tried doing a trace, but that comes up with a undefined for data.
Here is my code so far and RSS XML example:
Code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoaded);
lb.addEventListener(Event.CHANGE, itemChange);
function itemChange(e:Event):void
{
tb.htmlText = lb.selectedItem.data;
ta.htmlText = "<a href="" + lb.selectedItem.link + "">" + lb.selectedItem.label + "</a>";
}
var xml:XML;
function onLoaded(e:Event):void
{
xml = new XML(e.target.data);
var il:XMLList = xml.channel.item;
for(var i:uint=0; i<il.length(); i++)
{
lb.addItem({data:il.description.text()[i], link:il.link.text()[i],
label:il.title.text()[i]});
}
}
loader.load(new URLRequest("http://www.siteurl.com/rss.xml"));
Code:
<channel>
<title>Site Name</title>
<description></description>
<link>http://www.siteurl.com</link>
<lastBuildDate>Sat, 01 Mar 2008 22:02:43 +0000</lastBuildDate>
<generator>FeedCreator 1.7.2</generator>
<image>
<url>/images/logo.png</url>
<title>Site Name</title>
<link>http://www.siteurl.com</link>
<description><![CDATA[Site Name]]></description>
</image>
<item>
<title>Title of First Feed Item</title>
<link>http://www.siteurl.com/link.html</link>
<description><![CDATA[<img src="http://www.siteurl.com/images/stories/users/logo.jpg" align="left" border="0" alt="" /> This is a sample article with a preceeding picture.</description>
</item>
<channel>
So under the <item><description>, it has a preceeding image, I just want to pull the Image URL and drop everything else.
Thanks,
Corey
RSS Feed Reader
Hello, I was wondering if anyone knew a good tutorial to create a RSS feed reader. Im trying to make it so that you can select from a drop down menu of different rss feeds and read that particular feed.
Thank you
Xml News Feed
hAs aNyone ever connected to a xml news feed through flash? I did a search and could come up with anything. Any help would be great.
Ill Feed You Pizza If You Help Me
here is the site
http://jfreeden.com/test/main2.html
here is the actionscript
setProperty("obj1", _alpha, "0");
setProperty("obj2", _alpha, "0");
setProperty("obj3", _alpha, "0");
setProperty("obj4", _alpha, "0");
setProperty("obj5", _alpha, "0");
obj1.loadMovie("background1.swf");
obj2.loadMovie("background2.swf");
obj3.loadMovie("background3.swf");
obj4.loadMovie("background4.swf");
obj5.loadMovie("background5.swf");
// targetAlpha contains the value of _alpha you want the clip to fade towards
function doFade() {
this._alpha += (this.targetAlpha-this._alpha)/4;
if (Math.round(this._alpha) == this.targetAlpha) {
delete this.onEnterFrame;
}
}
// get a clip named myClip to fade out
obj2.targetAlpha = 0;
obj2.onEnterFrame = doFade;
obj3.targetAlpha = 0;
obj3.onEnterFrame = doFade;
obj4.targetAlpha = 0;
obj4.onEnterFrame = doFade;
obj5.targetAlpha = 0;
obj5.onEnterFrame = doFade;
// and get another clip named myOtherClip to fade in
obj1.targetAlpha = 80;
obj1.onEnterFrame = doFade;
what will make the transition smoother, i already cranked down the quality to a low 20.. the background files are 20kb. I figured if i lowered the target alpha, it would go quicker/smoother but it didnt help, i also messed with the division factor within (this.targetAlpha-this._alpha)/4; the lower the # the choppier the transition, the higher the # the longer it takes.. frame rate is at 30. Thanks all!
Rss Feed In Flash
Is it possible to add a live rss sports feed to flash?
How would i get information on how to go about doing it?
What would i need?
thank you for any help..
Ultrashock - RSS FEED
Anybody know a tutorial, Fla, Link to show how the RSS FEED work on Ultrashock first page ?
And possiably the admin system.
Many thanks
Just Me
Feed Back, I Need Some Feed Back
Last edited by gutt666 : 2002-10-08 at 01:21.
I need you to check this site out and tell me what you think about it, only constructive criticism needed :-)
PS: Sorry there's no english version at the moment....
www.reklamebyraet-ide.no
RSS Feed Not Updating
Ok I am having major problems with this RSS feed Lee made in flash. It all works I can add my own rss feeds to it. But here's the issue. Whenever I load it and then I change the xml, and then reload it again, it doesn't update with the changes I made in the xml. It won't load the newly updated xml it just stays with the first version I loaded. Any ideas why? Here's the code
Code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoaded);
lb.removeAll();
lb.addEventListener(Event.CHANGE, itemChange);
function itemChange(e:Event):void
{
ta.text = lb.selectedItem.data;
}
var xml:XML;
function onLoaded(e:Event):void
{
xml = new XML(e.target.data);
var il:XMLList = xml.channel.item;
for(var i:uint=0;i<il.length();i++)
{
lb.addItem({data:il.description.text()[i],
label:il.title.text()[i]});
}
}
loader.load(new URLRequest("http://localhost/rss5.xml"));
And then here's the code for the XML
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
<title>W3Schools Home Page</title>
<link>http://www.w3schools.com</link>
<description>Free web building tutorials</description>
<item>
<title>RSS Tutorial</title>
<link>http://www.w3schools.com/rss</link>
<description>I am fat</description>
</item>
<item>
<title>XML Tutorial</title>
<link>http://www.w3schools.com/xml</link>
<description>New XML tutorial on W3Schools</description>
</item>
</channel>
</rss>
So whenever I change the things inside the description tags and stuff like that, it doesn't reflect those changes when I export the flash file. Any help would be appreciated thanks.
RSS Feed Not Replacing XML
Hi everyone,
I found the RSS feed code shown at a video here, and I thought of adding buttons that could change the feed when they are pressed.
Basically, I put a new URLLoader in the click event of the buttons, thelling them to get the new feed, but instead of replacing the list with a NEW list, it just ADDs the titles under the list.
I tried delete, unload, remove item, remove child, etc, etc, but I never get to clear the list first and then load the XML.
here's the code, as you can see I traced even my last name, with no good results
Thanks a lot for any help
Indira
Code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoaded);
bt_foto.addEventListener(MouseEvent.CLICK, ClicFoto);
lb.addEventListener(Event.CHANGE, itemChange);
function itemChange(e:Event):void
{
ta.text = lb.selectedItem.data;
}
var xml:XML;
var il:XMLList;
function onLoaded(e:Event):void
{
xml = new XML(e.currentTarget.data);
il = xml.channel.item;
for(var i:uint=0; i<il.length(); i++)
{
lb.addItem({data:il.description[i],
label:il.title.text()[i]});
}
}
loader.load(new URLRequest("http://localhost/indira/category/txt/?feed=rss"));
function ClicFoto(e:Event):void
{
loader.load(new URLRequest("http://indira.com.ar/category/foto/?feed=rss"));
//trace(il.length());
//xml = new XML();
//selectedItemList.dataProvider = new DataProvider();
// selectedItemsList.dataProvider = new DataProvider();
//removeChild(loader);
//lb.load(new URLRequest("http://localhost/indira/category/foto/?feed=rss"));
//il.removeItem();
//il = xml.channel.item;
// lb.removeItem(1);
//delete(xml);
//il = null;
//lb.removeItem();
//
//trace(xml.numChildren);
//trace(lb.numChildren);
}
this.bt_web.addEventListener(MouseEvent.CLICK,onClickweb);
function onClickweb(e:Event):void
{
trace(loader.data);
loader.load(new URLRequest("http://localhost/indira/category/netweb/?feed=rss"));
}
XML / RSS News Feed
What I'm trying to do is load info of a local news site into a dynamic text box that can update itself automaticlly.
Can anyone point me in the right direction of how to achieve this or point me to a site that can tell me.
Any feed back would be great.
Thanks,
Live Web Cam Feed
Hello,
Does anyone know where or how I can get a live web cam feed using FLASH?
Thanks
Tab With Content Feed
Does anyone have any pointers or know of any samples so that I can develope a .swf similiar to the grey menu on
http://aimtoday.aol.com/
Can't Get Feed Back To WORK
I am trying to make a feedback thing for my site. But I don' t know how. I want to have a screen with 3 varibles on it. The Name, E-mail, Message. You would click SUBMIT and it would take the 3 varibles and send them to a .txt file. After I want a projector that will cannect with the site and download the messages and make them readable by a me. I don't know if it can store all the varibles in 1 .txt file or if I can send them to it. I would really apreciate some help in the problem of mine and any ideas on how someting like this could ever work would be greaty apreciated.
|