Multimedia
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignMultimedia

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 5th, 2008, 11:40 AM
peebman2000 peebman2000 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Location: Where I live
Posts: 271 peebman2000 User rank is Sergeant (500 - 2000 Reputation Level)peebman2000 User rank is Sergeant (500 - 2000 Reputation Level)peebman2000 User rank is Sergeant (500 - 2000 Reputation Level)peebman2000 User rank is Sergeant (500 - 2000 Reputation Level)peebman2000 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 14 h 32 m 14 sec
Reputation Power: 11
Question XML file loaded into flash

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:
Error opening URL "file:///C:\documents and Settings\peebma\desktop\sfcflash\sfc.xml"


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:
<xml>
<titles>
<title>
<text>Hello</text>
<img>images/bbq.jpg</img>
</title>
</titles>
</xml>


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");

Reply With Quote
  #2  
Old May 11th, 2008, 11:10 PM
q97 q97 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Location: Brisvegas
Posts: 275 q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 4 Days 10 h 15 m 29 sec
Reputation Power: 37
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?

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignMultimedia > XML file loaded into flash


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway