| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Hey everyone its peebman2000, my boss has me doing programming as well as web designing. I think I need a raise
. I'm working with flash and actionscript to load text and an image into a flash document, I"m using flash 8. Now I was sent to training for this, but I haven't used it since training; which was like a year ago.Anyway, i've looked through my training book and online, and I keep getting an error saying: Quote:
I have a folder that has the images and xml file, but I keep getting this error. Per what I've found online it might be something with my actionscript, i'm a huge newbie when it comes to actionscript. This is my first time using it for a project. Does anyone here know a little about actionscript and give any help on what i'm doing wrong? Let me know and thanks. XML file: Quote:
Actionscript: Code:
menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function(success) {
if(success){
item = _root.attachMovie("menutitle", "menutitle", 0);
item._x = 90;
item._y = 15;
item.titel_txt.text = this.childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes;
}
}
menuXml.load("C:\Documents and Settings\DPeebles\Desktop\osfcflash\osfc.xml");
|
|
#2
|
|||
|
|||
|
Does changing from this:
("C:\Documents and Settings\DPeebles\Desktop\osfcflash\osfc.xml"); to this: ("C:/Documents and Settings/DPeebles/Desktop/osfcflash/osfc.xml"); Make any difference? |
![]() |
| Viewing: ASP Free Forums > Web Design > Multimedia > XML file loaded into flash |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|