Groups | Blog | Home
all groups > flash actionscript > may 2004 >

flash actionscript : attachMovie



speedy d
5/20/2004 8:05:22 PM
How do you attach a movie clip to another movie clip if you only know the instance name, not the identifier?

to 'attachMovie' you need to know the ID linkage.

any ideas?

Thanks,

DD

mandingo
5/20/2004 10:47:42 PM
how do you intend to attach any movie with the attachMovie() method without
knowing the identifier?

if what you want is to duplicate the movie then use that :

duplicateMovieClip("myFirstMovie","mySecondMovie",1);

hope that helps,
cheers,
speedy d
5/21/2004 12:17:49 AM
I will look in to this.

Basically i want to attach a movieclip, of which i will not know the
Identifier to the contents of a scrollPane.

This use to be possible in Flash 6 with setScrollcontent, but this has been
made redundunt in Flash 7. Most odd.

setScrollContent use to let you add either a movieClips ID name, or instance,
allowing for movies out of a library to be put in the contents, or movieClips
on the stage.

All that is avilable now is contentPath, which only allows for an identifier
(movieClip form the library).

Cheers,

DD
AddThis Social Bookmark Button