Hi,

How do I call a custom function from javascript? I've placed a function on my main timeline called attachClip(). Also, what if I want to call a function within a clip on the main timeline?

Thanks!

=^..^=
catfink


//Flash main timeline script:
function attachClip()
{
attachMovie("icon_server", "ks", l);
ks._x = 200;
ks._y = 200;
}



// This is where I try to call the ActionScript function
function addIcon()
{
flashObj().attachClip();
}


function flashObj()
{
if(navigator.appName == "Netscape")
{
return document.embeds[0];
}
else
{
return window['flashObject'];
}
}