Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hitArea ? empty movieclip loads external swf

Status
Not open for further replies.

JohnnyxL

Programmer
Jul 25, 2007
12
US
First, thanks to user kennethkawamoto for solving my last issue, nice work!

I have an empty movieclip, <bettymoolnk> which loads an swf..

loadMovie("domain/bettymoo_link.swf", bettymoolnk);

I would then like to use it as a button...

bettymoolnk.onPress = function():Void {
getURL("domain/bettymoo2.html","_self");
};

but I don't even get a 'finger' when I hover over the animation from that loaded externally.

I have tried to assign a hit area thinking thats where my problem was...

//button movie clip hit area = the other movie clip
bettymoolnk.hitArea = moohit;

where moohit is the instance of square the same color as my background, big enough to give dummies like me ample space to click.

As always, I appreciate the help from this community.

JohnnyXL
 
you are trying to assign the action before loading is complete

use a moviecliploader and place the onrelease code inside a complete function

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top