PDA

View Full Version : problem with load movie


onvio
10-14-2005, 06:36 AM
I am creating an empty movie clip, giving it an instance name, and loading a .jpg into the movie clip. This works fine but now I want to make this clip to be clickable and call a function when clicked on. Can someone please let me know why this is not working or offer some other possible alernatives.

_root.createEmptyMovieClip("clip1", 10);
clip1.loadMovie("image.jpg", 20);
clip1._x = 10;
clip1._y = 20;

clip1.onRelease = function() {
getURL("http://www.abc.com", "_blank");
}

Sunny13
10-14-2005, 07:05 AM
use it like this.....
_root.createEmptyMovieClip("clip1", 10);
clip1.beginFill(0x0000FF, 30);
clip1.lineStyle(5, 0xFF00FF, 100);
clip1.moveTo(0, 0);
clip1.lineTo(300, 0);
clip1.lineTo(300, 300);
clip1.lineTo(0, 300);
clip1.lineTo(0, 0);
clip1.createEmptyMovieClip("clip2", 11);
clip1.clip2.loadMovie("aa.jpg", 20);
clip1.clip2._x = 30;
clip1.clip2._y = 30;
clip1.onRelease = function() {
getURL("http://www.abc.com", "_blank");
};