A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: back to _root or _parent??

  1. #1

    back to _root or _parent??

    Hi there,

    Hopefully someone can help me. I have a preloader - a littlte different as the preloader movie clip follows the mouse around and a cylinder fills as the site loads. I have put the labels and the frames loaded code in the _root of the movie. Want i want to do is as the cylinda fill up it loads frames on the main movie.

    Can someone tell me the code??

    Cheers
    http://www.design-ated.com

    life is not short.
    life is what you make it.
    make of it what you will.

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Movieclips dont have a _root , only the main swf.

    _root is the main timeline of the swf file.

    If you want to tell something to the movieclip you have to give it a instance name so you can call it. If there is something inside the movieclip you want to call, you have to name that too ( if it isnt a simple gotoAndPlay action ).

    You have to be more precise.

    Show the code you have , tell what you want to happen , and with what. As for now I dont have a clue what is making your cylinder fill. Is it a separate movieclip or an animation on the movieclips timeline. Is it a 100 frame animation so it can use percentage to to goto the different frames?

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3

    thanks

    thanks for the quick resonse! In the main movie (preloader) I have labels 10%, 20% etc... I have the normal code:

    gotoAndPlay("20%");
    ifFrameLoaded (100) {
    gotoAndPlay("30%");
    }
    The cylinder is a movieclip in this preloader - it is made up of frame by frame animation which fills 100 frames. I just need the main preloader to tell the cylinder how much it should be filled as in which frame to go to and play. I was intending to have labels and for the main timeline to play certain sections of the cylinda filling until the site had loaded.

    I wish i could send you the swf but i work on mac so that's a no no.
    http://www.design-ated.com

    life is not short.
    life is what you make it.
    make of it what you will.

  4. #4
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Hey Susi, that no-no is not a no-no any more, no. Besides Pelle has a Mac.

    He even knows how to open a fla made on a PC in a Mac. Ask him. You could have opened those flas I posted long ago.

  5. #5

    hello

    hi iaskwhy

    ya know what i did discovery that after all that trouble i had. It's a shame pc's don't understand Mac though? or maybe they do?

    pellepiano, if what i have written in my last post makes no sense could i send you the fla for you to look at??

    I would appreciate any help!
    http://www.design-ated.com

    life is not short.
    life is what you make it.
    make of it what you will.

  6. #6
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    The easiest thing would be to to include some code on the framelabel frames

    On the 30% frame

    cylinderMC.gotoAndStop(30);

    On the 40% frame

    cylinderMC.gotoAndStop(40);

    ...and so on.

    ----------
    I have no problems sharing my flas with pc people and they usually have no problems opening my Mac .flas. Sometimes you have to zip them when emailing as some email clients mess up the attachements (and you never know what compression people have as default in their email clients.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center