Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

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 Dev Shed Forums Sponsor:
  #1  
Old November 24th, 2003, 03:52 PM
orange.man orange.man is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 18 orange.man User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
preloader for data from xml

Hi all,
got a problem that's making me pull my hair out!!

frame 1: Loading data from a xml file:
slides_xml = new XML();
slides_xml.onLoad = startSlideShow;
slides_xml.load("gallery.pop.xml.inc.php");
slides_xml.ignoreWhite = true;
function startSlideShow(success) {
if (success == true) {
rootNode = slides_xml.firstChild;
totalSlides = rootNode.childNodes.length;
firstSlideNode = rootNode.firstChild;
currentSlideNode = firstSlideNode;
currentIndex = 1;
updateSlide(firstSlideNode);

}
}

All's sweet, then [still in frame 1]:
function updateSlide(newSlideNode) {
imagePath = newSlideNode.attributes.jpegURL;
loadMovie(imagePath, targetClip);
}

ok, got the jpeg to be loaded into 'targetClip', but how can I do a preloaded for the image?
Have tried:

Frame 1:
iStatus=0;
setProperty("pBar",_xscale,0);

Frame 2:

iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded/iBytesTotal)*100;
setProperty("pBar", _xscale, iBytes);
sStatus=iBytes add "%";

Frame 3:
if (iBytes<100) {
gotoAndPlay(2);
} else {
gotoAndPlay(4);
}

All the above does is create a loading bar for the actual movie, NOT the image 'targetClip'.

How do I find out how much of the 'targetClip' has loaded? Doing my head in...
Thanks in advance

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > preloader for data from xml


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 2 hosted by Hostway
Stay green...Green IT