ok, tried that...you can view the result here.....
http://designsbyjohnson.com/ Now, I used both methods there, I tried yours first using Flash's native XML
engine, then the same using the XOM Class. Both failed to load on the server
side and local machine site, but worked great in the testing enviroment. The
main reason I am baffled here is that it is able to get and display one XML,
but not the other that makes no sense to me. Here is the code from the two XML
displays I have going on.....
// NEWS XML DISPLAY
--------------------------------------------------------------------------------
-----------------------------
/*
var news_xom = new com.tinlion.XOMClass();
news_xom.addListener(xomListener);
news_xom.load("
http://www.designsbyjohnson.com/xml/newsfeed.xml");
var xomListener2 = new Object();
news_xom.onLoad = function() {
_root.NewsFrame_mc.news_mc.tester123_mc.text = "Loaded";
_root.NewsFrame_mc.news_mc.newsContent_mc.newDate1_mc.text =
news_xom.docRoot.featurenews.link[0].news_header;
_root.NewsFrame_mc.news_mc.newsContent_mc.newDate2_mc.text =
news_xom.docRoot.featurenews.link[1].news_header;
_root.NewsFrame_mc.news_mc.newsContent_mc.blurb1_mc.text =
news_xom.docRoot.featurenews.link[0].text_blurb;
_root.NewsFrame_mc.news_mc.newsContent_mc.blurb2_mc.text =
news_xom.docRoot.featurenews.link[1].text_blurb;
};
*/
// OLD METHOD
var xml:XML = new XML();
xml.onLoad = function(success){
if (success){
_root.NewsFrame_mc.news_mc.tester123_mc.text = "Loaded";
}else {
_root.NewsFrame_mc.news_mc.tester123_mc.text = "Failed";
}
}
xml.load("
http://www.designsbyjohnson.com/xml/newsfeed.xml");
// News Drag Function
this.newsBG_mc.onPress = function() {
startDrag(_root.NewsFrame_mc,false,20,94,436,20);
_root.NewsFrame_mc.swapDepths(50);
_root.FlickrFrame_mc.swapDepths(1);
}
this.newsBG_mc.onRelease = function() {
stopDrag();
}
this.closer_mc.onRelease = function() {
unloadMovie(_root.NewsFrame_mc);
}
// PHOTOS XML DISPLAY
--------------------------------------------------------------------------------
-----------------------------
#include "includes/XOMClass/XOMClass.as"
var presentation_xom = new com.tinlion.XOMClass();
presentation_xom.addListener(xomListener);
presentation_xom.load("
http://www.flickr.com/services/feeds/photos_public.gne?id =37488314@N00&format=rss_200");
var xomListener = new Object();
preloadIA = [];
presentation_xom.onLoad = function() {
i = 0;
do {
rclip = _root.FlickrFrame_mc.flickrViewerHome_mc["flickrPhoto" + i +
"_mc"].mask.createEmptyMovieClip("newLoad_mc"+i, 10);
rclip.loadMovie(presentation_xom.docRoot.rss.channel.item[i]["media:content"].at
tributes.url);
rclip._y = -28;
rclip._x = -80;
rclip._xscale = 38;
rclip._yscale = 38;
rclip.ivar = i;
preloadIA[ i ] = setInterval(preloadF, 100, rclip);
function preloadF(mc) {
if (mc.getBytesLoaded()>0 && mc.getBytesLoaded()>=mc.getBytesTotal()) {
clearInterval(preloadIA[mc.ivar]);
mc.setMask(_root.FlickrFrame_mc.flickrViewerHome_mc["flickrPhoto" + mc.ivar +
"_mc"]); // or even simpler mc.setMask(mc)
}
}
i++;
} while (i<9);
};
// Flickr Drag Function
this.flickrBack_mc.onPress = function() {
startDrag(_root.FlickrFrame_mc,false,20,94,436,20);
//_root.FlickrFrame_mc.swapDepths(_root.NewsFrame_mc);
_root.NewsFrame_mc.swapDepths(1);
_root.FlickrFrame_mc.swapDepths(50);
}
this.flickrBack_mc.onRelease = function() {
stopDrag();
}
this.flickCloser_mc.onRelease = function() {
unloadMovie(_root.FlickrFrame_mc);
}
_root.FlickrFrame_mc.flickrViewerHome_mc["flickrPhoto0_mc"].onRelease =
function() {
getURL(presentation_xom.docRoot.rss.channel.item[0].link,"_blank");
}
_root.FlickrFrame_mc.flickrViewerHome_mc["flickrPhoto1_mc"].onRelease =
function() {
getURL(presentation_xom.docRoot.rss.channel.item[1].link,"_blank");
}
_root.FlickrFrame_mc.flickrViewerHome_mc["flickrPhoto2_mc"].onRelease =
function() {
getURL(presentation_xom.docRoot.rss.channel.item[2].link,"_blank");
}
_root.FlickrFrame_mc.flickrViewerHome_mc["flickrPhoto3_mc"].onRelease =
function() {
getURL(presentation_xom.docRoot.rss.channel.item[3].link,"_blank");
}
_root.FlickrFrame_mc.flickrViewerHome_mc["flickrPhoto4_mc"].onRelease =
function() {
getURL(presentation_xom.docRoot.rss.channel.item[4].link,"_blank");
}
_root.FlickrFrame_mc.flickrViewerHome_mc["flickrPhoto5_mc"].onRelease =
function() {
getURL(presentation_xom.docRoot.rss.channel.item[5].link,"_blank");
}
_root.FlickrFrame_mc.flickrViewerHome_mc["flickrPhoto6_mc"].onRelease =
function() {
getURL(presentation_xom.docRoot.rss.channel.item[6].link,"_blank");
}
_root.FlickrFrame_mc.flickrViewerHome_mc["flickrPhoto7_mc"].onRelease =
function() {
getURL(presentation_xom.docRoot.rss.channel.item[7].link,"_blank");
}
_root.FlickrFrame_mc.flickrViewerHome_mc["flickrPhoto8_mc"].onRelease =
function() {
getURL(presentation_xom.docRoot.rss.channel.item[8].link,"_blank");
}