Go Back   OXYLUS Flash Board > Support > Sliding List

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-17-2008, 02:03 PM
Junior Member
 
Join Date: Sep 2008
Posts: 5
Default Adding a "Please wait" notice in allowance - waiting for large XML to load

Hi,
can you please tell me what I need to do to ad a 'please wait' notice to flash up whilst an XML file loads. The file I am using contains an XML that is quick big - it's 1.3mb (lots of links and categories)

i just want something simple to show up in the black space whilst it waits for the XML to load, so people are aware that it is actually loading and that there is not a empty space on my page. Then once the XML has loaded, it dissapears.

I would really appreciate your help on this.

thanks
Daniel
Reply With Quote
  #2 (permalink)  
Old 10-18-2008, 11:37 AM
Super Moderator
 
Join Date: May 2008
Posts: 656
Send a message via Skype™ to Adrian
Default

Hi,
Here's a link that helps you preload a xml file:
preloading xml with setInterval - Flash Kit Community Forums

Hoping this will help.
Reply With Quote
  #3 (permalink)  
Old 10-18-2008, 12:23 PM
Junior Member
 
Join Date: Sep 2008
Posts: 5
Default Not sure how to use that

Hi, Thanks for the link - and getting back to me.
relatively new to it all, and i'm not sure what you mean and how to implement that into the sliding list.

Do you mean that that xml would pre-load whilst on i'm on another page, so when I come to use the sliding list page, the xml would already be loaded?

If so, that is great,

Could you lend a little helping hand on what i should add, replace or write to get this done.

Many thanks
Daniel
Reply With Quote
  #4 (permalink)  
Old 10-20-2008, 07:03 PM
Junior Member
 
Join Date: Sep 2008
Posts: 5
Default a little help please.

Hi, I'm not sure what to do now.
I'm a little stuck.

The link you posted left me a little unclear of what to do.
Could you please spare me a few minutes to tell me what I need to do.


I have a preloader on frame 1 with the following AS:


//set mask
grad.setMask(percentage_mc2);
onEnterFrame = function () {
//get loading percentage
loading = Math.round(_root.getBytesLoaded());
total = Math.round(_root.getBytesTotal());
percentage = Math.round((loading/total)*100);
//display percentage
percentage_mc1.percentage = percentage_mc2.percentage=percentage+"%";
if (isNaN(percentage)) {
percentage = 0;
} else if (loading == total && loading>100) {
//fade out preloader when loaded
if (this._alpha>0) {
this._alpha += (-this._alpha)/5;
} else {
_parent.play();
delete this.onEnterFrame
}
}
};


Can you tell me how I can make this communicate with the SLIDING LIST.


Thanks
for your help. I really appreciate it.
Reply With Quote
  #5 (permalink)  
Old 10-22-2008, 02:03 PM
Super Moderator
 
Join Date: May 2008
Posts: 656
Send a message via Skype™ to Adrian
Default

You have this code in the first frame:
Code:
var xo:XML = new XML();
xo.ignoreWhite = true;
xo.onLoad = function() {
	_root.onEnterFrame = checkIfMovieLoaded;
};
function checkIfMovieLoaded() {
	if (_root.getBytesLoaded() == _root.getBytesTotal()) {
		delete _root.onEnterFrame;
		_root.gotoAndStop(2);
		
	}
}
xo.load(xml == undefined ? "data.xml" : xml);
change it to:

Code:
var xo:XML = new XML();
xo.ignoreWhite = true;

//set mask
grad.setMask(percentage_mc2);
onEnterFrame = function () {
//get loading percentage
loading = Math.round(xo.getBytesLoaded());
total = Math.round(xo.getBytesTotal());
percentage = Math.round((loading/total)*100);
//display percentage
percentage_mc1.percentage = percentage_mc2.percentage=percentage+"%";
if (isNaN(percentage)) {
percentage = 0;
} else if (loading == total && loading>100) {
//fade out preloader when loaded
if (this._alpha>0) {
this._alpha += (-this._alpha)/5;
} else {
delete this.onEnterFrame
}
}
};

xo.onLoad = function() {
	gotoAndStop(2);
};
xo.load(xml == undefined ? "data.xml" : xml);
Reply With Quote
  #6 (permalink)  
Old 10-24-2008, 07:31 PM
Junior Member
 
Join Date: Sep 2008
Posts: 5
Default Still not working

Hi Adrian,

this still isn't working.
Might I be able to send you the two files, just so you can have a look?

You can email me your details at daniel@djojproductions.com

Much appreciated
Daniel
Reply With Quote
  #7 (permalink)  
Old Today, 10:31 AM
Junior Member
 
Join Date: Jan 2009
Location: Germany
Posts: 1
Send a message via ICQ to StoyakE16 Send a message via Skype™ to StoyakE16
Default Do you search? Choose this: prescription viagra

Dr.Ford promoted sildenafil veterinary medicine - If you take Viagra and develop cardiac symptoms (for example, dizziness, nausea, and chest pain) during sexual activity, do not continue. Alert your doctor to the problem as soon as possible.


================================= Best regards, yours faithfully Stoyak.
Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.