Flash As3 Question - Alternitives to root

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > Others

Flash As3 Question - Alternitives to root

Live-Dimension
Hi.

Basically, the MovieClip(root) thing is dodgy at the best of times. Besides - it's not recommended to use root at all. In fact, it's highly discouraged. I've seen plenty of posts about this, but for the life of me, I can't find anything about what else I should use. What alternative should I be using to access properties/mc's/etc from the root/parent time lines??

edit:Cleanup/spelling fixes, etc.

Reply

dimumurray
QUOTE(Live-Dimension @ May 26 2008, 09:28 AM) *
Hi.

Basically, the MovieClip(root) thing is dodgy at the best of times. Besides - it's not recommended to use root at all. In fact, it's highly discouraged. I've seen plenty of posts about this, but for the life of me, I can't find anything about what else I should use. What alternative should I be using to access properties/mc's/etc from the root/parent time lines??

edit:Cleanup/spelling fixes, etc.


I'm not that familiar with 'root' work-arounds in AS3 (still in the process of learning AS3 myself). But in AS2 the usual solution was to use '_level0' instead of root. '_level0' basically gives you a reference to the Stage movieclip. I don't know if this would still work in AS3 but with a little 'google'-ing you might just come up with something. And check out Adobe's official documentation, something's bound to be in there somewhere.

 

 

 


Reply

gnitsuk
QUOTE(dimumurray @ Jul 30 2008, 07:24 PM) *
I'm not that familiar with 'root' work-arounds in AS3 (still in the process of learning AS3 myself). But in AS2 the usual solution was to use '_level0' instead of root. '_level0' basically gives you a reference to the Stage movieclip. I don't know if this would still work in AS3 but with a little 'google'-ing you might just come up with something. And check out Adobe's official documentation, something's bound to be in there somewhere.


This is the solution to your problem and the way to do it in the newest Flash - Global Variables

This will give you the ability to add global variables and objects that you can access from anywhere in your AS code.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. as3 allow html link - 14.31 hr back. (1)
  2. as3 parent variable - 19.13 hr back. (3)
  3. as3 vertical align - 27.30 hr back. (1)
  4. as3 flash vertical align text - 27.92 hr back. (1)
  5. as3 datagrid tutorial - 29.83 hr back. (1)
  6. how to dynamically insert swf files into flash with as3 - 43.41 hr back. (1)
  7. as3, vertical alignment - 48.34 hr back. (1)
  8. datagrid alternate row colours as3 - 55.42 hr back. (1)
  9. clickable video as3 - 75.38 hr back. (1)
  10. move clip flash as3 - 77.81 hr back. (1)
  11. as3 printjob - 33.98 hr back. (2)
  12. flash as3 _root - 78.17 hr back. (1)
  13. load sql server image flash as3 - 81.75 hr back. (1)
  14. as3 stream with php - 87.47 hr back. (1)
Similar Topics

Keywords : flash, as3, alternitives, root

  1. Flash Action Scripting Help Needed
    (6)
  2. Flash, Php And Facebook Integration
    Plea for good tutorials & resources on the above topic (0)
    Hi all, I'm working on a project. Basically I hope to build a generic web application
    framework that will allow Flash/AS3 applications to be easily integrated into the Facebook platform.
    I am currently surveying a number of technologies and I am trying to figure out what tools will best
    help me achieve that goal. Many of them are open source with some still in early development. Most
    lack extensive documentation so its very difficult to gauge the strengths and weaknesses of a tool
    without investing a good deal of time figuring out how to use them. Is anyone here....
  3. Flash Problem
    sometimes the buttons will load the wrong link. (9)
    Its weird but sometimes when you hit the forums or roster button on my flash banner it will load:
    www.childrenofconan.trap17.com/index.html instead of what its suppost to. It works fine, but if you
    mess around and click the buttons for a little bit you will notice this happening. This is a problem
    because people visiting the site will sometimes click the button once and be like oh I guess the
    link is broken and never come back, if anyone has a solution to what could be the problem it would
    be awesome. This is one of my first custom flash banners and im just confused what....
  4. Flash - Streaming Flv With Interactible Objects
    Actionscript 3.0 - syncronising swf with flv (3)
    Hi Guys, I am trying to make a flash based web site. The idea is to have a flv video streaming
    which has people moving around and the people need to be clickable objects. I tried tracing the
    video by importing the flv to the flash time line and creating a button that follows a person in
    each frame. I then remove the flv video from the timeline and stream it using actionscript. This
    leads to synchronization issues. Does anyone know if this combination of swf and flv has ever been
    implemented? If so could you please refer me to the source or post a link to an example, i....
  5. Flash Coding
    (1)
    I don't know if this is the right section, but does anyone know how to do flash coding and/or
    know a good site to learn it from? I'm trying to make a game like Naruto-Arena . One of my
    friends told me it was made using flash coding and thats why I'm trying to learn it.....
  6. Move The Movie Clip In Flash
    Use the arrow key to move the Movie Clip. (2)
    Movie Clip 1.Create a Movie Clip and draw a Rectangle or your design in the Movie Clip. 2.Come Back
    to Scene 1. 3.Select the Movie Clip and set them instance name = “movie”. 4.Select the first Frame.
    5.Press F9 and Copy Code Below and paste it. CODE setInterval(function () {     if
    (Key.isDown(Key.RIGHT)) {         setDirection(0);         _root.movie._x +=
    3;     }     if (Key.isDown(Key.LEFT)) {         setDirection(1);
            _root.movie._x -= 3;     }     if (Key.isDown(Key.DOWN)) {   ....
  7. Need Sugation About Flash
    (4)
    I was informed that in web programing Flash is more afster then Java applets or animated images. So
    that I am thinking about Flash. Now I know that there are many tutorial are available in www. Now
    can any body help me from where I should start. However I have some question on my mind Is it
    difficult to learn? What tools do I need to install? Can you recomended any tutorial? And
    finally my question is why flash is so famous, is it because of it is faster or have there any other
    reason?....
  8. Flash
    (3)
    Can anyone recommend a book or online guide to flash. i am currently designing a new website, and
    with it, i would like to add flash and all that jazz (kinda like this website ). i want to get an
    good understanding of flash and other things like flash so i can create and design flash based
    websites.....
  9. Flash Vs. Java Applets
    (2)
    As I started to learn Java, I came across a tutorial for making Java applets. As I read on, I found
    some similarities between Java applets and Flash movies. Right when I saw the source code for a
    checkerboard picture made in Java, I said to myself, Flash beats Java applets big time! It also
    took a while to load such a small applet when in Flash it instantly loaded. In my opinion, I think
    flash beats Java applets when it comes to convenience, appearance, load time, animation, and more
    (except AJAX). Here are two articles, first supporting java applets and the other ....
  10. Flash Tutorial : Realistic Ball Movement
    Flash Tutorial (0)
    QUOTE Hi In this tutorial I am going to show you how to make a ball move around the screen
    realistically and if the ball hits a side of the stage it will bounce. Background colour white.
    550x400 50 fps The first thing you need to do is draw a circle on the stage (50x50) then select it
    and press F8. (You may want to put a line or something through the ball so that you can see it
    rotate). Set it as a MovieClip. Now double click on the circle to edit it, position the ball to be
    in the very center. Now go to the main screen and click on the first frame and open the ....
  11. Flash, Sqlserver And Asp
    (0)
    Hi everyones,



    I going to bang my head because I have been trying to show SqlServer 2000 data in (Flash Mx
    Professional 2004) DataGrid I am working with ASP.NET but I am still unable to....
  12. Here Is A Really Good Flash Tutorial Site
    (7)
    This site is the best for creating different flash elements and just learning to use macromedia
    flash in general. Click on the link below and you will be taken to step by step tutorials for many
    different flash objects. Flash tutorials ....
  13. Flash Player Simpleviewer Using Flickr And Picassa2
    (0)
    Ok i was told that I can dynamically upload my pictures using flickrviewer. I want to upload them
    to simpleviewer or a flash movie like simpleviewer. Right now what I do is use Picassa2 and make a
    flash movie with my pictures everytime i add new pictures. That is kind of a pain. I wanted to see
    if there was any way to dynamically insert them into the flash movie or if anyone knew how to use
    flickrview. I can't get it to work. here are the links to simpleviewer link and flcikrviewer
    site and flickr site . ....
  14. Playing Flash Movies Without The One-click Activation: Simple Insertion Of Javascript
    (4)
    In the past year or two iternet explorer and other browsers have updated their coding platforms.
    The bad thing is that if you have any flash objects at all within your web page you have to hit the
    space bar or click on the flash object to activate it. Once you activate it, you then can interact
    with the object or the object will then play on the website. I dont like how you have to activate
    the flash player first to interact with it. here is the code to prevent that. Believe me people
    notice how much better the site is after you do this. put <script type="text/java....
  15. Appeal For Flash-related Help [kinda Urgent]
    I could use some help! (0)
    I need a tiny bit of help with some flash files. I have taken up a project in php that I did not
    expect would involve any flash editing, but I am dealing with already existing .swf files that make
    calls to various php files. Now, here's the situation: I don't have the .fla files, only
    .swf. So I need someone who has access to a flash decompiler who can possibly help me out. After
    decompiling the files, I require that all the links/calls to php files, which are made using
    relative paths/addresses, be changed to absolute paths, like change something.php to www.som....
  16. How To Get High Quality Gif Images In Flash
    (1)
    Step 1- Make the Animation Get your animation ready. Make sure not to use any Movie Clips with self
    contained animation for it will be lost in the conversion to an animated gif. Step 2- Publish
    Settings Now that you have your animation you need to go to Publish Settings under File. Now
    uncheck all of the boxes except for gif. This will not effect you if you usually preview your movies
    by the Test Movie feature. If you do use Publish to preview your movies, simply recheck the .swf box
    after this tutorial. Now click the only remaining Gif tab at the top of the box. N....
  17. How Do I Start Making My Website In Flash
    Can't find tutorials in google :( (11)
    Hey everyone, I began making my website with Firworks, and Dreamweaver. But I really want to know
    how to make a website with Flash. I understand with this program you make 'movies'. I have
    done some tutorials too, and I get that. But what I want to know is, if the content in the different
    pages (like home, contact, links etc.) have to be one movie? Or do you use other programs. Like
    this site below, it's a beautiful site of the Luny Tunes (reggeaton music artistgroup): Luny
    Tunes But is the whole site a 'Movie', or is there some HTML in it as w....
  18. Macromedia Flash
    Who has ever used Macromedia Flash? (9)
    On Christmas, a relative of mine purchased Studio 8 from Macromedia, which is now Adobe. However
    when first running Flash 8, I was very confused...for all people who have ever used Flash, how do
    you make the images move? I tried following the tutorial, and tried "adding a motion tween", however
    I can't get it to work... /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' />
    Thanks in advance! Stephen....
  19. Print With Flash And Datagrids Without Resizing!
    (3)
    hey hi guys..this is a code i used to print data from a datagrid and it is so useful in ur RIAs hope
    it helps... cheers! CODE mybtn.onPress=function(){ doPrint(mydg, true) }
    function doPrint(datagrid:mx.controls.DataGrid, fitPage:Boolean):Void { if
    (fitPage == undefined) fitPage = true; var pj:PrintJob = new PrintJob(); //
    position of currently visible rows stored var prev_vPosition:Number = datagrid.vPosition; var
    prev_width:Number = datagrid.width; var prev_height:Number = datagrid.h....
  20. Flash
    (1)
    Does anyone know of a site that can teach you how to use it? Like i would like to read up on it and
    learn how to do it myself. I am just looking for a site that has turtorials and maybe software that
    i can test it out on and see how i do before i purchase anything. If anyone can help with this
    please let me know here, ty very much. -Storm....

    1. Looking for flash, as3, alternitives, root

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for flash, as3, alternitives, root

*MORE FROM TRAP17.COM*
advertisement



Flash As3 Question - Alternitives to root



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE