Guys;
For over a week now, I’ve bee struggling with this problem for my current project, which involves many more challenges besides this one, and is soon to reach the deadline. Needless to say, I could really, really use your help. :puzzled:
Here, is a simple HTML page with an iFrame and a button that changes the source URL of that iFrame. The following is the page source, which can also be viewed from browser - simple as that.
[SIZE=1]
<head>
<script type="text/javascript">
function changeURL()
{
document.getElementById('myFrame').src='http://www.altavista.com/';
}
</script>
</head>
<iframe src="http://www.google.com/" width="800" height="400" id="myFrame"></iframe>
<input type="button" value="CHANGE URL" onclick="changeURL()"/>
[/SIZE]What I need though, is to be able to do the same thing but with an SWF button instead, so that the changeURL function is called from within Flash.
As I mentioned, I spent tons of hours looking all over the web for a working solution. This would include most tutorial sites and message boards you know (in addition to the official documentation). The thing is that my AS skills can be described as intermediate at best, so it’s very easy for me to get confused. Some of the unofficial material I found was in AS3, occasionally without the mention of it. Other guides would be a bit dated and fail to take in account Flash Player security related patches/updates/changes, etc. As for the forums, I either get more and more lesson links, or explanations that are not thorough enough for me to comprehend. The guys would, for instance neglect to mention the exact classes that need to be imported, or they’d explain the syntax in a formulaic fashion, as opposed to using plain fictitious or actual examples, you know, quotations, wild cards, in other words the kind of things that imply to pros automatically, but would easily confuse n00bs like me. This breeds even more questions in my head, which I’m too embarrassed to ask more of, knowing how busy everybody is, etc. Some people have info in their blogs, but those are high level users and their examples are so complex that I feel lost.
The reason why I’m telling you all this is because it’s all come down to me having to ask someone to put some primitive example for me, or at least explain it to me in greater detail; not because I’m lazy to do it myself, but because I’m really lost on this one and pressed for time.:crying:
I’m sure my request is a peace of cake for someone who’s already done it. It can’t possibly be anything more than a few lines of code; just a small rectangle that calls that function [COLOR=RoyalBlue]onRelease[COLOR=Black].[/COLOR][/COLOR]
Again, your input would be greatly appreciated. Hope to hear from you soon.
[SIZE=1]PS. I know how to use swfobject.js. Also, if possible, I’d like to pass the URL string as an argument from Flash, or course.
[/SIZE]