I have problem with onclick in Flash, Please help....
I have a javascript function that says the following:
<script type="text/javascript">
function startLoading() {
Element.show('mainAreaLoading');
Element.hide('mainAreaInternal');
}
function finishLoading() {
Element.show('mainAreaInternal');
setTimeout("Effect.toggle('mainAreaLoading');", 1000);
}
function loadContent(id) {
startLoading();
new Ajax.Updater('mainAreaInternal', 'rpc.php', {method: 'post', postBody:'content='+ id +''});
finishLoading();
}
</script>
I make a link in html that goes like this:
onclick="loadContent(1);"
Now, my problem is, how do i do the same link on a button in Flash........?