at my site Mediaatomic.com I have PHP/MySQL talking to flash
when the holder movie opens it loads my home.swf into the content movie clip… It works fine once but if you click the home button (which runs the same function) or refresh the page it blanks out the text field and won’t reload the content. does anyone know how I can fix this or what’s causing the problem?
my code for the holder
stop();
goHome();
function goHome() {
_root.background_mc.gotoAndStop(1);
_root.holder_mc.loadMovie("home.swf");
}
home_mc.onRelease = function() {
goHome();
//_root.holder_mc.loadMovie("home.swf");
};
my code for the home.swf
/*--------- set variables------------*/
var format = new TextField.StyleSheet();
var path = "mediaAtomic.css";
var blogStuff_lv:LoadVars = new LoadVars();
/*--------- Load Stuff------------*/
format.onLoad = function(loaded) {
if (loaded) {
blogStuff_lv.onLoad = function(success:Boolean) {
if (success) {
blog_txt.styleSheet = format;
blog_txt.text = this.blog;
} else {
blog_txt.text="Bad PHP Read Please Refresh";
}
};
} else {
blog_txt.text="Bad CSS Read Please Refresh";
}
};
blogStuff_lv.load("flashFeed.php");
format.load(path);