Hi all,
i am stuck.
I have loaded a xml file and this works fine. I have made dynamic mc with corresponding textfields.
But now i got a problem with the onPress. All i want to do is “onPress” an movieClip(“content”) is activated to move and the corresponding xml text must be loaded into a content->textfield
The as that is not working is red
var myClipArray = new Array ();
var myClients = new Array ();
var myCases = new Array ();
for (child = 0; child < count; child++) {
currentClient = portfolioTag.childNodes[child];
.....
.....
portfolioBtn = _root.createEmptyMovieClip ("mc" + child, child);
.....
.....
.....
portfolioBtn.NAME = currentClient.attributes.NAME;
myClients.push (portfolioBtn.NAME);
//show the corresponding case text
portfolioBtn.TEXT = currentClient.attributes.TEXT;
myCases.push (portfolioBtn.TEXT);
trace ("CASE TEXT: " + myCases[child]);
//here are the actions onPress
//the corresponding case needs to be loaded into mc content
_root["mc" + child].onPress = function () {
_root.content.growMe (200, 150, 0.4);
trace (this);
[COLOR=red] var thisCase = myCases[child];
_root.content.scroller.text = thisCase;[/COLOR]
this.onEnterFrame = function () {
_root.content.swapDepths (1000);
_root.content.rotate (6, 3, 0);
};
};
Any ideas,
thanks in advanced