PDA

View Full Version : Error hyperlinking a animation


Sunchild
04-05-2005, 06:26 AM
i have made aan animation i wanted to give the whole animation a
hyperlink so i made the movie clip of the animation n than gave applied the following script to it
movieClipInstanceName.onPress = function ()
{
getURL("http://www.domain.com/somePage.html", "_blank");
}

so now flash gives an error .........
Statement must appear within on/onClipEvent handler
wat is the problem here
i cudnt find out as im too new this action script :(

Flash Gordon
04-05-2005, 07:10 AM
slap that code on the main time line not the MC

R Fredriksson
05-18-2005, 01:12 PM
does that mean creating a new layer an pasting the code in that layer? If so, it didnīt work for me but I am completly new to this so I can have missed something else taht is obvous for flashers.