Examples of evalScript command

来源:百度文库 编辑:神马文学网 时间:2024/04/29 15:12:52
AccessibilityAdobe
Your Cart
Welcome, Guest
Your Account
Sign Out
Contact
United States (Change)
Solutions Industries
Education
Financial Services
Government
Manufacturing
Telecommunications
Solutions
Digital Imaging
Mobile
Print Publishing
Process Management Services
Rich Internet Applications
Training and eLearning
Video and Audio
Web Conferencing
Web Publishing
All Industries & Solutions ›
ProductsAcrobat Connect
Acrobat Family
After Effects
Breeze
ColdFusion
Creative Suite Family
Dreamweaver
Flash
Flex
Illustrator
InDesign
LiveCycle
Mobile Products
Photoshop Family
Premiere
All Products ›
SupportSupport Home
Customer Service
Books
Training
Support Programs
Forums
Documentation
Updates
More ›
Communities By User
Designers
Developers
Educators
Partners
By Resource
Adobe Labs
Forums
Exchange
Blogs
CompanyAbout Adobe
Press
Investor Relations
Corporate Affairs
Jobs
Showcase
Events
Contact Adobe
Become an Affiliate
More ›
DownloadsDownloads Home
Trial Downloads
Updates
Exchange
Get Adobe Reader
Get Flash Player
More ›
StoreStore Home
Software
Fonts
Books
Support
Your Account
Volume Licensing
Other Ways to Buy ›
Search
Home /
Support /
Public
TechNote
Examples of evalScript command
The "evalScript" Director 7 movie in this TechNote demonstrates an easy way to have JavaScript or VBScript functions call Lingo functions within a Shockwave movie.
The movie example is provided below for download.
Select one of the following:
Windows "evalScript" Director 7 Movie
Macintosh "evalScript" Director 7 Movie
Browser issues
This movie and EvalScript are not supported in Internet Explorer 5.x or Netscape 6.x. This is due to a limitation of the browsers.
Example of "evalScript"
Setting up multiple environments to communicate with each other is not always an easy process, particularly when they use different syntax and when the debugging environments differ so much. But by working one step at a time, many things can be accomplished. (Other TechNotes can be accessed by searching with keywords such as"evalScript" and "externalEvent" that contain tips and additional information related to these topics.) The following Lingo handler will parse apart multiple arguments contained within the single string that the browser can pass to Shockwave. The HTML at the bottom of the page shows how JavaScript can piece together information from various objects in the page, before sending this compound message to Shockwave. Note: "evalScript" is fine in Lingo, but JavaScript is case-sensitive and requires "EvalScript". These small types of differences can cost time when developing this type of project.
Snippet of Lingo in a movie named "eval.dir"
--"argString" is of form "some text here,some text there" on evalScript argString set the text of field "display a" to item 1 of argString set the text of field "display b" to item 2 of argString end End of Lingo script.
HTML for a two-field passthrough to movie:
Testing multiple EvalScript args


Put some text into each of these fields, and mystic technostuff will copy it.



codebase="http://active.macromedia.com/director/cabs/sw.cab#version=6,0,1,0"
width="400" height="300" name="myMovie">

pluginspage="http://www.macromedia.com/shockwave/download/"
type="application/x-director" width="400" height="300">


End of HTML.
Additional information
For more instructions on related subjects, please refer to the following TechNotes:How can a Shockwave movie pass information to and from a browser? (TechNote 14617)Examples of externalEvent command (TechNote 14163)
Platform
All
Server
All
TechNote Details
Last Update: 11-30-2004
ID: tn_12645
Database: All
Browser: All
Permanent Link:http://www.adobe.com/go/tn_12645
TechNote Details
ID:
tn_12645
Database:
All
Browser:
All
Did this resolve your problem?
Yes
No
300 characters

Take a quick survey
Thanks for your feedback
Thank you for your feedback! We are not able to respond to individual comments, but we value all feedback.
If this TechNote did not meet your needs, please tryGuided Search or ourOnline Forums for more options
Take a quick survey
Company
Online Privacy Policy
Terms of Use
Contact Us
Accessibility
Report Piracy
Permissions & Trademarks
Product License Agreements
Send Feedback

Copyright © 2007 Adobe Systems Incorporated.All rights reserved.
Use of this website signifies your agreement to theTerms of Use andOnline Privacy Policy (updated 03-30-2007).
Search powered by