View Full Version : tell target
fatmammal
October 23rd, 2002, 07:44 PM
I have setup a scene with drag menu's. I have a main one setup and you click the buttons and i want it to load up another drag menu movie clip. I cant get the tell targets to work or a basic goto command to a keyframe which would load the movie on it. I need help real bad...
thanks
joel
example below i think...
if you have an answer im on AOL instant messanger at
Fatmammal
i would really appreciate your help....im stuck on this one part...
reverendflash
October 23rd, 2002, 07:54 PM
are you using Flash 5, or MX?
TellTargets are depricated in Flash 5... :*(
However, if you must use them, please post your .fla, and I will take a look at it... chances are you have to target the level the mc is loaded into...
Rev:elderly:
fatmammal
October 24th, 2002, 01:21 AM
the main menu that is shown in the above .swf file with the buttons web development and application design.
When click I want it to open the other movie clip labeled as "dragmenu2". The actions i have for the button is
on (release) {
tellTarget ("/dragmenu2") {
gotoAndPlay (1);
}
}
and it doesnt open the movieclip with this error message.
Target not found: Target="/dragmenu2" Base="_level0.instance13"
thanks...
upuaut
October 24th, 2002, 01:25 AM
The new format for this command as of 5.0 is
on (release) {
dragmenu2.gotoAndPlay (1);
}
Given that the movie clip in question has the instance name "dragmenu2" and that it is located on the same timeline as the button that has the script.
reverendflash
October 24th, 2002, 01:25 AM
without your .fla it is difficult to tell, but judging by the little explaination you gave:
I assume you are loading the dragable movies in a level, correct?
then if you loadmovie into say level 01, you need to target that level:
on (release) {
tellTarget ("_level01/dragmenu2") {
gotoAndPlay (1);
}
}
see if that helps...
BTW, swf's don't do a lot for me, since I can't see the code... that's why I ask for the .fla...
Rev:elderly:
fatmammal
October 24th, 2002, 01:28 AM
I changed the actions for the rollover to on (release) {
dragmenu2.gotoAndPlay (1);
}
and it stopped the error but the movieclip doesn not come up..
fatmammal
October 24th, 2002, 01:31 AM
that gave me this error
Target not found: Target="_level01/dragmenu2" Base="_level0.instance13"
and to be honest with i dont think i know what a level is ...
reverendflash
October 24th, 2002, 01:33 AM
can you post your .fla?
Rev:elderly:
fatmammal
October 24th, 2002, 01:34 AM
can i email it you...
reverendflash
October 24th, 2002, 01:36 AM
if it's under a meg... probably should zip it, if you have winzip...
edited out by reverendflash
I'll see what I can do...
Rev:elderly:
fatmammal
October 24th, 2002, 01:41 AM
its sent
fatmammal
October 24th, 2002, 01:59 AM
Any idea?
reverendflash
October 24th, 2002, 02:04 AM
okay, for some reason, I couldn't see your .fla when I tested the movie... :(
However, I did the attached test file to show what I would do to fix this...
I used LoadMovie to load your dragable menus into level 10. then you can load the new menu in the same menu, and telltarget the main timeline by _level0 ...
I hope this helps,
Rev:elderly:
fatmammal
October 24th, 2002, 02:12 AM
totally awesome... so what would i put on the drag menu.... to close it? if i put an "X" button in the top right corner.. What actions would i put?
thanks alot
joel
fatmammal
October 24th, 2002, 02:14 AM
by the way is there any way to make the menu pop up not onto of the other... like in a different location?/
reverendflash
October 24th, 2002, 02:14 AM
you would just use Unload Movie level 10 on a button...
glad it works for you,
Rev:elderly:
fatmammal
October 24th, 2002, 02:15 AM
nevermind the location one...
reverendflash
October 24th, 2002, 02:20 AM
You can always load the menus in different levels (I try to use 10, 20, etc. to leave room in case I need to insert something in between)..
BTW, this is really oldschool as far as Flash is concerned... they use really different code now... :( I have just started learning the AS for MX...
Rev:elderly:
fatmammal
October 24th, 2002, 02:36 AM
yea but i mean... when a menu comes up... and i want to close it by putting an "x" on the menu in the top right corner... just like windows...
is there an action that will close the .swf movie?
reverendflash
October 24th, 2002, 02:40 AM
As I said...
on a button :
on (release) {
unloadMovieNum (10);
}
10 being the level the movie is loaded...
Rev:elderly:
fatmammal
October 24th, 2002, 02:53 AM
thanks alot
your the man...
reverendflash
October 24th, 2002, 02:55 AM
Glad to help...
Rev:elderly:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.