Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-26-2008, 03:59 PM   PM User | #1
daemonkin
Regular Coder

 
Join Date: Jun 2007
Location: N. Ireland
Posts: 351
Thanks: 16
Thanked 4 Times in 4 Posts
daemonkin is on a distinguished road
Importing User Specific XML

Hi guys,

Got a reasonable experience with importing XML files both static and automatically generated files.

I was trying to create user-specific XML files based on a sessionID and import these for each user's browsing of a site.

EG: A user goes to a gallery site, an XML is compiled of his viewings. He then goes to a Flash page and all his pictures he looked at are there to view.

I have it working for a static XML but I would like this more dynamic.

Any ideas?
Hopeful and desperate
D.
__________________
Daemonkin.
If this was helpful, please add to my reputation
Thousand Sons - Freelance Web Developer - ninetyonedegrees.com
daemonkin is offline   Reply With Quote
Old 11-26-2008, 04:14 PM   PM User | #2
daemonkin
Regular Coder

 
Join Date: Jun 2007
Location: N. Ireland
Posts: 351
Thanks: 16
Thanked 4 Times in 4 Posts
daemonkin is on a distinguished road
This is currently what I use:
Code:
function loadXML(loaded) {
   if (loaded) {
       xmlNode = this.firstChild;
       image = [];
       total = xmlNode.childNodes.length;
       for (i=0; i<total; i++) {
           image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
       }
       firstImage();
   } else {
       content = "file not loaded!";
   }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("murals.xml");
__________________
Daemonkin.
If this was helpful, please add to my reputation
Thousand Sons - Freelance Web Developer - ninetyonedegrees.com
daemonkin is offline   Reply With Quote
Old 11-26-2008, 08:24 PM   PM User | #3
gnomeontherun
Senior Coder

 
gnomeontherun's Avatar
 
Join Date: Sep 2007
Location: Houston
Posts: 2,846
Thanks: 10
Thanked 238 Times in 229 Posts
gnomeontherun will become famous soon enoughgnomeontherun will become famous soon enough
I would think that you would have more luck by having a server script (like PHP) produce a dynamic XML sheet for your flash page. For example

Code:
xmlData.load("murals.php");
where the murals.php file actually outputs proper XML file based on the user.

How exactly do you track your users and how will you decide what the xml file should contain? I suppose that is the real question.
__________________
jeremy - gnomeontherun
Educated questions often get educated answers, and simple questions often get simple answers.
gnomeontherun is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:53 AM.


Advertisement
Log in to turn off these ads.