Exploring HyperLogo Tutorial
109 pages
English
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres
109 pages
English
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres

Description

Exploring ®HyperLogo Tutorial®A Scripting Language for HyperStudioby Bill Lynn® ®For Macintosh and WindowsRoger WagnerPublishing, Inc. HyperStudio Design: Roger Wagner and Michael O’Keefe1050 Pioneer Way, Suite P HyperLogo Programming: Mike Westerfield—ByteWorks, Inc.El Cajon, CA 92020 HyperLogo Tutorial: Bill Lynn© Copyright 1993-97 Roger Wagner HyperLogo Reference: Mike WesterfieldPublishing, Inc. All Rights Reserved.Layout & Design Artist: Steve AllenCustomer Service & Technical Support: Technical Assistance: Chris Saulpaugh619-442-0522, EXT. 139:30 am. - 5:30 pm PSTPlease have your HyperStudioRegistration Number ready.Document Code: HLT–042597.1.pdfHyperStudio and HyperLogo are registered trademarks of Roger Wagner Publishing, Inc. All rights reserved worldwide.Apple, QuickTime, QuickDraw, and Macintosh are registered trademarks of Apple Computer, Inc.Windows is a registered trademark of Microsoft CorporationAll other copyrights and trademarks are held by their respective owners.ISBN 0-927796-60-01997 98 99 10 9 8 7 6 5 4321HyperLogo Manual Page 2Welcome to Exploring HyperLogoWhen the Macintosh version (and later the Windows version) of HyperStudio was officially releasedin May, 1993 I was surprised to find that the resident scripting language was a version of Logo calledHyperLogo. “Isn’t Logo that kids’ language for drawing designs on the screen,” I thought to myself?“What does Logo have to do with scripting?” I was sceptical. I had ...

Informations

Publié par
Nombre de lectures 52
Langue English

Extrait

Exploring ®HyperLogo Tutorial
®A Scripting Language for HyperStudio
by Bill Lynn
® ®For Macintosh and WindowsRoger Wagner
Publishing, Inc. HyperStudio Design: Roger Wagner and Michael O’Keefe
1050 Pioneer Way, Suite P HyperLogo Programming: Mike Westerfield—ByteWorks, Inc.
El Cajon, CA 92020 HyperLogo Tutorial: Bill Lynn
© Copyright 1993-97 Roger Wagner HyperLogo Reference: Mike Westerfield
Publishing, Inc. All Rights Reserved.
Layout & Design Artist: Steve Allen
Customer Service & Technical Support: Technical Assistance: Chris Saulpaugh
619-442-0522, EXT. 13
9:30 am. - 5:30 pm PST
Please have your HyperStudio
Registration Number ready.
Document Code: HLT–042597.1.pdf
HyperStudio and HyperLogo are registered trademarks of Roger Wagner Publishing, Inc. All rights reserved worldwide.
Apple, QuickTime, QuickDraw, and Macintosh are registered trademarks of Apple Computer, Inc.
Windows is a registered trademark of Microsoft Corporation
All other copyrights and trademarks are held by their respective owners.
ISBN 0-927796-60-0
1997 98 99 10 9 8 7 6 5 4321
HyperLogo Manual Page 2Welcome to Exploring HyperLogo
When the Macintosh version (and later the Windows version) of HyperStudio was officially released
in May, 1993 I was surprised to find that the resident scripting language was a version of Logo called
HyperLogo. “Isn’t Logo that kids’ language for drawing designs on the screen,” I thought to myself?
“What does Logo have to do with scripting?” I was sceptical. I had never seen a Logo script (there
really weren’t any back then) and, as an experienced HyperCard user, I was less than enthusiastic
about having to learn another scripting language. Initially, I worked with HyperStudio and generally
ignored HyperLogo for the most part. Before long, however, I found that I needed to keep track of
data in my stacks and that meant using HyperLogo.
My first HyperLogo scripts were developed by trial and error, typing commands into the script editor,
running them, then wading through a flurry of error messages. After awhile I began sorting out some
of the commands and my understanding of HyperLogo began to evolve. I credit much of this, in the
beginning, to Mike Westerfield, HyperLogo’s author, who was eager to give assistance and advice. It
was (and still is) Mike’s contention that HyperLogo is a very powerful programming language. Today
I am convinced of it.
My purpose in developing this tutorial is to help flatten your HyperLogo learning curve and provide
you with enough initial success to get you going on your own. It was inevitable that, over the course of
working with HyperStudio and HyperLogo, someone would emerge with sufficient experience and
understanding to begin helping others. In a recent phone conversation, Roger Wagner managed to
convince me that I was that person. I don’t consider myself a HyperLogo expert by any means but I do
use scripting in most of my stacks and I think I have some valuable information to share.
So welcome to Exploring HyperLogo. I hope you have as much fun using it as I had writing it.
Cheers...
HyperLogo Manual Page 3Introduction 5 Moving & Resizing 61TABLE OF
Who needs HyperLogo? ...........................5 Screen Coordinates ................................61
Your First Script .......................................8 Moving Objects ......................................62
HyperLogo Errors .....................................9 Siberia ....................................................64Contents
It Pays To Talk To Yourself .....................10 Put Away Your Toys ...............................66
Snap Into Place69
Navigation 11 Shrinking & Growing Objects .................73
Sliding Objects .......................................79Moving From Card To Card ....................11
A Graphics Slide Show ...........................16
Music & Sound 83Writing a Slide Show Procedure ............18
Add More Control to the Slide Show ......20 Keyboard Tooter .....................................83
PlaySound Procedure .............................86
Hide & Show 25
Other Cool Stuff 92Hiding & Showing Objects .....................25
Remote Hide and Show ..........................26 Display the Date and Time ......................92
HyperLogo Labels ..................................29 Reading and Writing Files94
Hide & Show Toggle ...............................31 Alert Dialogs...........................................97
Simple Animation ...................................33 Matching Objects .................................102
The Old Shell Game ................................35
A Final Word 107
Manipulating Text 39 Resources ............................................108
Exploring Words ....................................39
Displaying & Appending Text in a Field .... 40
Parts of a Computer Revisited................43
Lotto Companion ...................................44
Getting User Input ..................................46
Building A Review Stack.........................49
Change the Review Stack to a Test Stack .. 54
A Touch of Math .....................................56
HyperLogo Manual Page 4t
CHAPTER 1—INTRODUCTION
CHAPTER 1
Introduction
Who needs HyperLogo?
If you’ve found that HyperStudio does everything you need for your multimedia projects and you haveIn this Chapter: no idea why you would need to write scripts then you probably don’t need HyperLogo. In that case,
work your way through the easiest samples in this tutorial just for fun. You might be surprised at whatWho needs HyperLogo? ...........................5
HyperLogo can add to your projects. If there are things you would like HyperStudio to do that it justYour First Script .......................................8
can’t do on its own then this tutorial is meant for you. Work your way through all of the samples in thisHyperLogo Errors .....................................9
It Pays To Talk To Yourself .....................10 tutorial, from the simplest to the most complex. Then, explore the HyperLogo Reference Guide.and
try out other commands to see how they work. Before long, you’ll be writing scripts with ease.
Scope
Exploring HyperLogo is not meant to teach Logo as a programming language, not directly anyway. So
if you’re looking for dozens of Turtle graphics samples you won’t find them here. There are many fine
books that teach turtle graphics and basic Logo concepts. I have included a list of these in the A Final
Word section of this tutorial. I have also included some of Mike Westerfield’s turtle graphics samples
among the sample stacks that accompany this tutorial and you will find Mike’s brief introduction to
turtle graphics in the Getting Started section of the HyperLogo Reference Guide. If you’re like me,
however, you bought HyperStudio to create multimedia stacks, not to act as a shell program for Logo.
Consequently, what we will focus on are ways that HyperLogo can be used to communicate with and
control HyperStudio. After all, HyperLogo is rather useless to you if it does nothing to expand
HyperStudio’s power. To that end I have provided samples that fall into six categories, Navigation,
Hiding and Showing Objects, Manipulating Text, Moving and Resizing Objects, Music and Sound and
Other Cool Stuff.
HyperLogo Manual Page 5CHAPTER 1—INTRODUCTION
Basic Assumptions
I am making two rather broad assumptions for this tutorial. First, that you are comfortable with the
basic operation of HyperStudio. Scripting probably shouldn’t be the first thing you do in HyperStudio.
You should take the time to learn the basics of creating stacks, using the paint tools and adding cards,
Buttons, Text Objects and Graphic Objects. If you haven’t taken time to learn these basics then do that
now and return to this tutorial later on. The second assumption is that you have already read the
introductory material for HyperLogo and you are familiar with how to get into and out of the Script
Editor. If you are not comfortable with the workings of the HyperLogo Script Editor spend a few
moments with it before returning here.
Getting The Most From This Tutorial
Exploring HyperLogo uses icons and type styles to allow you to find specific types of information quickly.
Each sample project is rated for difficulty:
One turtle indicates an easy project .
Two turtles indicates an intermediate project .
Three turtles indicates an advanced project .
Don’t let the number of turtles intimidate you. If you feel comfortable with one turtle, move on to two
then to three.
This icon points to stack building instructions. These will usually be very brief. If you’re unsure
about some of these instructions refer to your HyperStudio manual. In addition, your HyperStudio
installation includes a folder called Exploring HyperLogo containing most of the samples from this
tutorial. You can save time and energy by loading the corresponding stack sample and modifying the
scripts as described.
This icon points to a bit of information that I feel is important for you to know. It might be a
caution or a bit of helpful information but most often it will be the details of a HyperLogo command.
HyperLogo Manual Page 6?
?
?
CHAPTER 1—INTRODUCTION
Certain font styles are used for specific types of information throughout Exploring HyperLogo:
HyperStudio menus are indicated by boldface a

  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • Podcasts Podcasts
  • BD BD
  • Documents Documents