Flasher Archive

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


Subject: Re: FLASH: Back button
From: Warren 'The Howdy Man' Ockrassa
Date: Fri, 16 Jul 1999 17:07:28 +0100

boB wrote:

> Hello,

Howdy!

> Is it possible to make a "back" button that acts like the browser "back
> button" in flash.

Well, if you were doing this in an HTML page you'd have to make a
JavaScript call to window.history.go . It'd look something like, if you
had a "back" button in your HTML page:

<form>
<input type = "button" value = "back" onClick =
"window.history.go(-1);">
</form>

However you'd want to put this in your header so it's more accessible, I
suspect:

<script language = "JavaScrpt">

function GoBack()
{
window.history.go(-1);
}

</script>

or thereabouts. Then issue a FS call to execute your JS.

You have a frame, though, which complicates things further -- you may
need to address the target (though maybe not); or you may need to put in
a <base target = "yourTargetFrame"> in the HTML header for the frame
containing the Flash.

BTW: Some of the foregoing was excised from _Designing in JavaScript_ by
Nick Heinle, published by O'Reilly.

HTH!

--
becker("digitalMedia").programmer[#senior] = "Warren Ockrassa"
http://www.beckerinc.com/ warrenatnightwares [dot] com (mailto:warrenatnightwares [dot] com)
-- n i g h t w a r e s --
director faq lingo tutorial free files links
http://www.nightwares.com/

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  FLASH: Back button, boB

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