A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 25 of 25

Thread: tellTarget

  1. #21
    Senile member! :)
    Join Date
    Dec 2001
    Location
    Saunaswamp (transl)
    Posts
    2,296
    Well From my experience depth almost the same as the layers you create when making the the movie. but those layers begin at a really low depth. Only those that contain gfx is counted. the lowest layer is on depth -16383.

    /Mirandir

  2. #22
    Member
    Join Date
    Aug 2000
    Posts
    80
    [QUOTE]Originally posted by Mirandir

    Well you need not wait wile the movieclip loads if you use attachMovie(). The attachment is instant. and is complete in the very next line of code. Loadmovie on the otherhand can wary greatly in loading time.
    _________________________________________________
    You have been really helpful thanks. What I meant by allowing one clip to delay is that I want the first clip to load before the second one begins - is that possible?

    i.e.
    _root.attachMovie("linkage1","instName1",2);
    //and then some sort of delay like waiting until the 19 frames have played through
    _root.attachMovie("linkage2","instName2",3);

    Thanks again for all your help.

  3. #23
    Professional Air Guitarist Frag's Avatar
    Join Date
    Dec 2002
    Location
    Brain, Body, Clothes, Computer Chair, Room, House, Neighborhood, City, State, Country, Continent, World, Galaxy, Universe, and on?
    Posts
    811
    you could give the second frame this action:

    if (_root.instName1._currentframe == 19) {
    _root.attachMovie("linkage2","instName2",3);
    } else {
    gotoAndPlay(1);
    }

    hope that'll help some
    Last edited by Frag; 12-16-2002 at 08:06 PM.

  4. #24
    Member
    Join Date
    Aug 2000
    Posts
    80
    Cheers Frag.

    It hasn't worked (yet), but that may be my syntax. This is my code:

    on (release) {
    _root.attachMovie("navig1","navi2",2);
    _root["navi2"]._X = 320
    _root["navi2"]._Y = 680
    if (_root.navi2._currentframe == 19) {
    _root.attachMovie("working2","navi",3);
    _root["navi"]._X = 392
    _root["navi"]._Y = 494
    } else {
    gotoAndPlay(1);
    }
    }

    Perhaps you can spot a mistake? The debug doesn't!

    S

  5. #25
    Senile member! :)
    Join Date
    Dec 2001
    Location
    Saunaswamp (transl)
    Posts
    2,296
    There are a number of ways this could be achieved.

    one way is to put a stop() command at the first frame of the first movie. this will make it halt at the first frame. or you can stop it when attaching it:

    Code:
    _root.attachMovie("linkage1","instName1",3);
    instName1.stop();
    then on the first frmae of the second movie:

    Code:
    _parent.instName1.play();
    another way is to make the first movie play when you link the second movie at frame 19:

    Code:
    _root.attachMovie("linkage2","instName2",3);
    instName1.play();
    However note that even if a stop command occurs at the first line of code all code of that frame will be executed. If this is not desireable you can just add an extra keyframe at the beginning without the undesired AS.

    /Mirandir

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