Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: [flasher] Write in the status bar
From: Paul Willoughby
Date: Wed, 28 Mar 2001 17:30:05 -0000

Actually, you don't need the function in the HTML, you can put all the
javascript on your Flash button, like:

on (rollOver) {
getURL ("javascript: void(window.status = \"your message here\");");
}
on (rollOut) {
getURL ("javascript: void(window.status = \"\");");
}

Still doesn't work in Netscape though :(

paul


> -----Original Message-----
> From: Paul Willoughby
> Sent: 28 March 2001 17:13
> To: flasher from chinwag
> Subject: RE: [flasher] Write in the status bar
>
>
> Luigi wrote:
>
> > Is it possible, from a flash movie, to write in the status bar?
> > I need to display URLs of my flash buttons there...
>
> Here's a way to do it that works in IE on the PC. You need to
> a JavaScript
> getURL from the Flash movie, but first you need the
> JavaScript function in
> your html. Add this to the head tag of your page:
>
> <script language="JavaScript">
> <!--
> function statusMessage(message){
> status = message;
> }
> //-->
> </script>
>
> Then on the button in your Flash movie:
>
> // show a message
> on (rollover) {
> getURL ("JavaScript: statusMessage(\"your message here\");");
> }
> // kill the message
> on (rollout) {
> getURL ("javascript: statusMessage(\"\");");
> }
>
> Calls to javascript functions like this are not consistently supported
> across platforms/browsers, so test on your target machines.
> Also, the getURL
> causes an audible click in IE.
> You could also look at FScommand for javascript/Flash communication
> (www.moock.org/webdesign/flash is a good place to start).
>
> hth
>
> paul



[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]