Adobe
Products
Creative Suite
Photoshop Family
Acrobat Family
Flash Platform
Digital Marketing Suite
Digital Publishing Suite
More products
Solutions
Digital marketing solutions
Digital media solutions
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Store
Adobe Store for home and home office
Education Store for students, educators, and staff
Business Store for small and medium businesses
Other ways to buy
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections   Search  
Solutions Company
Help Learning
Sign in Welcome, My orders My Adobe
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / Flash Developer Center / Flash Professional glossary /

Flash glossary: JavaScript

by Adobe

Adobe Flash Professional

Created

25 July 2010

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
Flash Professional JavaScript OOP

JavaScript is the name of an object-oriented scripting language that is used to control web browsers when developing web applications and dynamic websites. The JavaScript code is either added to an HTML page or a separate .js file is linked from an HTML page.

JavaScript is ECMAScript-compliant and is also sometimes used in the ActionScript code of Adobe Flash Professional projects to control behavior of browsers from within a SWF file at runtime. You can also generate and hand-code JavaScript using the Code view in the Document window of Adobe Dreamweaver.

<script language="javascript"> function getFlashContent( name ) { if (navigator.appName.indexOf("Microsoft") != -1) { return window[name]; } else { return document[name]; } } function init() // add code here... } </script>

While JavaScript was designed to look similar to Java scripting language, it is not to be confused with Java programming or JavaBeans. The JavaScript language is much easier for nonprogrammers to understand. ActionScript 3 uses many conventions commonly associated with JavaScript, so developers who learn either language can quickly begin coding with the other language. Both JavaScript and ActionScript use the dot syntax.

To learn more about working with JavaScript in Flash projects, read the article titled Integrating Flash content with the HTML environment.


Tool used

  • Actions panel

Related concepts

  • ActionScript
  • HTML

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

More Like This

  • ActionScript 2.0 best practices
  • Debugging ActionScript 2.0 code: Lifting the blindfold
  • Introducing the ActionScript 3.0 debugger
  • Guidelines for Flash application development
  • Flash glossary: Class
  • Flash glossary: Document class
  • Flash glossary: ActionScript
  • Flash glossary: Base class
  • Flash glossary: Sprite
  • Flash glossary: Variable

Flash User Forum

More
02/10/2012 php form not sending any data
02/09/2012 can't open flash page in dreamweaver
02/10/2012 Flash JPG compression is terrible. Can I use Photoshop JPG compression with transparency?
02/09/2012 how link from html page to a specific frame in flash cs5 as3

Flash Cookbooks

More
02/08/2012 Digital Clock
01/18/2012 Recording webcam video & audio in a flv file on local drive
12/12/2011 Date calculations using 'out-of-the-box' functions
11/08/2011 Easer - custom ease transition for tween tools

Products

  • Creative Suite
  • Photoshop Family
  • Acrobat Family
  • Flash Platform
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Mobile apps

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • Adobe Store
  • For students and educators
  • For small and medium businesses
  • For enterprises
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • Pacific - English
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).

Ad Choices

Reviewed by TRUSTe: site privacy statement