A Flash Developer Resource Site

Results 1 to 19 of 19

Thread: Tell Target Issues

  1. #1
    Senior Member
    Join Date
    Aug 2000
    Location
    Desert Southwest
    Posts
    367
    Hi All ---

    I need some assistance. I am attempting to use a tell target action between 2 MC (DMG and Header). When DMG stops playing I want it to load the Header MC. However when I test it I keep receiving the following message when I debug the movie:

    Target not found: Target="Header" Base="_level0.instance1"

    The tell target reads:

    stop();
    tellTarget ("Header") {
    gotoAndPlay(2);
    }

    Can someone provide some insight on what I am doing wrong? Please let me know if you require more information.

    Thanks for any and all repsonses.

    Cheers!
    SDL

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Posts
    309
    I've found that 'tell target' ddoesn't work with MX, you need to use 'with' or 'target paht'

  3. #3
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    first, try:
    Code:
    stop();
    _root.Header.gotoAndPlay(2);
    second... are you trying to load the movieclip; or is it already there you just want to play it?

    OOPS... I FORGOT TO PRESS THE SEND BUTTON

  4. #4
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    Originally posted by yeffer
    I've found that 'tell target' ddoesn't work with MX, you need to use 'with' or 'target paht'
    it does work, it's just been depreciated (not recommended).

  5. #5
    Senior Member
    Join Date
    Aug 2000
    Location
    Desert Southwest
    Posts
    367
    Originally posted by gSOLO_01
    first, try:
    Code:
    stop();
    _root.Header.gotoAndPlay(2);
    second... are you trying to load the movieclip; or is it already there you just want to play it?

    OOPS... I FORGOT TO PRESS THE SEND BUTTON
    Hi....

    Thanks for the help.

    It is already there (meaning it is a MC contained with the movie) I am just trying to play it. What about using "with". Is that now "in place of" using Tell Target?

    Thanks again.


  6. #6
    Senior Member
    Join Date
    Aug 2000
    Posts
    309
    It's definitely not reccommended!! If I publish my site as Flash MX, nothing works! So for the sake of further conflicts, it's 'with' or 'target path' for me. )

    yeffer

  7. #7
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    so this didn't work?

    _root.Header.gotoAndPlay(2);

  8. #8
    Senior Member
    Join Date
    Aug 2000
    Location
    Desert Southwest
    Posts
    367
    Originally posted by gSOLO_01
    so this didn't work?

    _root.Header.gotoAndPlay(2);
    Hi---

    Thanks for the reply. That doesn't seem to work either. I get an error stating that:

    Target not found: Target="_root.header" Base="_level0"

    I must be doing something wrong. Let me ask you a question. If I create a Movie Clip (animated) and then use a tell target or "with" action (can not figure out which is correct with MX) to play the MC, does the MC need to be placed in the scene intially? If not, how do I know where the MC will be loaded? If it does need to be placed on the scene, how do I make sure that it doesn't "show itself" before it is called.

    Does that make sense? I hope so, if not let me know and I will do my best to clear up my description.

    Thanks.

  9. #9
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    ok... thats what i asked before.... the movieclip has to be there or loaded already.... is it there or already loaded?

  10. #10
    Member
    Join Date
    Sep 2001
    Location
    Málaga, Spain
    Posts
    98
    did u give ur movie clip's instance the name "Header" on the stage??????
    then the code _root.Header.gotoAndPlay(2) must work-
    the error message u get sounds to me like u haven't named it.

  11. #11
    Senior Member
    Join Date
    Aug 2000
    Posts
    309
    Maybe this will help, go to http://www.badeyes.com/wanagrow/index.html the first frame you will see will be the main stage(Leve0)), then it goes instantly into a movie clip, that is on a separate level(Level1, because of size and loading)once it's finished, it goes to frame one and stops and the movies proceeds on to Level0. The clip is still there, but you don't see it. This can also be achieved by putting the clip on the main stage without using levels. Is this what you are looking for?

    yeffer

  12. #12
    Senior Member
    Join Date
    Aug 2000
    Location
    Desert Southwest
    Posts
    367
    Originally posted by yeffer
    ......This can also be achieved by putting the clip on the main stage without using levels. Is this what you are looking for?

    yeffer
    Thanks for all the replies. I am still stuck and quite honestly think that I have been looking at it too long. I know it is a simple solution.

    I created a test fla for anyone who is interested to take a look. It can be downloaded here:

    http://www.digitalsaguaro.com/telltarget.fla

    When the "supported media" gets done playing it is supposed to "tell" DMG to then play...but it is not working.

    Any help is greatly appreciated!

    Cheers.
    SDL

  13. #13
    Member
    Join Date
    Sep 2001
    Location
    Málaga, Spain
    Posts
    98
    that's what i thought it would be.
    first ur MC wasn't on the stage, so it could not possibly play or be targeted !!
    drag ur DMG MC from the library to the stage and give it an instance name, for example dmg
    then the code is either:

    _root.dmg.gotoAndPlay(1);

    OR:


    with (_root.dmg) {
    gotoAndPlay(1);
    }
    if u want the fla give me ur email and i'll send it to u

  14. #14
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    as i thought... you either have to have it loaded on already placed (hidden)...

    here you go...

    http://gsolo.com/temp/telltarget.fla

  15. #15
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    just curious... what are you using for those text effects? swish?

  16. #16
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    I understand that you have two MCs on the stage and DMG MC plays first then reaches the end and triggers Header to play. Am I correct?

    If (this == true) {
    at the end of DMG you make an action:
    _root.Header.goToAndPlay("framename");
    }

    If you want Header to play you have to create Header with two framenames: stop and play. Stop is of course stop. i think that is the easiest solution.

  17. #17
    Senior Member
    Join Date
    Aug 2000
    Location
    Desert Southwest
    Posts
    367
    Originally posted by gSOLO_01
    just curious... what are you using for those text effects? swish?
    Thanks for your help.

    Yes I am using Swish to create those Text Effects? Have you tried it yet. If not, IMHO, it is a great program for the money and for the amount of time it saves you.

    Thanks again.

    Cheers.

    SDL

  18. #18
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    no prob... i own and use swish as well...

  19. #19
    Senior Member
    Join Date
    Aug 2000
    Location
    Desert Southwest
    Posts
    367
    Originally posted by gSOLO_01
    no prob... i own and use swish as well...
    One more question. I looked at the .fla that you edited and I made one addition that further illustrates my question. If you donwload it again, you will see that I added a movie clip to the scene called test. However, I don't want it to play until 2 other events are done, yet it is still visible on the stage?

    How do I hide it until I am ready to use it?

    Here's the link again:

    http://www.digitalsaguaro.com/telltarget.fla

    Thanks.

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