A Flash Developer Resource Site

Results 1 to 14 of 14

Thread: Loading an XML File?

  1. #1
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702

    Loading an XML File?

    How would one go about loading an XML file?

    I'd like to load my XML file from eBlogger into...say a content pane?

    Here is the xml file
    http://www.nsfilms.com/feeds/rss.xml
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  2. #2
    Member
    Join Date
    Dec 2005
    Location
    Park Slope, Brooklyn
    Posts
    56

    RSS and Flash

    I haven't tried it at all (yet), but after a little research this looks, on the surface, easier to implement than many solutions out there:

    http://www.flash-db.com/rss/

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    Any thoughts on how to load the XML file into a contentpane? Come on Chris..I know you have the answer
    -Dave
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  4. #4
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Lots of examples. Question is...what is the data. Pics?

    If it's to load that EBlogger backend...you're on your own. That's why I never replied. Besides...your E-Blogger backend is ATOM not RSS 2.
    Last edited by Chris_Seahorn; 01-23-2006 at 03:50 AM.

  5. #5
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    Dude, don't you sleep?

    I see what you're saying about the above link...What about if I used the RSS fee d from myspace?
    http://blog.myspace.com/blog/rss.cfm?friendID=21437846
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  6. #6
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    I get the late shift with the baby.

    If that myspace is an RSS 1 through 2 you can use the backend from my blogger download to strip it as variables with zero coding (well...maybe one edited line of php). Let me find that one too. Just getting things back in order.

  7. #7
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    Do you mean KBlog? I have that download. How do I modify it to implement it into my site?
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  8. #8
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    In the "blogdata" subfolder, there is a file named "getfeed.php". Alter this line:

    $feedurl= $_POST["feedurl"];

    to be a hard coded address (your myspace addy)

    $feedurl= "http://www.pathtosomerssfeed.com/backend.php";


    Make sure "xmlclass.php" is in that same folder (getfeed.php includes it) and then direct hit it in your browser and if it will parse...you will get a return as a string with a variable name of "txtMain":


    &txtMain="thebrokendownfeed";

    If you put a dynamic textfield with a variable name of "txtMain" inside your movie and hit that backside you should get a nicely laid out feed.

  9. #9
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    Cool. I'll try this out...Thanks.
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  10. #10
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    Is there a way to assign a variable to a contentpane?
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  11. #11
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    Chris, what do you mean by "hit that backside you should get a nicely laid out feed." ?

    Is there a way to put this into a contentpane?
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  12. #12
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    http://sandbox.blogdns.com/previews/...NTENTPANE.html

    That "getfeed.php" I mentioned is being told to load:

    http://sandbox.blogdns.com/backend_black.php

    Then the text variable "txtMain" created in "getfeed.php" is sent back in to our movie. I purposely tied that return to the loadVars return to show you how that works just like your form....we don't send the data to the contenpane until the loadVars signals success.

    It's in my downloads.

  13. #13
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    Friggin amazing as usual.
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  14. #14
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Friggin amazing as usual.
    Nope. That my friend is just Practical Dynamics

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center