|Date: ||Thu, 12 Mar 1998 17:55:15 -0500|
|Reply-To: ||Robert Muzny <MUZNRV@INTEGRIS-HEALTH.COM>|
|Sender: ||"SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>|
|From: ||Robert Muzny <MUZNRV@INTEGRIS-HEALTH.COM>|
|Subject: ||Re: Dancing Baby|
|Content-Type: ||TEXT/PLAIN; CHARSET=US-ASCII|
Greg -- the original post was by Philip Mason. A clip of his message is below.
By the way, if Philip is reading ... this has put a lot of smiles on crowds
Subject: SASTip: Dancing babies in your Frames
Having seen a demo by SAS Institute (UK) last week where they showcased an
animation of a Dancing Baby in Internet Explorer, it got me thinking. Can I
have Dancing Babies in my clients applications. The answer (of course) is
that SAS lets you do almost any crazy thing you like.
1 - Get the Dancing Baby video. It is found at many places on the net, here
2 - In a Frame, make an "OLE - Insert Object". Check "Create New". Select
"Movie Clip (AVI)". If you don't have that option, you will need to install
an AVI Activex (or OCX) plugin, from elsewhere.
3 - Name your object VIDEO (for example). Enter the name of an Hservice
entry to create, in the object attributes, eg. sasuser.profile.video -
4 - Right mouse click on the object, select "Movie Clip AVI object -
object" and then "Edit". This allows you to edit the properties of the
video. You could now select "Edit, Options" and set the video to
auto-repeat & to not display the control bar. Clicking elsewhere in the
frame, reinstates the Frame's Pmenus.
5 - There are various actions you can invoke on the object, these are found
by going into "Object Attributes" and selecting "Associated Verbs". Now add
the following line to your INIT: section
call notify('video', '_execute_', 'play') ;
6 - That's all. You will now have a Baby constantly dancing in your Frame,
whenever you run it. Of course, you can use this technique for playing
other videos in frames. And it looks nicer if you set the Frame background
colour to the colour of the background of the video (in this case black).
(My environment: Windows 95, SAS 6.12, Pentium 166MHz, 32Meg RAM)
Freelance SAS Consultant
16 Wood Street, Wallingford, Oxfordshire, OX10 0AY, England
Phone: +44 1491 834615 Fax: +44 1491 834615