Hey everyone,
Im trying to achieve what should be a simple task. I have written a function in javascript which resizes and changes the source of a HTML iframe. Now I need to activate this function from a button in my flash movie. I have looked at heaps of tutorials on how to do this, but I just cant get it to work. I am using flash 8 if its important.
My javascript function is as follows:
function resetframe() {
framechange = document.getElementById(‘results’);
framechange.src = ‘…/frametest2.html’;
framechange.height = ‘800px’;
}
which works fine…
Now my actionscript on my button in flash:
on(press) {
getURL(“javascript:resetframe()”);
}
If someone could help me out that would be awesome.
Cheers.
Grant