ActionScript 2.0 :: TellTarget - Change To Another Frame
Apr 26, 2005I have a button inside a movieclip inside another movieclip that, when it is released, it changes the frame of the main movieclip. I am using tellTarget like this:
[Code]...
I have a button inside a movieclip inside another movieclip that, when it is released, it changes the frame of the main movieclip. I am using tellTarget like this:
[Code]...
I just got cs5 and this is the script I normally use for certain mouse over events. I want my button to tell a certain movie clip to play a certain frame.
//MOUSE OVERS
on (rollOver) {
tellTarget ("culture") {
[code]....
Why doesnt this work?
can you help me make this work[URL]..I need that the buttons, under the tellTarget moviclip, to actually work.
View 2 RepliesI am making a quiz/game, and it works like this, two teams that have to take over the united states, by answering history questions, so right now I have it were when you click on a state, it takes you to a question (on a different frame in the main timeline), then I have a problem, if you get the question right it takes you to the "board" of the United States (that works), but when you are back the color of the state should change its color to red (on frame of the clip) if south got it and blue (another frame of the clip) if north got itBut instead i changes back to grey (default color, all start grey to begin with). I don't and can't seem to figure this out
View 2 RepliesI've been following the book "Beggining Flash Programing for Dummies" and I have come up to a part where I create a very simple game.
The script involved in the frames are FRAME here:
stop();
btnGoThere.onRelease = function(){ _root.gotoAndStop("there");
} //end event handler
Frame there
btnGoHere.onRelease = function(){ _root.gotoAndStop("here");} // end release
When I test the movie and click the button, the frames don't seem to change.
I got a MovieClip filled with a lot of others clips... When I change de X or Y value of this first MovieClip the frame rate slows down for during 1 frame. For exemple... I created a counter that returns around 30 mseconds every frame, but when I do this X or Y change the return is around 400 mseconds... When I try to fill the first MovieClip with less information it goes faster, about 100+-200 mseconds...
View 6 RepliesI have two swf's called test1.swf and test2.swf.Can I open BOTH swf's in DIFFERENT players (not loading test2.swf in to _layer1 of test1.swf), and click a button in test1.swf to play a mc in test2.swf? or possibly pass variables from test1.swf to test2.swf.
View 6 Replieshow do you specify the target path using "tellTarget"?Ex. The target movie clip is on the main timeline but the "tellTarget" script is on another. How would I code this? (or should I just use the standard "gotoAndPlay"?)Is tellTarget really even relevant anymore? It seems to me that with the release of FMX 2004, Macromedia advocates using gotoAndPlay more than tellTarget. Why would you use tellTarget when gotoAndPlay does essentially the same thing (or does it?)?
View 4 RepliesI read Kirupa's article on the telltarget command and have duplicated it in my own project i am working on. but when I click on the button contaion the tell target, I get an error which says:Target not found: Target="/landmenu" Base="_level0"Maybe one of you may know the answer to this.
View 2 RepliesI have a little problem, I have a scene containing about 30 movieclips (all with a unique instance name!)
I want to call all movieclips at once, on a specific keypress - ex. when I press the key "a", I want to tell one clip to go to frame 2, and all the rest to go to frame 1
I know how to do this the "hard" way, by writing all 30 actions on each key, but I'm looking for an easier way,
In this file are two movies, "display" and "nav slideshow" "nav slideshow" consists of a scrolling toolbar that displays 6 buttons at a time. Clicking on one of these buttons is then supposed to load a frame with the appropriate content in the "display" movie. For the longest time, I couldn't figure out the proper syntax until I came across the Kirupa tutorial on Tell Target & More Tell Target. So I finally got the buttons in "nav slideshow" to load the right content in "display". That was all well and good, but the gallery is designed to load as an external movie into the main website. When I tried this, the code no longer worked. The syntax for the actionscript I have now is:
[Code]...
In the Advanced Rollovers tutorial found here at kirupa.com, I used the followingactionscript on one of the buttons as instructed in the tutorial (it worked fine):
First Button
on (rollOver) {
tellTarget ("/rollover") {
[code].....
I am attempting to apply the tellTarget script (using kirupa's tutorial as a reference) and I get the following output error:
Target not found: Target="/security" Base="_level0"
I named the movieclip "security" (without the ", of course), and applied the appropriate script to my button but I keep getting that error.
[code]...
I am working on a portfolio in flash which dynamically defines the target of the buttons. When a button is click an external swf is loaded, and the button sends the value of a variable to the loaded swf. So far I got it to work as I want it to, BUT the ouput-panel keeps giving the message:
Target not found: Target="this._parent.project" Base="_level0.button_1"
I am using this code:
on (release) {
this._parent.project.loadMovie("project.swf");
tellTarget ("this._parent.project") {
pnumber = a;
}}
The "pnumber" var is used in de project.swf to define a folder. "a" is a var with a numeric value. I know the tellTarget is an old-fashioned way of scripting, but so far it is the only piece of script that actually does what I want it to do (except for the error-message)
I tried:
Code:
on (release) {
this._parent.project.loadMovie("project.swf");
this._parent.project.pnumber = a;
}
But this resulted in an undefined var in my target clip, while the tellTarget did return the value for 'a'/'pnumber'.
Ive just followed the tutorial about creating a full flash site using root. I got that working fine. My problem occurs when i want to use tellTarget in my menu system as well.
The movie looks for the actions contained in the mouse overs of the menu in the main movie. This is the error message i get:
[Code]...
I have an all flash site that i'm making to learn flash MX 2004. I'm loading external swf's into a main page to make it all flow and easy for the browser to chew. i got a page that uses tellTarget to start rollovers and advance a movie. here's the script for one of the buttons...
Code:
on (rollOver) {
tellTarget ("/swift"){
gotoAndplay (2);[code]....
that works perfectly but when i load it into the main movie... it won't work...how to _root.,_parent, or this. is to make it work.
I need the event button to go to one more tellTarget ("/popup_ I Have 5 popups Now I need one more [URL]
View 1 RepliesI have a movieclip in the mainframe that on a button release gets moved to the center of the screen with some set_property stuff and then I want the clip to play. So I added a tell_target on release, the target is /movieclipname and I then Go_To_and_Play the first frame. I have a stop action as the first frame of the movieclip as to keep it from running when I dont want it. I want that tell_target to make the movieclip play but sofar no luck.
View 5 RepliesI have button rollovers, that when at 40fps looks really nice, but when i change the timeline to 24fps, it looks terrible.
What is the best way to change my frame rate of my rollver_MC to fps while leaving the entire fla to 24 fps in AS 3.0
how do you specify the target path using "tellTarget"?
Ex. The target movie clip is on the main timeline but the "tellTarget" script is on another. How would I code this? (or should I just use the standard "gotoAndPlay"?)
Second Question
Is tellTarget really even relevant anymore? It seems to me that with the release of FMX 2004, Macromedia advocates using gotoAndPlay more than tellTarget. Why would you use tellTarget when gotoAndPlay does essentially the same thing (or does it?)?
I CAN change the frame rate, like this:
[Code]....
But if I want to change these values I have a problem, I could create a button that says 'on(release){ mc1.framespersec(15);' but all this will do is increase the frame rate by 15, not make it 15.
How do I go about changing my movie height on a certain frame on the timeline?
View 10 RepliesgraphicsSpace.graphicsInnerMenu.selectFolderMenu.imagesButton.addEvent Listener(MouseEvent.MOUSE_UP,imagesPage_change);function imagesPage_change(e:MouseEvent):void{
[code].....
I have the same f() in frame 1 and frame 2, and when I play the movie again, it says f() dupliicated.How can change it in the second frame, not to be the same. Here is the f()
function onEnterFrame(event:Event):void{
domystuff; }
I am trying to change the frame of a movie clip when the date changes to a specific date. For instance, on September 11 I was the movie clip to go to frame 2. I have this code, but not sure how to manipulate it.[code]...
View 1 RepliesMy main frame rate of my flash piece I am working on is set at 30 fps. I want to be able to change the frame rate of another movieclip that is on the timeline. How would I do this? I have seen examples that do it with onclick speed up or slow the clip down. I just want to set it dynamically on the timeline by targeting the movieclip - how I do this?
So in basic premiss mymovieclip fps=20 -- how do I write the code for AS3?
How to change the frame rate in actionscript(actionscript version 2.0).
View 2 RepliesCurrently I have a single movie clip and next/ previous buttons attached to this movie clip. The image changes every 9 frames. Currently I have the code set to change at every frame. How do I get it so it changes at every 9 frames????
[Code]...
I have this code in an object:
onClipEvent(enterFrame){
if (this.hitTest(_parent.character)) {
gotoAndPlay("5");
[code].....
I have just made a flash game for a college project, and to finish the project we need to do error testing, while bashing the keyboard I found that > and < change the frame your on when the movie is playing.
View 2 Replies