PDA

View Full Version : call attachMovie from SWF to SWF


vee
12-28-2006, 09:14 PM
I have to swfs
1. mov_a.swf (that has mov_b.swf loaded into a scrollPane)
2. mov_b.swf (has a mc with linkage name "item_mc")
I would like to be able to use attachMovie to bring a mc from the library of mov_b.swf to its stage (not the stage of the calling swf - mov_a.swf). I tried the below but it did not work.

var tmp_mc = _root.scrollPane.content.attachMovie(_root.scrollP ane.content["item_mc"], "item_" + i + "_mc", i, {_y:0});

Slowburn
12-28-2006, 09:30 PM
var tmp_mc = _root.scrollPane.content.attachMovie("item_mc", "item_" + i + "_mc", i, {_y:0});

vee
12-28-2006, 09:40 PM
Thank you.

since that wasnt in the library I the calling swf, i thought that you had to target where the actual movieclip resided, like every other time you need to target something.