Reading and displaying RSS feeds in Flash MX 2004-03-12 - By Mark A. Kruger - CFG
Back Bryan,
thanks - that will be awesome.
-Mark
-- --Original Message-- -- From: BRYAN MASON [mailto:BMASON@(protected)] Sent: Friday, March 12, 2004 9:31 AM To: 'flashnewbie@(protected)' Subject: RE: [Flashnewbie] Reading and displaying RSS feeds in Flash MX
Jason,
Yes, I see. Thanks again.
A couple of people have asked to see the finished product. I'll upload it to my web site along with the FLA, XML and AS files for download when I'm finished.
Bryan
-- --Original Message-- -- From: Merrill, Jason [mailto:JMerrill@(protected)] Sent: Friday, March 12, 2004 10:13 AM To: flashnewbie@(protected) Subject: RE: [Flashnewbie] Reading and displaying RSS feeds in Flash MX
:::>One last question. Can I determine the number of <item>'s :::>in the object by :::>doing something like this: :::> :::>var i; :::>i = o.length
Bryan,
If you look at the last e-mail I posted before this one (also included un-trimmed in this e-mail), you'll see I answered that already (and your question about not getting it to display). In short, yes. Check below or in my prior e-mail for the example.
Glad you got it working. I don't know why Macromedia didn't/doesn't implement an object model like this for XML already - the XML objects provided are so difficult to navigate through for some people - like me. I mean, its workable, but start doing any thing complicated and it gets messy. Anyhoo - happy you were able to make use of that prototype - wish I had written it myself, but I can't take credit for it.
Jason Merrill ICF Consulting Government e-Learning Solutions icfconsulting.com
:::>-- --Original Message-- -- :::>From: BRYAN MASON [mailto:BMASON@(protected)] :::>Sent: Friday, March 12, 2004 8:16 AM :::>To: 'flashnewbie@(protected)' :::>Subject: RE: [Flashnewbie] Reading and displaying RSS feeds :::>in Flash MX :::> :::> :::>Jason, :::> :::>Actually, I am proud to say that I did figure that out for :::>myself finally :::>yesterday! What I did was to put a function call at the end of the :::>XML.onLoad function that takes care of displaying the :::>desired item attribute :::>in the text field. Now, all I have to do is to polish it up :::>a bit and upload :::>it to my web server! :::> :::>I love lists like this. You guys have been extremely :::>helpful and patient and :::>I really appreciate it! :::> :::>One last question. Can I determine the number of <item>'s :::>in the object by :::>doing something like this: :::> :::>var i; :::>i = o.length :::> :::>?? :::> :::>Thanks again! :::> :::>Bryan :::> :::>-- --Original Message-- -- :::>From: Merrill, Jason [mailto:JMerrill@(protected)] :::>Sent: Thursday, March 11, 2004 4:37 PM :::>To: flashnewbie@(protected) :::>Subject: RE: [Flashnewbie] Reading and displaying RSS feeds :::>in Flash MX :::> :::> :::>Yes. :::> :::>- keeping it onlist: :::> :::>:::>Nothing shows up. Is "o" not available outside the function :::>:::>block? Is there :::>:::>a way that I can make it available? :::> :::>Yes, you are trying to access the o object before the XML :::>is done loading. :::>Darron mentioned this earlier actually (no problem, its a :::>lot to keep track :::>of!) That's why the traces in the code I posted are inside :::>the funciton :::>block. You can tell flash to do whatever you want to let :::>you know its done, :::>like say move the playhead to the next frame where you do your text :::>displays. Just put the desired command in the function :::>block where I put :::>the traces (after the XMLtoObject call). Then do whatever :::>you need to do to :::>display the text - like have it in frame 2 or something. :::> :::>In other words, don't try and display the XML before its ready. :::> :::> :::>:::>Also, is there a way of determining how many "item"'s there :::>:::>are dynamically? :::>:::>Since I am going to be grabbing this from the net, the :::>:::>number of items may :::>:::>change periodically. If I could determine this, I could :::>:::>loop through all of :::>:::>them with a "for". :::> :::>Yes, any node that has more than one of the same kind is :::>made into an array, :::>so just check the length of the Array, like this: :::> :::>howManyItems = o.rss.channel.item.length; :::> :::>Since there are several "item"nodes, item is an array :::>object. Pretty cool :::>huh. :::> :::> :::> Jason Merrill :::> ICF Consulting Government e-Learning Solutions :::> icfconsulting.com :::> :::> :::> NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
|
|