Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Navigating in Toolbook from embedded flash object

1 view
Skip to first unread message

Mauro Biscione

unread,
Nov 18, 2009, 9:58:44 AM11/18/09
to
Hello,
I have an embedded flash file in ToolBook. I would like to create a
button within the flash movie that will simply navigate to the next
page.

Is this possible? If so, how is this done?

My deployment is dhtml, and my current version is 10.

Thanks very much for your insight,
Mauro

******************************************************************************
Please visit the following website to read the Computershare legal notice: http://www.computershare.com/disclaimer/americas/en
Veuillez visiter le site Web suivant afin de prendre connaissance de l'avis juridique de Computershare: http://www.computershare.com/disclaimer/americas/fr

******************************************************************************

Darrel

unread,
Nov 18, 2009, 4:03:54 PM11/18/09
to
Mauro, here you go.

Make a button in your flash movie, give it an instance name of nextPage_btn.
The following ActionScript will add the event listener and provide a
fscommand that can be read in Toolbook's Action Editor when the button is
clicked. The fscommand provides for two parameters, command and arg. This
will assign "NEXT" to the command parameter. Arg, is not needed.


nextPage_btn.addEventListener(MouseEvent.CLICK, nextPage);

function nextPage(event:MouseEvent):void
{
fscommand("NEXT");
}

In Toolbook, set up the Shockwave OLE. Open the Action Editor for it and
choose "on fscommand". Set up the following logic:

If command = "NEXT"
go to page "Enter desired page here"

I am assuming you are familiar with AS3 a bit and the fscommand. Let me know
if you would like a more detailed explanation and I will email you directly.
Hope this helps.

- Darrel

-----Original Message-----
From: ToolBook Discussion List [mailto:tool...@LISTSERV.PLATTECANYON.COM]
On Behalf Of Mauro Biscione
Sent: Wednesday, November 18, 2009 9:57 AM
To: tool...@LISTSERV.PLATTECANYON.COM
Subject: Navigating in Toolbook from embedded flash object

Hello,
I have an embedded flash file in ToolBook. I would like to create a
button within the flash movie that will simply navigate to the next
page.

Is this possible? If so, how is this done?

My deployment is dhtml, and my current version is 10.

Thanks very much for your insight,
Mauro

***************************************************************************=
***
Please visit the following website to read the Computershare legal notice: =
http://www.computershare.com/disclaimer/americas/en
Veuillez visiter le site Web suivant afin de prendre connaissance de l'avis=
juridique de Computershare: http://www.computershare.com/disclaimer/americ=
as/fr

***************************************************************************=
***

Jeff Rhodes

unread,
Nov 18, 2009, 4:48:57 PM11/18/09
to
I would add Mauro that interacting with the Flash movie requires ToolBook to
treat it as an ActiveX control both natively (which is not a problem) but
also after exporting to DHTML. This in turn means that the communication
will generate an error in browsers other than Internet Explorer.

Anyone yell if they have figured out a way around this for other browsers.

Thanks,

Jeff Rhodes
Platte Canyon Multimedia Software Corporation
"Improving the Lives of Training Developers"
http://www.plattecanyon.com

Plug-In Pro for ToolBook
http://www.plattecanyon.com/pluginpro.aspx

TBK Tracker
http://www.tbktracker.com

Programming for e-Learning Developers: ToolBook, Flash, JavaScript, and
Silverlight
http://www.plattecanyon.com/programmingbook.aspx

The e-Learning Authoring Conference
June 14 - 16, 2010
http://www.elearncon.net

Mauro Biscione

unread,
Nov 19, 2009, 1:01:06 PM11/19/09
to
Hi Darrel/Jeff,
Thanks for the information.

I do have one question about this process. How is a Shockwave OLE set up
in ToolBook?

Thank you,
Mauro

Jeff Rhodes

unread,
Nov 19, 2009, 1:31:49 PM11/19/09
to
Hi Mauro,

Easiest way is to drag on a Universal Media Player or Flash Player from the
Catalog. Then point to a .swf file on your machine. That will add an OLE
button to the Tool Palette. Then delete the UMP or Flash Player group. You
can click the OLE button on the Tool Palette and draw the Shockwave Flash
player on your page or background.

Hope this helps,

Jeff

Thank you,
Mauro

Thanks,

TBK Tracker
http://www.tbktracker.com

Mauro, here you go.


nextPage_btn.addEventListener(MouseEvent.CLICK, nextPage);

If command =3D "NEXT"


go to page "Enter desired page here"

I am assuming you are familiar with AS3 a bit and the fscommand. Let me
know
if you would like a more detailed explanation and I will email you
directly.
Hope this helps.

- Darrel

-----Original Message-----
From: ToolBook Discussion List
[mailto:tool...@LISTSERV.PLATTECANYON.COM]
On Behalf Of Mauro Biscione
Sent: Wednesday, November 18, 2009 9:57 AM
To: tool...@LISTSERV.PLATTECANYON.COM
Subject: Navigating in Toolbook from embedded flash object

Hello,
I have an embedded flash file in ToolBook. I would like to create a
button within the flash movie that will simply navigate to the next
page.

Is this possible? If so, how is this done?

My deployment is dhtml, and my current version is 10.

Thanks very much for your insight,
Mauro

************************************************************************
***=3D


***
Please visit the following website to read the Computershare legal

notice: =3D


http://www.computershare.com/disclaimer/americas/en
Veuillez visiter le site Web suivant afin de prendre connaissance de

l'avis=3D
juridique de Computershare:
http://www.computershare.com/disclaimer/americ=3D
as/fr

************************************************************************
***=3D
***

Iris Peceny

unread,
Nov 20, 2009, 12:16:12 PM11/20/09
to
Hi guys,

This is all good stuff! :-) But how do I tell the OLE object what file to
play?

Thanks
Iris

Jeff Rhodes

unread,
Nov 20, 2009, 2:40:18 PM11/20/09
to
Hi Iris,

You can set the extMovie property via the Property Browser or via the
Actions Editor. You can also call the extLoadMovie() method of the player
using the Actions Editor. I prefer extLoadMovie() as control can lose the
extMovie value for seemingly no reason.

Hope this helps,

Jeff Rhodes
Platte Canyon Multimedia Software Corporation
"Improving the Lives of Training Developers"
http://www.plattecanyon.com

TBK Tracker
http://www.tbktracker.com

Programming for e-Learning Developers: ToolBook, Flash, JavaScript, and
Silverlight
http://www.plattecanyon.com/programmingbook.aspx

The e-Learning Authoring Conference
June 14 - 16, 2010
http://www.elearncon.net

-----Original Message-----
From: ToolBook Discussion List [mailto:tool...@LISTSERV.PLATTECANYON.COM]
On Behalf Of Iris Peceny
Sent: Friday, November 20, 2009 10:16 AM
To: tool...@LISTSERV.PLATTECANYON.COM
Subject: Re: Navigating in Toolbook from embedded flash object

0 new messages