design.ersblock - The Web's Friendliest Forum
September 06, 2010, 06:49:50 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: flash and xml  (Read 1316 times)
0 Members and 1 Guest are viewing this topic.
Shepster
Member
**
Posts: 212



View Profile WWW
« on: January 26, 2008, 08:50:25 PM »

Hi all.

ok i wanna load a password and username from an xml file and validate it against entered user/ pass.

sumink like this:
Code:
var loginxml:XML = new XML();
loginxml.ignoreWhite = true;

loginxml.onLoad = function(ok:Boolean){
if (ok){
trace("loaded loginxml.xml");
trace(loginxml.what do i place here?);
}else{trace("error loading loginxml.xml");}
}

loginxml.load("loginxml.xml");
the loginxml sumink like this

<login username='username' password='password'>

how do i access the values of username and password?
Code:
trace(loginxml.what do i place here?);

cheers all.
Logged
kevdotbadger
Administrator
Member
*****
Posts: 2587


View Profile Email
« Reply #1 on: January 28, 2008, 12:08:33 PM »

our flash guru moody doesn't come here anymore Sad
Logged

Devil7
Founder
Member
*****
Posts: 1958


devil7@tech22.co.uk
View Profile WWW
« Reply #2 on: January 28, 2008, 12:47:24 PM »

our flash guru moody doesn't come here anymore Sad
he doesn't? why not,??? i thought i'd seen him on the other day
maybe my imagination Huh?
Logged

Don't wish life was easier,
wish you were better

- Jim Rohn
kevdotbadger
Administrator
Member
*****
Posts: 2587


View Profile Email
« Reply #3 on: January 28, 2008, 03:14:12 PM »

Hmmm, i ain't seen him on here recently. He's on MSN so i'll ask im to pop in and take a look.
Logged

Shepster
Member
**
Posts: 212



View Profile WWW
« Reply #4 on: January 28, 2008, 09:30:12 PM »

cheers for the replys guys.

worked  out the answer:


firstChild.childNodes[0].firstChild.nodeValue
firstChild.childNodes[1].firstChild.nodeValue

see ya
Logged
moody
Mohammed Zainal
Administrator
Member
*****
Posts: 1969


he who gains victory over himself is all powerful

17998888
View Profile WWW
« Reply #5 on: February 01, 2008, 07:19:36 PM »

Moe is always around mates , its just the new job is taking all of my time , i popin everyweek from time to time .
you know i love the DB's Wink

Shepster , its not advisable to have the password in an xml file where users can view it , i'd recommend having it in a database like Mysql  or hardcoded in php .
Logged

Bahrain website design www.zainals.com
Pages: [1]
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!