PDA

View Full Version : attachMovie and Paths not working PLEASE


troyjack
05-14-2004, 03:04 PM
This is probably a stupid question but it is driving me f-ing CRAZY! I have a path problem, and Flash help does not explain paths in idiot terms.

I'm using this code on a button:

on (release){
mc_Holder.attachMovie("floorPlan1", "newName",1);
}

"mc_Holder" is an invisible movie clip inside of another movie clip on the main stage. "FloorPlan1" is the SWF in the library to load into mc_Holder. I know it's a pathing problem because i have gotten it to work on the main stage before. I've tried putting "_root", "_parent", and "this" before "mc_Holder" and it still doesn't work. Smebody PLEASE HELP. I don't know what else to do and I haven't seen a good answer on the forums.
thanks

prt1
05-14-2004, 03:39 PM
Have you set the name of the linkage of the movie clip FloorPlan1 in the library(right click movie in library)
code should be
_root.'your another movie clip name'.mc_Holder etc

Keep trying

troyjack
05-14-2004, 03:57 PM
Yes.
FloorPlan1 is actually the linkage name also

troyjack
05-14-2004, 04:42 PM
I think I figured it out.

Apparently the Instance name can't be the same as the movie clip name.....It works now.

Thanks for the reply Pete.