These has me stumped!
Here’s what i got.
1 movie loaded onto main timeline into mc name “win1”
1 mc on the main stage called “adm”
Now from win1 i want to attach an item from it’s libary onto “adm” but i just cant get it to work. Been tinkering with this a few hours now. The strange thing is if i move the item from the loaded movie libary and place it in the main timeline libary then it works.
Below is the code used to attach the mc
edbt.onPress = function () {
trace ("pressed and editer=" + _root.adm.editer);
_global.editMode = true;
var depth = _root.getNextHighestDepth ();
if (_root.adm.editer == undefined) {
_root.adm.attachMovie ("newsediter", "editer", depth);
_root.adm['editer']._x = 351;
_root.adm['editer']._y = 0;
_root.adm['editer'].mmTitle.text = _parent.newsTitle;
_root.adm['editer'].mmStory.htmlText = _parent.newsStory;
_root.adm['editer'].newsID = newsID;
} else {
_root.adm['editer'].dd._visible = 1;
_root.adm['editer'].tt.text = "Edit news...";
_root.adm['editer'].subut.text = "Update";
_global.ed = newsID;
_root.adm['editer'].mmTitle.text = _parent.newsTitle;
_root.adm['editer'].mmStory.htmlText = _parent.newsStory;
_root.adm['editer'].newsID = newsID;
}
};
Can anyone see were i am going wrong?