A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: telltarget question

  1. #1
    Junior Member
    Join Date
    Oct 2001
    Posts
    8

    telltarget question

    is there any way of telltargeting a movie that has been loaded in a movieclip (not level)???

    thanks in advance

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    if you loaded "external.swf" in a movieClip called emptyMC, which is on the stage, to controll external.swf, you adress do the emptyMC:

    for example, if you want to stop external:
    _root.emptyMC.stop();

    or, with tellTarget:

    tellTarget(_root.emptyMC){
    stop();
    }

  3. #3
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    sorry, I made a mistake...

    in external.swf, if you have a mc called ball moving, you use the following code to stop it:

    _root.emptyMC.ball.stop();

    or, with tellTarget:

    tellTarget(_root.ball.emptyMC){
    stop();
    }

    but if you want to change it's size, you'll do this:
    _root.emptyMC._xscale = x;
    _root.emptyMC._yscale = y;
    ...

  4. #4
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    before you tell me that I haven't been of much help, I thought of something else:
    the problem is that instead of a ball you wanted to stop, you might have 99 ball... i.e., you might want to stop the movie, not just one object
    so, when you create the mc which will be loaded, create it inside a movieClip. like that you'll be able to control the loaded movie clip, and all the others inside it

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