Angelozzu
11-23-2004, 03:54 PM
I have a project which incorporates several buttons, when clicked will load a movie clip with dynamic text that will explain different things depending on which button you click. However, while getting the text to work. I am having problems loading the picture.
The button you innitially click reads-
on (press) {
_root.BioMC.gotoAndPlay(2);
myVars = new LoadVars();
//when data is totally loaded from text file:
myVars.onLoad = function(success) {
//copy the variables to the root level
// so they can be read by the display frame...
_root.BioMC.bioData = this.bioData;
_root.BioMC.imageData = this.imageData;
//then display the graphic...
};
//load the data... this line must remain below the onload function
myVars.load("bonanno.txt");
}
--
That is telling the button to load the movie clip and it loads ok and the text loads perfect due to the actionscript-
loadMovie(_parent.bioMC.mine.imageData,"imageTarget");
bioTarget.text = _parent.bioData;
_root.bioMC.imageData = "";
_root.bioMC.statsData = "";
_root.bioMC.bioData = "";
---
The dynamic image window is called ImageTarget and the text window is
called bioTarget but the image will not load.
I hit Control-Test Movie and I get a message
Error opening URL "file:///C|/Documents%20and%20Settings/1/Desktop/NYMH/bonanno1963/undefined"
I then change
loadMovie(_parent.bioMC.mine.imageData,"imageTarget");
to
loadMovie(_parent.imageData,"imageTarget");
and I get a new message:
Error opening URL "file:///C|/Documents%20and%20Settings/1/Desktop/NYMH/bonanno1963/bonanno.jpg
"
---
I'm exhausted and out of ideas. Can someone assist me with some imput as to what may be the problem?
The button you innitially click reads-
on (press) {
_root.BioMC.gotoAndPlay(2);
myVars = new LoadVars();
//when data is totally loaded from text file:
myVars.onLoad = function(success) {
//copy the variables to the root level
// so they can be read by the display frame...
_root.BioMC.bioData = this.bioData;
_root.BioMC.imageData = this.imageData;
//then display the graphic...
};
//load the data... this line must remain below the onload function
myVars.load("bonanno.txt");
}
--
That is telling the button to load the movie clip and it loads ok and the text loads perfect due to the actionscript-
loadMovie(_parent.bioMC.mine.imageData,"imageTarget");
bioTarget.text = _parent.bioData;
_root.bioMC.imageData = "";
_root.bioMC.statsData = "";
_root.bioMC.bioData = "";
---
The dynamic image window is called ImageTarget and the text window is
called bioTarget but the image will not load.
I hit Control-Test Movie and I get a message
Error opening URL "file:///C|/Documents%20and%20Settings/1/Desktop/NYMH/bonanno1963/undefined"
I then change
loadMovie(_parent.bioMC.mine.imageData,"imageTarget");
to
loadMovie(_parent.imageData,"imageTarget");
and I get a new message:
Error opening URL "file:///C|/Documents%20and%20Settings/1/Desktop/NYMH/bonanno1963/bonanno.jpg
"
---
I'm exhausted and out of ideas. Can someone assist me with some imput as to what may be the problem?