Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 5 of 5

Thread: _root. Absolute path won't work.

  1. #1

    Default _root. Absolute path won't work.

    Hey all,
    im trying to use the absolute path code but it just won't work. Iv'e just moved from MX to 8 so has something changed or am I just missing some code?
    It looks like this:

    on (release){
    _root.MainMenu.MainNav.SectionOne.SectionOneA.goto AndPlay(2);
    }

    All my instance names are correct and when I check the syntax there are no errors. Are there too many paths?
    I cant work it out. Any help would be greatly appreciated.

  2. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    The syntax is correct and no, there are not too many paths. I suggest tracing the path....

    trace(_root.MainMenu.MainNav.SectionOne.SectionOne A)

    ... should not return undefined if it is the correct path. Something else to check is the built in path generator in the actions panel(little circle with crosshairs). If the path is correct, you should be able to cycle through the objects and generate the same path.

    hope it helps
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

  3. #3

    Default

    Thanks for the help NTD,
    ill give it a shot

  4. #4

    Default

    Shadar,
    If you are having problems with _root. referencing when migrating from MX to 8, there are some differences....
    There is a new feature called _lockroot. If you are loading a movie into another movie, _root can have two different meanings now. Either the main timeline of the movie, or the movie that loaded it. Turn the _lockroot property on and it should diminish your problems, if not...
    I would say go inside the clip that you are referencing to and place a simple trace...
    trace(this);
    That should make it obvious to you if you are using the incorrect path.

    Information on the change of _root. referencing and Macromedia's public opinion on its use (they discourage all absolute referencing for good reasons)...
    http://livedocs.macromedia.com/flash.../00001659.html

    Simple explanation of the use of _lockroot....
    http://livedocs.macromedia.com/flash.../00001660.html

    More in depth on the _lockroot property....
    http://livedocs.macromedia.com/flash.../00002482.html

  5. #5

    Default

    Thanks burtonrider,
    Ill keep that in mind for future reference. I was never able to find where the problem was but I rebuilt the project and it works fine now.
    Anyway,
    thanks again

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Navigation With _root
    By maziagha in forum General Flash
    Replies: 5
    Last Post: 11-28-2006, 01:17 PM
  2. Text on a path?
    By KaworuNagisa in forum Newbies
    Replies: 2
    Last Post: 08-10-2005, 11:41 PM
  3. Controlling _root with a movieclip event
    By Allwyn in forum Flash Scripting
    Replies: 2
    Last Post: 05-28-2005, 07:40 PM
  4. Control _root from movie
    By Simon in forum Newbies
    Replies: 2
    Last Post: 04-06-2005, 10:06 AM
  5. _root -against- _parent?
    By fino in forum Flash Scripting
    Replies: 3
    Last Post: 08-12-2004, 07:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts