versione italiana versione italiana
FlepStudio logo

Actionscript 3.0 Blog with Tutorials and free resources for Flash

>> Free Flash files

Events Scroller | Images Scroller | Multi FLV Player | Flash CS3 GuestBook | News Scroller | Tortillas - creator of simple graphs for statistical data | 3D images visualization free utility | Flash CS3 Uploader - free utility | Mini Gallery | Flash CS3 puzzle | Hit counter Flash CS3 + XML + PHP | Multi Audio Player | Newsletter module | Bluring Slide | Monthly Calendar | ShoutBox | StripGallery - Flash CS3 and XML gallery | Email Form PRO | MaskMenu | Elastic Gallery | PhotoNavigator | Pixellation - SlideShow | Email form | Analogue clock | FullScreen images gallery | Rotating header | Flash Portfolio | Polls System | Products Exhibitor | Mini Navigator | Drag Menu | Horizontal Menu | Quizzer | Mini Navigator 2 | Reflect Gallery | Events Scroller - version 2 | Rotating header 2 | Magnifying Glass | Zoomify | MenuVibration | Email form Flash CS3 and ColdFusion 8 | News Scroller 2 | Simple GuestBook | Captcha for Flash CS3 | Email form with pictures - Flash CS3 and PHP | FlepCharCode | Mac Menu | Header | Memory Game - Flash CS3 game | Flash CS3 CountDown | FLV Slide Show Videos | Illusion - images gallery | Tell A Friend | Flash RSS reader | ToolTip Flash CS3 - CS4 | Sliding Email Form | ComboMenuHeader | ComboMenuHeader PRO | Mac Front Row in Flash CS3 | FlaTwit - Flash and Twitter - twit this | Store Locator | Multi Video Player MAC style | Flash XML editor | BlurSlideShow | ImagesViewer | Video Gallery | Flash XML editor gallery 1 | 15 numbers game | Tipper vertical scroller with Iphone effect | YouTube Video Player by categories | GuestBook Flash CS4 | tweened menu | Twitter RSS reader | Xmas Flash header | Events Scroller - version 3 | TripleBox | BlackComboBox | Inertial Photo Portfolio | Fullscreen Background | Multi Categories Images Gallery | DropDown menu | CountDown version 2 | Advertising Flash banner | Quizzer version 2 | UEFA RSS reader | Flash Scrolling Portfolio | Video Player | Flash Gallery | Images Scroller version 2 | Images Scroller version 3 | Images Scroller version 4 | Europe map | Events slide show | Banner Rotator | Flash and Flickr image gallery | Flash and Picasa image gallery

Attributes of methods

by admin on September 11, 2007

in Advanced Actionscript 3,Flash CS3,Tutorials

We saw in lesson 4 of OOP with Flash CS3, the different type of attributes that we can combine with a property and how to declare them.
The attributes associated to a method are equal of the ones for a property and they have the same characteristics.

An important point is as example:
If we have a class with a property named ‘nome’, we can assign it a private attribute so that no one using our class can access its value and our class can carry out a fixed task without having the property’s functions modified (otherwise the result would be altered).

The problem using the private attribute is that its value would not be available even if we wanted to only retrieve its value and reuse it during the course of developing our application.

To make it accessible without changing its private attribute, we can create a public method (for example: ‘prendiNome’) which once called will retrieve the value of the property ‘nome’.

How?
As the method is placed inside the class (it is one of the class method), it has access to the property ‘nome’.

Let us look at concrete examples…

Read more

Share This Post

Related posts

Leave a Comment

Previous post:

Next post: