Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Regarding the Flash with XML database thread

Status
Not open for further replies.

PiZzEe

Technical User
Mar 2, 2005
14
CA
Hey all...i need some help. I thought i had everything sorted out with regards to that xml database 'pixl8r' was helping everyone out with but i don't. Here is the link for the thread:
Well, pixl8r, i was hoping you could help if you're still around. I'm trying to get this database to show up on the internet. It's weird. It works on my computer but when i upload to my server nothing shows. Could someone, if not pix8r, look at my file and tell me what i'm doing wrong with the data grid script?? and how i can make everything good. Below is a link to my .fla as well as my xml file. The .fla file is mx 2004. It only works with mx 2004 components ;) Please someone help as soon as you can. Much appreciated. JP

 
Hey Old... did you finally upgrade to 2004 Pro?! Cool! :)

Your file also appears to be working just fine for me. If you do have the XML file in the same directory as the swf file on the server then one thing you might want to try is using a fully qualified address in the URL field of the XMLConnector component (eg: What kind of server is it?

One thing that I did noticed is your addMovieClips function is not dynamic. This is all you really need.

Code:
function addMovieClips(i) {
	while (data_ds.hasNext()) {
		//trace("called else");
		attachMovie("projectClip"+i, "site"+i, getNextHighestDepth(), data_ds.currentItem);
		this["site"+i]._y = this["site"+i]._y+(i*100);
		i++;
		data_ds.next();
	}
	_parent._parent.scroller.vScrollPolicy = "on";
	_parent._parent.scroller.hScrollPolicy = "off";
}

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
my server is garbage...i'm with freeservers...not to put them down but everytime i upload a file that's already been on the server it doesn't change to the revised version right away. It's weird. Anyways, thanks for getting back to me guys. yeah pixl8r...i'm glad you're still kicking around...the reason why i attached 13 movieclips to that code is because in each movieclip on my library i have a different link to a project. I wanna have separate links for my projects ;). Is there an easier or better way to do this?? I'm going nuts because the way i did it works on my computer but not over the internet still...i tried what u said about the xmlConnector.

Another thing is the way the xml is set up. When i add more than 5 items it doesn't show over the internet...i tested everything. I can't put more than 5 in the list the way it's been set up?? When i use just that code you showed me above there(without the 13 attached movies) and i have my list of 13 items in the xml it doesn't show as well. So, i assume it has something to do with the xml. What do you think?? Anyways, get back to me when you get a chance. Thanks again. JP
 
Make one target movieclip with a dynamic URL for the link, then pass the URL in through the addMovieClip() parameter (that's what the URL item is for in the XML). I think there is an example of this in that XML DB thread. If not let me know and I will see if I can dig it up.

I posted your file on my server and, like Oldnewbie, it works just fine with all 13 listings( The problem may be the (freeserver) machine that you have it on, though I admit I'm not really sure what the problem could be (caching maybe).

Wow JT that almost looked like you knew what you were doing!
 
Hey...i have no clue either that's really weird. Could you give me an example of what you mean for the dynamic links? I thought the way i set it up was fine. Also, about the xml, is it fine the way it is because that's the problem of why it's not showing. Can i set it up different?? JP
 
The way you have it set up will "work" but it is not really dynamic. I do not see anything wrong with your XML and it works fine for me. I dare say that is not your problem. Here is an example of how to do the dynamic links.

Sample

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
alright cool...thanks a lot. Yeah i talked to a guy from my server company and he says he's gonna fix it. My server can't read the xml for some reason. Thanks for getting back to me. The way i did it is dynamic for the most part...i just had to have the links in flash that's all ;) Peace out. JP
 
Only the link part isn't dynamic :)

Good luck!

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top