-
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
-
I've found that 'tell target' ddoesn't work with MX, you need to use 'with' or 'target paht'
-
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
-
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).
-
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.
-
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
-
so this didn't work?
_root.Header.gotoAndPlay(2);
-
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.
-
ok... thats what i asked before.... the movieclip has to be there or loaded already.... is it there or already loaded?
-
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.
-
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
-
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
-
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
-
as i thought... you either have to have it loaded on already placed (hidden)...
here you go...
http://gsolo.com/temp/telltarget.fla
-
just curious... what are you using for those text effects? swish?
-
Senior Member
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.
-
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
-
no prob... i own and use swish as well...
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|