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

SharedObject

by admin on August 17, 2007

in Flash CS3,Mix,Tutorials

If you are trying to understand how the SharedObject works with Flash CS3, follow this tutorial and you will soon know a lot more about this topic.

The ShareObject class is used to read or ‘store’ data on the user’s computer.  To understand better, an easy comparison for the SharedObject would be the browser’s cookies.

This class is very useful and used a lot in game’s development.
I will make an example.
Let us say that we developed a game with Flash CS3.  The user will need to insert its own details so to be able to store his score and his name.  If the user would want to play more games, he would often be annoyed by the fact of having to enter his details once again at each game.
Instead, using the SharedObject class, our user could play as many games as he wants, entering once his personal details which would be memorized in a file by Flash and kept in the user’s computer.

The following example will ask you to insert your name, city and age.  Once ‘SALVA’ clicked, Flash will save those data on your computer.  If you do a refresh at that point, you will see that Flash has retrieved your details successfully.
You can also delete your details and this time, after a page refresh, you will be asked to enter your details once again.

Follow me… 

Read more

Share This Post

Related posts

Leave a Comment

Previous post:

Next post: