Tell Target?
Hi people, can someone tell me how does tell target go about in MX. Does MX still has tell target function? what's the new way to do things? Thanks for help!
Dave
FlashKit > Flash Help > Flash MX
Posted on: 08-31-2002, 03:43 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Newbie Movement Question - Move Number Of Pixels NOT To Target Or Even PRECISE TARGET
Like a lot of people im using the code below to move a movie clip my question is this - how do i move the clip exactly a set number of pixels from its current position (lets say 20 pixels) rather than setting a target?
(what im using now)
onClipEvent (enterFrame) {
if (_root.go==1 && root._x<300) {
_x = _x+2;
}
}
ive tried lots of things but there must be a simply answer - someone please help.. thanks.
My second question is how do i move something to a specific x target ie not use <300 or such like - ive tried != and stuff like that but to no avail..
1st question more important right now though - thanks!
Apply Glow Filter On Target MC While Dragging An Object And Rolling Over The Target
I can get my filter to apply to a movie clip if i simply rollover or roll out of it. When the mouse rolls out, the filter is set to undefined. The problem I am having is that I want the object that is in effect the hit area to glow (have a filter applied) when the draggable object is being dragged over it.
This would make is easier for the user to visually identify that where they are currently hovering over, whilst dragging, is the area that they should drop the object.
Part of my code looks like this
Code:
this.onRollOver = function () {
if(_global.isDragging == 1){
this.filters = glowFilterArray;
}
}
this.onRollOut = function () {
_global.isDragging = 0;
this.filters = undefined;
}
_global.isDragging is set to 1 at the onPress stage, when startDrag occurs.
_global.isDraggin is set to 0 onRelease of the draggable object.
Are there any ideas for a solution?
Action On Button, Tell Target, Error=target Not Found
Hello, beings of helpfulness!
I am working at a non-profit and trying to make a website from a Flash template with minimal, but some Flash experience. The template has multiple timelines (main page, content pages, and buttons). This part I am still learning. On the home page, I have an image (mc) that loads, with an instance name of "girls." Menu buttons take the viewer to corresponding content pages, which is when I want the image on the main page to dissapear to make room for the content. When the viewer selects the home page again, I want the image to appear again. At first I put in the following action (except for the home page), alpha=0. It worked! And now it doesn't! I did play with the button timelines some. I tried taking the actionscript out and putting it in again, to no avail.
The action in my button is
on (release) {
tellTarget ("_root.girls") {
_alpha=0;
gotoAndPlay(11);
}
}
And the error I now get is: Target not found: Target="_root.girls" Base="_level0.instance58.instance543"
Any ideas? I'm quite stuck. Thanks so much for any help, or suggestions to do this another way.
I've attached the swf, but the compressed fla was too big. I can email it to anyone willing to fix what is probably very simple, except to the newbie with little but increasing experience!
I'm using Flash MX.
LoadMovie In A Target Without Inherit Of Target Properties?
hi,
I load a SWF-FILE in a target MovieClip with loadMovie(). After that I want to read the _width and _height of loaded MovieClip (from the SWF-FILE), but I only get the properties of the target MovieClip.
loadMovie ("test.swf", "dummySwf");
trace("height:"+dummySwf._height+"width:"+dummySwf ._width);
//put out the properties from target, not from new clip :-((
any idea?
thanks
Target A Specific Frame In And Instance Using Tell Target
is it possible to target a specific frame in and instance using tell target? I can get the effect i want by using goto frame, however i want to use this mc or .swf in a movie, and i don't want goto frame to affect the whole movie, just the mc.
Target JS Button To Target Frame Swf At Different Html...how?
this is my 2nd post regarding this problem, i'm seeking for many input nad perhaps the example soource file/code...
kind like a loading specific frame of swf from a html hiperlink?!? can it be done?
- say we have a 3 frame swf, located at index1.html
- then i have a button(gif/jpeg htmlpage not flash), located at index2.html
- what i wanna do is when i click the button(JS) on index2.html, it will open the index1.html then start play the swf at frame 2 NOT 1(beginning)
how can we do that?
Target Not Found: Target="_root.info1"
Okay my problem arises when I load an external swf to a target on my main movie. now the the external swf works great on its own, it has a few MC's which are called via a simple button script - on release -> tell target -> go to and play .... the target is "_root.info1" . However When the file is loaded into my main movie I get the error message ' Target not found: Target="_root.info1" ' obviously it is trying to find the target in the main movie and not in the external swf. Well I just dont know how to fix it, any ideas ?
Thanks
Easy Q: Target Not Found: Target="downtrigger"
I have an MC thats called 'slider' that will slide around the main stage. When different buttons are pressed it will slide in to place and each place will have a dynamic text field that will scroll the appropriate text. When I test the movie the text is viewable but when I click the scroll arrows I get the following error:
Target not found: Target="downtrigger" Base="_level0.slider"
What I would like to know is where I place the
'_level0.slider' on my tell target script, which is as follows:
on (press) {
tellTarget ("downtrigger") {
gotoAndPlay(2);
}
}
on (release, releaseOutside) {
tellTarget ("downtrigger") {
gotoAndStop(1);
}
}
If anyone is interested in looking at the .fla let me know and I can email it. Much appreciated, by the way I have around 2 weeks to get this project finished!
If Target Is Between 1 And X Begion Tell Target... HELP
I have some actionscript in a button that works successfully when a MC has reached a certain frame but doesn't take into account if the MC is already playing, so I want it to say, in actionscript language:
If (/overview:_currentframe is between 1 and 50)
Begin Tell Target.... etc.
How is this done?
Target Not Found: Target="undefined" Base="_level0.hero"
For some reason whenever my hero mc jumps i get this
Target not found: Target="undefined" Base="_level0.hero"
the code for the jump is:
code:
onClipEvent (load) {
vel_y = 0;
jumping = true;
speed = 5;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE) && !jumping) {
vel_y = 35;
jumping = true;
}
}
onClipEvent (enterFrame) {
fall = true;
if (this.hitTest(_root.floor)) {
fall = false;
vel_y = 0;
grav = 0;
}
if (fall) {
grav += vel;
vel += 1;
if (grav>=10) {
grav = 10;
}
this._y += grav;
}
}
onClipEvent (enterFrame) {
if (jumping == true)
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (fall == true && vel_y<=5)
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (fall == false)
this.gotoAndStop(1);
}
Any idea how i can clean this up or help w/ the target identifier?
thnx in advance
How Do I Rid Of This Error: Target Not Found: Target="OverworldTheme" Base="_level0"
I was making a main menu and I had looping music on it. I tried to make the music stop after I click the play button so I used the following code:
PHP Code:
on (release) {
tellTarget ("OverworldTheme") {
stopAllSounds();
}
}
on (release) {
gotoAndPlay(2);
}
And while I play the video and press the button, the following error comes up:
Target not found: Target="OverworldTheme" Base="_level0"
Any advice on how I could fix this?
What Does Target Not Found: Target="_level0.paddle" Base="?" Mean?
Ok I got this line when playing with this game i was creating:
Target not found: Target="_level0.paddle" Base="?"
But I do have a MC named paddle, and it does work but after a while it has this error. Here is the game:
http://www.angelfire.com/sd/LowRyder/pongdeath.html
Play the game and try to collect the red things. Notice how the paddle will run a crumble animation. After a while, it will stop doing this. When it stops, it shows that error message in the debug window. Nowhere in my code does it try to change the paddle's name. The red things are being duplicated off of another MC. Any ideas?
Thanks.
Target Not Found: Target="WIN4" Base="_level0"
Copyed a movie cliped, renamed it as WIN 4, think I got everything right but i get this error when I click on the button: Target not found: Target="WIN4" Base="_level0" ,but the MC loads up and closes just doesn't show the text from the text file. Any help would be great cuz I'm a newbie.
Can't upload file, board says file to big. Message me on AIM, ICQ, or MSN if you cna help me.
Aim: DjSpinStylez
Msn: DjSpinStylez@aol.com
Icq: 82126077
Thanks
[F8] Target Not Found: Target="undefined" Base="_level0"
I am getting this error when running the movie I'm working on. I have looked around, but cannot find a solution or direct cause on the web anywhere. Can anyone here help? Attached is the .fla.
I had to take the content out of scene 2 due to size restrictions, but the error is still the same.
Target Not Found: Target="nomes.popupwindow" Base="_level0.nomes"
hi , how do i tell the button to open a movie clip.i get this !
Target not found: Target="nomes.popupwindow" Base="_level0.nomes"
i have a movie clip(nomes) that loads on frame 10 say,
and in the movie clip(nomes) i have the button that i want to press and open a new MC ?? i tried with " tell target and
on (release) {
_root.instanceNameOfClip.gotoAndPlay(2); but nothings working
Target Not Found: Target=" " Base=" "
I have a loadmovie command in one of the frames
menu_mc.loadMovie("menu.swf");
The movie i'm loading is a drop down menu.
The movie menu.swf loads in but when i go to click on the button for it to dropdown the output panel pops up saying.
Target not found: Target="/Meny1" Base="_level0.menu_mc.Meny1"
I've attached the file, if it helps.
PS I'm using flash MX 2004 pro
Thank you
Target Not Found: Target=" " Base=" "
I have a loadmovie command in one of the frames
menu_mc.loadMovie("menu.swf");
The movie i'm loading is a drop down menu.
The movie menu.swf loads in but when i go to click on the button for it to dropdown the output panel pops up saying.
Target not found: Target="/Meny1" Base="_level0.menu_mc.Meny1"
I've attached the file, if it helps.
PS I'm using flash MX 2004 pro
Thank you
Tell Target
I have a main movie clip.
This clip holds another set of movie clips.
I am targetting the top level movie clip (LAYOUT) and I am telling it to go to a specific frame label.
CODE#########
tellTarget ("/layout") {
gotoAndPlay ("option1 reset");
}
CODE#########
On this frame there is another tell target which targets another clip within the LAYOUT clip.
I have named the clip instance but the the movie cannot find the OPTION1 clip.
Why is this?
CODE#########
tellTarget ("option1") {
gotoAndPlay ("endview");
}
CODE#########
To TELL Target an instance do I always target according to the level I am at?
If I was 5 movie clips down but I wanted to talk to the 5th level clip, surely if it is on that timeline I can target it with a simple:
tellTarget ("clip5")
or do I need to work from the very top targetting each clip until I reach the one I want?
tellTarget("clip1/clip2/clip3/clip4/clip5") for example?
Thanks!
Tell Target Help
Hi, Thanks for your time.
here is my proplem.
I need to tell target an instance of a movie clip that is in the _root movie. But here is the catch, the button is embbeded in a movie clip in frame 1, and the instance I need to target is in frame 100. Fame 1 has an stop action assined to it. So is it possiable to target an instace in a frane that has not been played in the _root movie
Thanks
Gary
Tell Target Help
i know this problem some of you are going to laugh at but i'm kinda newbie to this script lark.
i'm trying to do tell targets and my movies are not appearing in the insert target path box.
why is this???
fanx
Tell Target Who?
Okay, I'm still a scripting newbie. Lots of studying ahead of me...
but...
I'm trying to get a Draggable menu to tell an mc target to goto different frames. (The user clicks on "Onesheet" in the drag menu and its supposed to direct the onesheet movie clip to go to frame 5. No dice) it seems to ignore the target and just jumps ahead within the menu mc. any ideas?
Thanks
The URL Target
As I had made
1.a button(flash button)
2.title htm(frame set htm)
3.1.htm(left frame)
4.2.htm(right frame)
5.3.htm
I paste the button in the 1.htm, and it had an URL to 3.htm
however when I type the action script to go to 3.htm
on (release) {
getURL ("3.htm", " 2.htm");
}
a pop up window occour
and the 2.htm still there
please help me to target 2.htm to 3.htm
and 1.htm no change
Thx
Tell Target From A.swf To B.swf
Is it possible to have a button in swf A tell the target in swf B to stop.
I have a great navigation that runs on variables and tell targets. My client wants to put this nav into a frame. So far no problem.
But when the user comes to the end of a chapter it would be nice if they could click "next chapter" from within the content screen (parent frame).
Esentialy this would mean the "next topic" button would tell target navigation –in another html page, –in another frame, to update the buttons to show the new chapter selected.
All I'm looking for is the path that would be used?
something like this...only this doesn't work.
on (release) {
tellTarget ("b.sfw /bouncing ball") {
stop ();
}
}
I'm not very optimistic on this one but if you have any thought it would be greatly appreciated.
f.
Tell Target Help
Hi,
Here is my situation:
I have two movies, image.swf and text.swf. These two movies will be loaded and displayed side by side in the main.swf.
In image.swf, I have a bitmap that when you put your cursor over a certain part on the bitmap, a lil box of text will displayed in the text.swf.
However, the text.swf movie also has an introduction paragraph. This paragraph will disappeared when the cursor is on the bitmap and lil box of text displayed. When the cursor is not on the bitmap, the intro. paragraph will be there again.
I'm thinking that tell target might a way to do this...but i'm not really sure how. Can someone help me?
Thank your for answering my question.
Anh
TELL TARGET HELP...
Here is the situation:
I have 3 scenes
scene1=preloader
scene2=intro
scene3=main site
the problem is that my menu is within a movie clip and that movie clip is in the "main site" scene
so i have to give it more advanced action to tell it that
when clicked to make "main site" scene go to the next frame
i used this code but it made it go to frame 2 on scene1
on (release) {
_root.gotoAndStop(2);
}
i hope you guys can help me out
e-mail me at
SQ257@aol.com
-Sq
Tell Target Help
Am I able to pass/retrieve variables with tell target? What I'm wanting to do is let someone click on a name in my main movie. That will load a MC (memberInfo). Once memberInfo is open, I want it to run an ASP script and send back information about the person that got clicked. ...hope this makes sense...
Tell Target Or With?
Hello,
I have my main timeline that contains two movie clips. In frame one I have a movie clip with an instance name of intro. In frame 2 I have a movie clip with an instance name of mainmenu.
Within the intro movie clip I have a button that when clicked should play frame 15 of the mainmenu movie clip.
On that button I have the following object actions:
on(release){
with (_root.mainmenu)
gotoAndStop(15)};
What is happening is the button is going to the next frame in the same movie clip.
What do I do to make the button in mc intro goto frame 15 of mc mainmenu?
thank you.
Tell Target
what is the best way to learn how to target movie clips with action scripting
Tell Target
i have a great problem using tell target in flash 5!
how can i address movies using tell target?
when i open the window for targeting movies there aren´t any movies in the library to choose..
my question: how do i get the movies in this telltarget window to adress them by tell target..
thanks for your response
_spine
Tell Target
I am using flash 5 on a PC, i have a scene with two movie clips. I want one movie clip that contains a button, when clicked it will target a frame label or # in the other movie clip as well as go to a frame label in the timeline. The go to frame label works in the timeline, but the tell target to the other movie clip doesn't. This is the syntax i am using in which the second tell target works, the first does not:
on (release) {
tellTarget ("../design_menu") {
gotoAndStop (54);
}
tellTarget ("../") {
gotoAndStop ("gvsu_cd");
}
}
i have an instance name (design_menu) on the other movie clip, and it seems as though the syntax is correct. When i click the button in the one movie clip, it goes to the correct place in the time line but the other movie clip starts over at frame one, when i want it to got to a certain frame. Can u tell me what is going wrong?
How To Right This Target?
ok...here is my situation. I have an instance called "row" and I want to change the varible "description" which is in it. I ser "row" as varible "bn" so when I want to change varible description I would type "_level0.bn.description" (I know u can type "_level0.row.description" but I don't want to do that since I need "bn")
So how would I do it...I tried it and didn't work?
Anyone help would be appreciated..
moe
Tell Target?
Hi all,
I have just started delving into the world of actionscripting. I kinda have a concept of the 'Tell Target' command. However, I just simply cannot use it to achieve what I'm trying to do. For instance, take a look at this movie from Flashkit;
http://www.flashkit.com/movies/Effec...85/index.shtml
If I make this movie into a movie clip, then try to call on it on my main timeline and have this effect play from, oh say frame 101 to 300, what actionscript needs to be placed where??? Can anyone help? Any response or help would be greatly appreciated.
thx
Um..tell Target.?
How do you make a button (that is inside of its own MC) to affter a background image that is in a MC also to do something?..Like scroll to a new LOCATIOn of "X" What is the path to another MC in tell target?..
Thanks -whispers-
Tell Target
ok im trying to tell a movie clip on the main timeline to go to another frame by using a button located within a different movie clip on the main timeline. (got that?)
alas, its not working at all.
for our purposes today, "clipname" will be the name of the clip im trying to access, and "controller" will be the clip that contains the button. both of these clip are located on the main timeline.
the script i use on the button in "controller" is:
on (release) {
tellTarget ("_root.clipname") {
gotoAndPlay (2);
}
}
when i test it tells me:
Target not found: Target="_root.clipname" Base="_level0.controller"
why isnt it working???
thanks
When Target Over Another Target
Could anyone help with some script.
I have an object e.g 'ball' moving on the screen with arrow keys.
I want the user to be able to press spacebar and if the
'ball' is over a movieclip then telltarget movieclip go to frame2.
I have already tried some code but when spacebar is pressed it is jumping to frame2 wherever it is on the screen.
Regards
Dogs Lipstick
Tell Target
I'm trying to use tell target to initiate an MC instance, and it's working fine, but I also need it to stop the instance at one point, while using tell target from another button to play, and stop it, at a different point; thus, I can't use the simple stop command. The tell target.gotoandplay is fine, but how can I stop it when I want??? Thnx in advance
Tell Target
I'm trying to use tell target to initiate an MC instance, and it's working fine, but I also need it to stop the instance at one point, while using tell target from another button to play, and stop it, at a different point; thus, I can't use the simple stop command. The tell target.gotoandplay is fine, but how can I stop it when I want??? Thnx in advance
Tell Target Help
here's the problem i'm having. It's probably something really easy and i'm just too stupid to figure it out. I have a movie clip that I want to use multiple instances of. Each of which I will give an instance name of "flake1", "flake2", etc... I have a button that activates a controller movie clip which, in turn, activates the "flake" movie clips. The action on the button is as follows:
on (rollOver) {
button = 1;
tellTarget ("_root.controller") {
gotoAndStop (2);
}
}
on (rollOut) {
tellTarget ("_root.controller") {
gotoAndStop (3);
}
}
there are 3 frames within my controller clip. On the first frame there is just a "stop" action. The second frame has an action of
tellTarget ("_root.flake"+button) {
play ();
}
the third frame has the following action:
tellTarget ("_root.flake"+button) {
gotoAndPlay ("fadeout");
}
yet, when i test my flash movie i get the following error.
Target not found: Target="_root.flake" Base="_level0.controller"
please help
Tell Target Pb (I Think)
I just want someone kind enough to go to my page
http://www.skarab-mugon.fr.st
in order to tell me why, when I press more than one time a button from the menu, it continues to the other (I don't know how to explain!).
If it's too long, don't bother.
I'll try to find somewhere else.
I'm using:
on (press)
telltarget ("main")
gotoandplay (2)
frame 2 from instance "main" is for "profile"
frame 3 for work
frame 4 ...
when I press on profile, instance "main" goes to frame 2
but when I press again, it goes to frame 3.
Please HELP!
Thanx
Tell Target Help.
How do I get a seperate movie clip I made to play at a certain frame in the main timeline?
If you want, you can just give me the most basic steps in doing this.
I'm using the Mac version of Flash 5.
[Edited by ARIZCATS on 11-30-2001 at 10:24 PM]
Tell Target
i want to load another movie into the same level using tell target.
i have mc symbol which the movies will load into(movies are the same size as the mc)
but when they load they load with the top left of the new movie into the center of the movie clip.
is there anyway to load them so they fit exactly over the mc?
ps. i have a bg as well
TEll Target
Hi,
I am trying to get a button as an icon to show a label(pop up button) when the user clicks on it...any idea how I can do that...I can send an attachment of what I have for you to look over...if that would help just tell me where to send it to..
cheers,
Gauri
Tell Target (
Hi, I have a quick question.
I was wondering if you can set a tell target to make numerous movies do something with one button, without having to write each individual movie.
I want a movie to show, then when you click on another button (to show a new movie), the first movie either becomes invisible or just goes to an empty frame.
This is relativly easy to do, but I will have up to 20 movies and I don't want to have to write code for them all to vanish.
So in simple terms, I want only the movie that the user wants, to play. And I want the rest to become invisible.
Wow, that wasn't so quick was it..hehe. Thanks for the help
Josh
Target.
I'd like to make my site navigation in flash place it in a frame, and have my link open in another frame on the page.
does this seem do-able? If so would be just adding the desired frame name as the target in the link be the way to do this?
Target.
I'd like to make my site navigation in flash place it in a frame, and have my link open in another frame on the page.
does this seem do-able? If so would be just adding the desired frame name as the target in the link be the way to do this?
Tell Target Help...
My movie has a total of 10 scenes. The "intro" scene is the main timeline. I'm trying to target a button from within a movie clip onto diffrent scene. How can I do this?
This is the code I have applyed to my button inside the movie clip:
on (release) {
tellTarget ("_level0/") {
gotoAndPlay ("implementation guides", 1);
}
}
Implementation Guides is the name of one of my 10 scenes. and it doesn't work.
Any suggestions?
Damaris
Tell Target V With
I see that Macromedia recommend using the with action when using Flash 5. Can someone please explain to me the difference between tell target and with actions. Why should I use with instead of tell target?
|