A Flash Developer Resource Site














Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11337 Flash Movies | 1 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: Bugra Ozden
» Title: Skatalog v9 - product catalog
» Description: Create your product catalog easly and publish on your website or Create your image gallery, documents list, portfolio. Fully XML Driven
» More by Bugra Ozden


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 5828 Flash Sites | 0 New Flash Links
What's New | Top 100 Flash Site

Featured Site

» Posted in the Flash Kit Links section
» Title: Creative DW Image Show PRO
» Description: Creative DW Image Show PRO is a Dreamweaver extension which enables the user to create multimedia presentations. It combines the features of the popular Creative DW Image Show with the ability to add professional text effects to slides (similar to After Effects). The product is very customizable: the user can choose the duration of the transition effects, the slide motion start and end position, zoom and panning type for both images and texts.


Random Links | Add your own Flash Related Links
Flash Tutorials 1280 Tutorials 7 New Tutorials Added!
What's New | Top100

» Make a Flash Slide Show Screen Saver
» Simple flash making tutorial for thanksgiving
» Create flash banner for website
» Create xml slideshow with free template
» How to Insert a Multilingual Subtitle Into Your Flash Video Studio
» How to Create Cool Halloween Slideshow
» Debugging flash using the Firebug console
» Create Flash Slideshow on Blogger
» FLASH TRICKS IN WEB ADVERTISING: FLASH BANNERS
» Unknown Tag: Title10
Random Tutorial | Add Site

Sr Instructional Designer D2L-Moodle,Clearance
WSI Nationwide, Inc.
US-NJ-Fort Monmouth

Justtechjobs.com Post A Job | Post A Resume


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Interactivity

Categories Dynamic Pie Chart in Flash 5
Author: Helen Triolo | Website: http://www.i-technica.com |

 
Page 2
«prev 1 2 3 4 5 6 7 8 9 10 11 next»

Actionscript Primer

Objects in Flash 5

Flash 5 actionscript follows the same coding standard as Javascript, so you can take advantage of the same standard way of addressing objects as you would in Javascript or any other object-oriented language. In addition to standard objects like Date, Array, Math, and String, Flash 5 also treats Movieclips as objects, and has introduced a Color object, which allows the color of a movieclip to be changed dynamically. Both of these objects will be used in this tutorial. Other objects specific to Flash 5 which are documented in the ActionScript Dictionary include Key (for responding to particular keyboard entries), Mouse (to hide the cursor and show a custom one), Sound, and XML.

Methods and properties of objects

Each of the predefined objects has predefined properties (as movieclips did in Flash 4 -- eg, x position, alpha, rotation), and predefined methods. Methods are actions that can be carried out on the object in a defined way, often with specified arguments. DuplicateMovieClip, for example, does what its name implies and takes two arguments: the instance name of the duplicated clip and the depth of the new clip. mcBase.duplicateMovieClip("mcBase3", 44) creates a movieclip named mcBase3 at a depth of 44 which is an exact duplicate of mcBase. Examples of applying the methods and setting the properties of movieclips in Flash 5 are given in the table below.

Dot syntax

As in Flash 4, objects in Flash 5 must be addressed by their complete paths, relative to the command being given. But instead of using "/" to refer to the main timeline and ":" to refer to a variable, a new object syntax is used, known as "dot syntax". In dot syntax, nested objects are separated by dots which define the object's "path" (much like slashes did in Flash 4). In addition, the object's methods and properties are also accessed with dot syntax, by appending the property or method to the end of the object path, after its own dot.

Examples of Flash 5 dot syntax
_root.mcSquare._x = 30; sets the x position of movieclip with instance name mcSquare on the main timeline to 30
_level1.mcTarget.mcNested.sTextfield = "more text"; fills a dynamic textfield in mcNested inside mcTarget which is loaded into level 1 with "more text"
_root.mcAnimated.gotoAndPlay(_root.sFrame); tells movieclip mcAnimated to play starting at the frame pointed to by variable sFrame, defined on the main timeline

«prev 1 2 3 4 5 6 7 8 9 10 11 next»

» Level Advanced

Added: : 2000-12-15
Rating: 7.56 Votes: 76
Hits: 1659
» Author
Helen Triolo started i-Technica, a web design shop in the Washington DC area, three years ago, after being an apps engineer for a Silicon Valley company and then a programmer for an uncountable number of years. She's been hooked on Flash since buying a copy last January.
» Download
Download the files used in this tutorial.
Download (13 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments
 
   
 

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs