I need to go the other way _javascript_ to Flash
In action script there is a function called loadShape(), which I want to
call using _javascript_.
We tried
<object name="myFlashMovie" id="myFlashMovie"
<script language="_javascript_">
objFlash = window.document.myFlashMovie
objFlash.loadShape("circle");
</script>
The _javascript_ gags on the objFlash.loadShape("circle"); line
Any suggestions?
Thanks,
Duane
_____
From: Michael Greenberg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 8:12 PM
To: CF-Community
Subject: Re: Flash Question
sure...lets say you want to launch a pop up, you have this js in your html
function Launch(page) {
OpenWin = this.open(page, "CtrlWindow",
"toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=550,hei
ght=550");
}
Then you have a movie clip in flash that would call it as follows from a
movie clip:
button_mc. {
getURL("_javascript_:Launch('http://www.cnn.com')")
}
Thats all there is to it :)
Thanks,
Michael
Duane Boudreau wrote:
> All,
>
>
> My flash guy here is struggling with a flash/_javascript_ problem.
>
>
> Can he use _javascript_ to call a function in the flash movie?
>
>
> Duane
>
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
