Flash video tutorials

Free Utilities

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 | terms of use | 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 | hittest and magnifying glass | 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 |

this root

by admin on August 30, 2007 · 0 comments

in Flash CS3, Tips and tricks, Tutorials

Here we are again with a new tip which could reveal itself very useful.

This idea comes from this topic: Document Class .
We have seen until now that often we need to be able to pass the value of the main root of our application from the Document Class to the classes which build our application.
Sometimes, it is necessary to retrieve a MovieClip placed on stage and without the value of the root passed to the Document Class we would not be able to retrace that Movieclip.
In few words, with Actionscript 2.0 it was an easy task, using simply _root.MovieClipName (the so called Composition) from any classes to get to a MovieClip placed on stage.
With Actionscript 3.0, _root has been removed as the entire concept of levels and timeline have been changed.

As an example:

I have main.fla associated to the Document Class ‘Main.as’ and on stage, I have a MovieClip named ‘test_mc’. In the library of ‘main.fla’, I have another MovieClip associated to a Class (linkage or id) named ‘Clip.as’ that I would like to attach ( ex method attachMovie ) from the Document Class.

The first question to be asked is: how to I retrieve ‘test_mc’ on stage of ‘main.fla’ from ‘Clip.as’?

Let us look at it…

Read more

Share This Post

Related posts

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Older post:

Newer post: