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

flash actionscript : Embed button instance inside movie clip


gaGeet
2/10/2004 7:59:09 PM
Hi people

Currently, I have created an empty movie clip, and loaded it with a jpeg
picture. Something like this..

createEmptyMovieClip("instanceName",1)
instanceName.loadMovie(picName)

Now I want to create an instance of a button inside this movie clip
I want it to be draggable, define its hit area... etc

How should I go abouts doing this

Thanks. =
Jack
2/10/2004 9:08:10 PM

[quoted text, click to view]

create a clip within a clip, add actions to the outer
and load your image to the inner,

this.createEmptyMovieClip("Outer",10);
Outer.createEmptyMovieClip("Inner",11);

Outer.onPress = function(){
startDrag(this,false);
trace(this);
};
Outer.onRelease = function(){stopDrag();};

Outer.Inner.loadMovie("pic1.jpg");



gaGeet
2/11/2004 4:51:37 PM
AddThis Social Bookmark Button