Guy
Try this:
BUILD YOUR WIZARD:
Put this in a Calc on the flowline: _TargetRootIcon := CallTarget("GetVariable"; "RootIcon") _TargetNumberOfIcons := CallTarget("IconNumChildren"; _TargetRootIcon)
Then put a Decision-Icon on the flowline and make it Sequential and a Fixed number of times. Instead of a number, type: _TargetNumberOfIcons
Hang a Calc Icon to the right of the Decision-Icon and put this code inside: _TargetIconIDNum := CallTarget("ChildNumToID"; _TargetRootIcon; RepCount) CallTarget("SetPasteHand"; _TargetIconIDNum; #after)
Just to visualize the PasteHand going down the flowline add this code in the last mentioned Calc: SyncPoint(0) SyncWait(1)
Then put a last calc on the flowline and put this code inside: Quit()
BUILD YOUR KO_ICON: Then at the bottom of the flowline put an empty Knowledge Icon set to call your wizard (the code above the KO Icon).
Now your basic work is finished!
PACKAGE YOUR WIZARD AND YOUR KO-ICON: Now package the file in a folder under C:\...Authorware 5\Knowledge Objects without runtime. ("PasteHand.a5r") Save the KO-Icon as a Model in the same folder and with the same name (not extension!) ("PasteHand.a5d")
TRY YOUR NEW KO-ICON: In your file drag your newly made KO to the flowline and watch the Paste Hand move down the flowline and stop after the last icon on your flowline. (many icons on the flowline improves the visual effect!).
This should give you an idea of how it works and make you able to apply it to your needs.
GOOD LUCK!
Ole Kristensen
----- Original Message ----- From: "Guy Parton" <guyparton@MWEB.CO.ZA> To: <AWARE@LISTSERV.CC.KULEUVEN.AC.BE> Sent: Sunday, February 25, 2001 5:41 PM Subject: KO: SetPasteHand
Hi everyone,
I am trying to create a KO with the choice of multiple target interactions after an interaction icon. My question is how do you select the first icon after an interaction icon so that you can copy and paste it according to a user entry? (I hope that made sense)
thanks,
Kind Regards Guy Parton CBT Creations Multimedia Developer www.cbtcreations.co.za
-- The AWARE List http://www.e-media.nl/aware/index.html
Search the Archives http://www.e-media.nl/aware/search.html
Netiquette: - Use descriptive subject fields - Use subject prefixes (A5 , A5Mac , A5Web , KO , UCD , OT)
-- The AWARE List http://www.e-media.nl/aware/index.html
Search the Archives http://www.e-media.nl/aware/search.html
Netiquette: - Use descriptive subject fields - Use subject prefixes (A5 , A5Mac , A5Web , KO , UCD , OT)