Forum Moderators: open
myUrlButton.onRelease = function() { getURL(....); }
If you want this accessible by the page itself, you will have to use a query string or flashVars to pass the URL to the Flash object. I haven't done this for a while because I use SWFObject for Flash, which does the same thing in a different way:
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var myVideo = new SWFObject('my-video.swf', 'vid', '330', '290', '6', '#ffffff');
myVideo.addParam("wmode", "transparent");
myVideo.addVariable("url", "enter-your-url-here");
window.onload = function() {
if (document.getElementById('my-video-div')) {
myVideo.write('my-video-div'); }
};
</script>
In the above example, your flash would have a variable "url," so you'd be able to use the first example to do this:
myUrlButton.onRelease = function() { getURL(url); }