Error in a script and I can´t find it

Hello
I found a very interesting tutorial on a Fly-low Archtitcural on the Adobe site.
As I tried to do the same thing, I had a mistake in the Lingo Script which was providet with the tutorial. I have no experience with Lingo so I can´t find the error. Could sombody find the error?
I have marked the line with < < < < < < < <
Here's the Script (just a bit long)
You can see the full tutorial here: http://www.adobe.com/devnet/director/articles/shockwave_3d/shockwave3d_ch3.pdf

on beginSprite (me)

-initialization of properties

pMember = sprite (me.spriteNum) .member
pSprite = sprite (me.spriteNum)
pMouseDown = FALSE
pRightMouseDown = FALSE
pCamera = .camera sprite (me.spriteNum)
pCamAnimFlag = TRUE
pCamAnimInfo = [#initT: pCamera.transform.duplicate (),]
#finalT: pMember.camera ("first_person").transform.duplicate (),.
[#count: 0]

-create the camera bounding sphere

Mr = pMember.newModelResource ("camera_sphere", #sphere)
Mr.RADIUS = 7.5
pCameraSphere = pMember.newModel ("camera_sphere", mr)

-create a light to carry with the camera

camLight = pMember.newLight ("camera_light", #point)
camLight.color = rgb (170,170,170)

-make the sphere and the children of the camera light

pCamera.addChild (pCameraSphere, #preserveParent)
pCamera.addChild (camLight, #preserveParent)

-you save it the camera for the timeMS event to run the intro animation, as appropriate

pCamera.registerScript(#timeMS,#animateCamera,me,0,50,51)

-members you add to ordinary timeMS events in order to respond to user input and adjust the camera "collisions".

pMember.registerForEvent(#timeMS,#controlCamera,me,2500,50,0)
end beginSprite

on mouseDown (me)

-update of the mouse to the bottom of the property

pMouseDown = TRUE
end mouseDown
on mouseUp (me)

-update of the mouse to the bottom of the property

pMouseDown = FALSE
end mouseUp
on rightMouseDown (me)

-updated the right mouse to the bottom of the property

pRightMouseDown = TRUE
end rightMouseDown
on rightMouseUp (me)

-updated the right mouse to the bottom of the property

pRightMouseDown = FALSE
end rightMouseUp
-The animateCamera handler is used to animate the camera automatically over time:
on animateCamera (me)

-incrementing the internal counter of the animation

pCamAnimInfo.count = pCamAnimInfo.count + 1 < < < < < < I get an Errormessage in this line!

-determine the percentage of interpolation

PCTG = 100.0 × (pCamAnimInfo.count / 50.0)

-If pctg is greater than the end animation sequence 100

If (pctg > 100) then
PCTG = 100
pCamAnimFlag = FALSE
end if

-determine the new camera interpolated transformation

t = pCamAnimInfo.initT.interpolate (pCamAnimInfo.finalT, pctg)

-apply the transformation to the camera

pCamera.transform = t
end animateCamera

on controlCamera (me)

-answer only if the camera intro animation ends

If not (pCamAnimFlag) then

-CONTROL THE CAMERA LEFT/RIGHT ROTATION
-If the SHIFT key is * not * to the bottom then follow the mouse
-to adjust the left right to research

otherwise (the shiftDown) then

-Did the locH mouse wrt the loc of sprite

deltaH = the mouseH - pSprite.locH

-calculate the value of rotation to apply

ROTN =-(deltaH/165.0) * 4.0

-apply rotation

pCamera.rotate (vector (0,0,1), rotn, pCamera.worldPosition, #world)
end if

-THE REAR OF THE CONTROL DEVICE MOVEMENT
-If the left mouse is down then reach the character forward

If pMouseDown then
pCamera.translate(0,0,-2.5)
end if

-If the right mouse is down then reach the character backward

If pRightMouseDown then
pCamera.translate (0,0,2.5)
end if

-Casting a fwd/bckwrd ray, depending on which mouse button is pressed

case (TRUE)

-left mouse down, ray casting forward

(pMouseDown):

-ray casting

tList = pMember.modelsUnderRay (pCamera.worldPosition, - pCamera.transform. zAxis, #detailed)

-If there are models in front of the camera, checking for collisions

If (tList.count) then
me.checkForCollision(tList[1])
end if

-mouse right (Ctrl +) down, ray casting back

(pRightMouseDown):

-ray casting

tList = pMember.modelsUnderRay (pCamera.worldPosition, pCamera.transform. #detailed, zAxis)

-If there are models in front of the camera, checking for collisions

If (tList.count) then
me.checkForCollision(tList[1])
end if
cases of termination

-a little to the left

tList = pMember.modelsUnderRay (pCamera.worldPosition, - pCamera.transform. xAxis, #detailed)

-If there are models in front of the camera, checking for collisions

If (tList.count) then
me.checkForCollision(tList[1])
end if

-a little to the right

tList = pMember.modelsUnderRay (pCamera.worldPosition, pCamera.transform.xAxis, #detailed)

-If there are models in front of the camera, checking for collisions

If (tList.count) then
me.checkForCollision(tList[1])
end if
end if
end controlCamera
on checkForCollision (, thisData)

-Enter the value to the distance

Dist = thisData.distance

-If the distance is less than the limit of RADIUS, resolve collisions

If (dist < pCameraSphere.resource.radius) then

-get the penetration distance

diff = pCameraSphere.resource.radius - dist

-calculate the vector perpendicular to the surface of the wall to move the camera

tVector = thisData.isectNormal * diff

-move the camera in order to resolve the collision

pCamera.translate (tVector, #world)
end if
end checkForCollision

Yes, you are in the right. She's.
I forgot to copy the Script! I have copied the statement haven´t.
Thank you very much for your quick help,

Good bye

Tags: Director

Similar Questions

  • I chose an add-on, "No Script", and I can't remove it.

    I chose an add-on, "No Script", and I can't remove it.

    So if you do
    Tools > Addons > Extensions
    and select NoScript (click it) and click on delete or uninstall (I forget who) what happens?

    It should disappear after reboot

  • I had a fast PC program that keeps coming up as an error and I can not find the program on my PC?

    There is a Speedy PC Pro porgram on my computer keeps coming back as an error and I can not find the program or software

    any where on my computer to uninstall or remove. I don't know where it comes from. Please notify.

    If the "program not found" error message is associated with the Windows startup, another solution is to use the System Configuration tool and remove applications from the startup list.

    Here are the steps on how to do this:

    1. Move the cursor to the Start menu and then click on "Run".
    2. In the Open box, type msconfig
    3. Heat the Enter key
    4. Click the Startup tab
    5. Remove/disable all uninstalled applications in the startup list
    6. Move the cursor to the Start menu and then click on 'stop'. After that click on 'restart'.
  • I upgraded from Dreamweaver CS4 to CS6. but now "a Technical error occurred - cannot connect to the host. I spent hours with the technician of the host and we can't find the error. I reinstalled DW4 and it connects to accommodate perfectly. Anyone else se

    I upgraded from Dreamweaver CS4 to CS6. but now when I want to download, I "MFP error - cannot establish a connection to the host. I spent hours with the technician of the host and we can't find the error. I reinstalled DW4 and it connects to accommodate perfectly. Anyone else seen this problem?

    Mac OS 10.8.5

    DW6 error code.png
    None of these issues are causing the error in DW CS6. We double-checked all of them and we did everything right. Also I have exactly the same SiteSetup in DW CS4 and that works perfectly well. Might need to factor 6 which did not exist in the 4? Something that is not in the SiteSetup but in a hidden dialog box?

    I can also download my host using Fetch, a third party FTP. And like I said that DW CS4 works very well. So the problem is not with my host, sound with DW CS6 in particular.

    You are most likely missing something fairly simple (some goofy box cache you in some menus random). The best way to solve this problem, without playing 20 questions...

    1 open the site in DWCS4 and go to Site > Manage Sites > export to create a your site settings .ste file.

    2. close DWCS4 and open DWCS6

    3. go to the Site > Manage Sites > Import to import the .ste file to create a new site at DWCS6

    This will create an exact copy of your CS4 settings in CS6. If it still does not work, let know us and someone should have another idea for you.

  • I got this error: 503,0. And I can't publish my new update?

    I got this error: 503,0. And I can't publish my new update?

    I just change one word in the Iphone and publish, and then got this message below?

    Screen Shot 2013-10-12 at 11.27.26 AM.png

    And now cannot publish, - what?

    Hello Hanna,

    This occurs because of migration goes for Business Catalyst right now. State is updated here: http://status.businesscatalyst.com/

    More details here: http://adobebcmigration.com/

    Kind regards

    Cristian Radu

  • I moved some files on a CD. Didn't burn the CD and I can't find the files on my computer more.

    original title: lost files

    I've marked a few files, then moved them to a cd.  The cd has no record and I can't find them on my hard drive more.  Help?

    Hello

    · What software did you use to burn the CD?

    · Did you receive an error message or error code when you tried to burn the CD?

    · Looking for files by the name and the location where you saved them?

    Try to search the files of the application preferences, you can check the link for the procedure below: to search for a file or a folder: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/find_c_search_where.mspx?mfr=true

  • Error code 0 x 80040600 I can't find scanpst.exe on my machine.

    I get the error code 0 x 80040600.  I have Microsoft Vista, and I can't find scanpst.exe on my computer in order to run the Inbox repair.  I spent the last 2 days trying to fix this mess.  Help, please!  Any suggestions would be greatly appreciated.

    http://support.Microsoft.com/kb/287497

    How to use the Inbox repair tools to recover e-mail messages in Outlook 2002, Outlook 2003 and Outlook 2007

    This article helps you use the repair tool box of reception (Scanpst.exe) to recover folders and items from a corrupted personal folders (.pst) file or the folder offline (.ost) file in Microsoft Outlook 2002, Outlook 2003 and Outlook 2007. Scanpst.exe is a hidden file that is installed automatically when you install Windows.

    Outlook:

     

    http://answers.Microsoft.com/en-us/Office/default.aspx

    Office at the above link forums

    http://answers.Microsoft.com/en-us/Office/ee861097.aspx

    Outlook Help Forums at the link above.

    They will help you with your Outlook questions when repost you in the Office Forums above.

    See you soon.

    Mick Murphy - Microsoft partner

  • I upgraded from vista ultimate to windows 7 64 - error message 0 x 80070490 windows can not find partition for temporary files

    I upgraded from vista ultimate to windows 7 64 - error message 0 x 80070490 windows can't find partition for temporary files - I have a lot of space and created a partition of 1 GB

    Hello

    Thanks for the reply.

    I suggest you to follow a few troubleshooting steps more and check if this helps you fix the problem on your computer.

    Method:

    Reset permissions
    ============

    1 if please download the subinacl.msi from the following link and save the patch to installation on the desktop:

    http://www.Microsoft.com/downloads/details.aspx?FamilyId=e8ba3e56-d8fe-4A91-93Cf-ed6985e3927b&displaylang=en#AffinityDownloads

    2. go to your desktop and double-click on the downloaded file.
    3. Please select the C:\Windows\System32 folder as the Destination folder during installation. Later, we will use this tool to reset the permissions on the current computer settings.

    4. click on the button 'Start' in the 'Search' bar type: "Notepad" (without the quotes) and press ENTER.
    5. copy the following commands, and then paste them into the opened Notepad window:

    off @echo

    Subinacl /subkeyreg HKEY_LOCAL_MACHINE/Grant = administrators = f
    Subinacl /subkeyreg HKEY_CURRENT_USER/Grant = administrators = f
    Subinacl /subkeyreg HKEY_CLASSES_ROOT/Grant = administrators = f
    Subinacl % lecteur_systeme % /subdirectories / Grant = administrators = f

    Subinacl /subkeyreg HKEY_LOCAL_MACHINE/Grant = system = f
    Subinacl /subkeyreg HKEY_CURRENT_USER/Grant = system = f
    Subinacl /subkeyreg HKEY_CLASSES_ROOT/Grant = system = f
    Subinacl % lecteur_systeme % /subdirectories / Grant = system = f

    @Echo =========================
    Completed @Echo.
    @Echo =========================
    @pause

    6. After you paste the above commands, please close the Notepad window. Choose "Save" when you are prompted to save the file. Type "reset.bat" as the file name and choose "Desktop" in the Panel on the left as the save location.

    7. refer to the desktop and right click the reset.bat file, then choose "Run as Administrator".
    8. you will see a window of type BACK treatment.

    NOTE: It may take several minutes, please be patient. When it is finished, you will be prompted with the message: "finished, press any key to continue."

    If the same thing happens, move to the next step.

    Run the upgrade by using the built-in Administrator

    ================================

    1. click the button start-> all programs-> Accessories.

    2. right click on command prompt and select "run as Administrator".

    3. click on continue when user account control window appears.

    4 copy the following command and press ENTER:

    NET user administrator / Active: Yes

    5 restart the computer and then log on the computer of this administrator account.

    6. run the upgrade to windows 7.

    Hope this information helps you.

  • I installed a bunch of addons and only a few icons are visible, and I can't find the rest help

    I installed a bunch of addons and only a few icons are visible and I can't find the rest. They apear in the area add Manager as installed extensions but they donot apear on add on bar. How can I find work them. search google for example picture

    its sad to hear that.
    Please read the article resolves your problem. If not, then let us know

    https://support.Mozilla.org/en-us/KB/what-happened-to-the-add-on-bar

    Thank you

  • When I click on the download arrow to save a PDF file, it changed and opens in Windows Media Player and I can't find my PDF document.

    Windows Media Player opens and I can not find my pdf document. Where can I find my pdf document in order to download and save on my USB key? Simply open the document. He never opened in Windows Media Player.

    If necessary you can rename (or delete) the file mimeTypes.rdf in the profile folder of Firefox to reset all the actions file.

    You can use this button to go to the Firefox profile folder currently in use:

  • All of a sudden, the page to 'save' occupies all of my screen and I can't find a way to reduce its size - this has never happened before, which is very annoying

    When I click on 'save' the resulting dialog box fills the entire screen. I'm unable to reduce its size with the mouse to shoot within the borders of the dialog box, and I can't find another way to reduce it. This problem appeared spontaneously. He did not begin immediately after installing a new plug-in or a new version of Firefox - it just happened one day. I have used Firefox for years and never had this embarrassing problem before.

    This is the dialog box that appears to save the Page under? Like other windows, it could be maximized/restored by double-clicking the title bar. Does make a difference?

    Otherwise, it might be necessary to rename or delete the localstore.rdf file, which stores the positions of windows and related settings...

  • How and where can I find my Macbook Pro using the model number

    How and where can I find my Macbook Pro "using the MODEL number" NOT the serial NUMBER please...

    Hello world:

    I would like to know more about my MacbookPro using model # is if there is a website or a program that I can type my model # so she'll tell me more on my computer...?

    http://www.EveryMac.com

  • now that I've updated to El Capitan, my Brother DCP will not work and I can't find a driver update

    Now that I've updated to El Capitan, my Brother DCP will not work and I can't find a driver update. Everyone finds something?

    Here are the current models of Brother products which are supported.

    http://support.brother.com/g/s/ID/OS/Macintosh.html

    If your model is supported drivers will be on this page. Otherwise, contact the manufacturer and see if they have a driver for your printer from specific model for this OS. Otherwise, you may need to downgrade to a previous operating system from a backup Time Machine or a downgrade for compatibility, if it is not offered by the brother of your device to model on a computer running OS 10.11.

    Apparently not all printers DCP mind are compatible, but most that were compatible with the OS 10.10.x always conform to their page.

  • After the upgrade to the latest Firefox, my icon disappeared from my screen, and I can't find how to retrieve

    After the upgrade to the latest Firefox, my icon disappeared from my screen, and I can't find how to get it back.

    Go to START then all PROGRAMS then find MOZILLA FIREFOX, right-click on it, select SEND TO and select DESKTOP (CREATE SHORTCUT).

    Thank you

    Please check 'Resolved' the answer really solve the problem, to help others with a similar problem.

  • My back arrow is missing from my toolbar in Firefox and I can't find another way to go back. How can I get it back?

    My 'Back' arrow disappeared from my toolbar in Firefox and I can't find a way to return to the previous page. How can I me it back on?

    Hey kayo410,

    Looks like they have accidentally been removed from the toolbar. The toolbar can be customized quite widely, is not a rare mistake. Take a look at Knowledge Base article the Navigation buttons such as back, home, bookmarks and recharge are missing. It will show you how to restore buttons.

    Hope this helps!

Maybe you are looking for