"As we advance in life it becomes more and more difficult, but in fighting the difficulties the inmost strength of the heart is developed."
A description about the blog can be placed here.

How do I change a path??

Posted in: zjnq.com Date: March 13th, 2010

  • I created a container to hold my external swf files and there are buttons that will tell the swf's to load, but they aren't on the main timeline, so i'm not sure how to redirect the actionscript from the mc that holds the buttons to the main timeline where the container is....any solutions?


  • i have something similar on my site

    on the buttons make sure that you direct it to the main stage by putting _root before your mc name so that it knows where to go.

    like this

    on (rollOver) {
    loadMovie("nameofyourswffilehere.swf", "_root.nameofyourmoviecliphere");
    stop();
    }


    see if that works


  • I'm sorry but that didn't do anything either. I wonder if it's because my buttons are in a movie clip where they move. Also some don't appear on the first frame of the mc timeline. hmmm


  • Depends where your container is, but go back to the main timeline (_root) and put there the path to your container mc
    on(release){
    _root.pathtoyourcontainer.loadMovie("test.swf");
    }

    scotty(-:


  • if you load an external swf, they come in as different levels, like if you trace a movie clip, it says "_level0" as root, but if you import another movie it comes in as say level1. so you can find it by saying "_level1.play()"


  • ok...well my script looks like this:

    on (release) {
    if (_root.currMovie == undefined) {
    _root.currMovie = "two";
    container.loadMovie("two.swf");
    } else if (_root.currMovie != "two") {
    if (container._currentframe >= container.midframe) {
    _root.currMovie = "two";
    container.play();
    }
    }
    }

    so where the container is located needs to be changed or something...b/c this script goes on a different timeline. i have other buttons on the main timeline that load movies fine b/c they are in the same place, but i made buttons that move so they're on a separate timeline..since threre are no levels i must be using a different route than you.

    Thanks for the suggestion though.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about How do I change a path?? , Please add it free.