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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Invisible button over the Flash movie clip

Status
Not open for further replies.

kars01

MIS
Nov 3, 2006
7
US
I have been trying to link an html file to a Flash movie clip with animations.

In order to link the file, I placed an invisible button over the movie clip. Now when I preview it in the browser, the link works fine, but the invisible button has taken away the animation effects. The clip remains static even when I move my mouse over it.

Any idea why this is happening? Am I doing this wrong?

Any inputs/advice is really appreciated.
 
When I enter the following script in the first frame, I am getting an error (I've pasted it after the script).

button1.onRollOver = over;
button1.onRollOut = out;
button1.onMouseDown = function()
{
getURL('Mypage.html',_blank);
}
button1.text.buttonText.text = "MYPAGE";

function over() {
this.gotoAndPlay(2);
}

function out() {
this.gotoAndPlay(1);
}



**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: '(' expected
on relea

Total ActionScript Errors: 1 Reported Errors: 1


Is there something wrong with the script?
 
Forget the button... Make it a graphic if you need the text displayed.

Just use the following on the first frame...

this.onMouseDown = function(){
getURL("Mypage.html","_blank");
}

This might not work locally, but online clicking anywhere, should open a new window with the link.

Regards. Web Hosting - Web Design
03/13/05 -> OLDNEWBIE VS FLASHKIT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top