Control Goto Frame
This is an easy one i think but all of my flash books are at college. How do i control the go to frame if its insde another movie. LIke on rollover i want it to go to frame 2 of movie "menu".but im not in the menu movie clip
on (rollOver) { gotoAndPlay(2); }
thank you?
Ultrashock Forums > Flash > Flash Newbie
Posted on: 2003-11-30
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Start Flash At Specfic Frame (Goto Frame)
I have a header flash movie that is the same on all my webpages - everytime i open a new webpage the movie starts all over again from the beginning - to reduce redundancy - i would like to movie to start at a different position on different pages. I created different swf files with different Goto Frame#'s actionscripts in frame 1 - this works - but now i have to wait and load each swf for every page visited -- is there a way to use one swf and just instruct the browser to start the movie at a specific frame?
I am a newbie - but i tried the flashvar technique..
in my html - i used this:
<script type="text/javascript">
var so = new SWFObject("../swf/bannervar.swf?FRAME=1671", "bannermovie", "512", "92", "6", "#990000");
so.addParam("quality", "high");
so.addParam("menu", "false");
so.write("flashcontent");
</script>
(i'm calling the swf via the SWFObject method for IE compliance)
i appended a variable "FRAME" after the swf. ie.. bannervar.swf?FRAME=1671
First frame of my swf file i have as an actionscript:
gotoAndPlay(FRAME);
Am i close? far? or completely useless? any help or guidance is greatly appreciated.. thanks..
Start Flash At Specfic Frame (Goto Frame)
I have a header flash movie that is the same on all my webpages - everytime i open a new webpage the movie starts all over again from the beginning - to reduce redundancy - i would like to movie to start at a different position on different pages. I created different swf files with different Goto Frame#'s actionscripts in frame 1 - this works - but now i have to wait and load each swf for every page visited -- is there a way to use one swf and just instruct the browser to start the movie at a specific frame?
I am a newbie - but i tried the flashvar technique..
in my html - i used this:
<script type="text/javascript">
var so = new SWFObject("../swf/bannervar.swf?FRAME=1671", "bannermovie", "512", "92", "6", "#990000");
so.addParam("quality", "high");
so.addParam("menu", "false");
so.write("flashcontent");
</script>
(i'm calling the swf via the SWFObject method for IE compliance)
i appended a variable "FRAME" after the swf. ie.. bannervar.swf?FRAME=1671
First frame of my swf file i have as an actionscript:
gotoAndPlay(FRAME);
Am i close? far? or completely useless? any help or guidance is greatly appreciated.. thanks..
How To Remove A Frame From A Goto Random Frame Set?
I'm building myself a simple set of Flash Cards for school and the setup I have is to goto a random frame where ActionScript loads in a question I've put on that frame. I'm using variables to keep score of the ones I get right and wrong.
What I want to be able to do is when I get an answer right and Flash goes to the next frame randomly, to have this current frame REMOVED from the options of frames it can go to. This way, it won't repeat any questions I've answered right.
Control 'goto' From HTML?
Hi Folks - not sure if/how I can have a flash movie playing in an html page, but then have a standard HTML link that could call flash's 'goto' function. I'd like an html link to be able to control a flash movie from outside the flash object - sending it to frame 200 for example. Any ideas? Thanks for any thoughts on this. --bp
Can I Use Goto To Control Another Flash Movie
I have swf A and swf be on the same page. Swf A is my navigation bar and swf B is all the web sites content.
Is it possible to use swf A to navigate in swf b? Like, I want swf A to tell swf B what frame to go to when I click the links.
Thanx.
Control Goto In Loaded Movies....
how can i load a movie clip by release one button and this movie clip goes to a spcific frame...
some think like this:
on release .. loadmovie (x.swf )... and (x.swf) goes to and play frame 6....
note that this is just an exemple of what i need to know, its not in script language...
thanks
Can Anyone Help? Want Input Text To Control Goto Action
I am going to provide an input field which I want to control where the playhead goes.
The input field will ask for a specific date in a specific format. i.e...dd/mm
and when the user enters 05/23 (or May 23rd) and presses a button,
I want the playhead to gotoAndPlay("05/23");
Can anyone help me please? i know it has something to do with setting and getting properties, but I can't figure it out.
Thanks !!!
-Travie_B
If Frame Is Loaded On A.swf, Goto Frame (?) How?
Please could someone help out here,
I have a swf loaded with some menu buttons. when you click on one of the buttons it loads a movie clip with a sub menu and another swf beside it. the sub menu will control the second swf. what i want is that the sub menu buttons apear one by one as the second swf is loading.
e.g. if frame 5 of second.swf is loaded go to frame (5) of this movieclip in the current swf etc.
hope this makes sense.
thank you.
Goto Frame
I have 1 MC named arm1 with 15 MC's in a big circle around one big MC I want the big clip to change with which arm1 Mc is on the top of the circle. so I have 15 frames in the big MC and need the gotos to match how much arm1 is rotated. I am doing the rotation with script not a tween so i have numers for where rotation is if this helps any ideas are great even different aproaches
Goto Frame
Hi everyone,
I got this tat I cannot solve.
In my movie, I have entered in my action tat when a button a pressed, the movie is to go to frame 70 in the same scene, then after to frame 1 in scene 2.
My problem is tat, whenever the button is pressed, the movie jumps back to frame 1 of the same scene and plays everything all over again & not going to frame 70 or the frame 1 of scene 2. However if the movie is only going to frame 70 of the same scene & no where else, its ok then.
Sorry for the long question...but I dun noe how can I shorten it further.
Thanx
E.S.C.
Goto A Particular Frame
hello
i am loading a .swf file in a movie clip in the release event of a button,What i want to do, is i want to goto scene2's 20th frame of the loaded .swf file and play from there.How can i do that,pls help me.
bye
geethanandh
Goto Frame
HI I am trying to have a box of text on my main flash timeline stay in place and when you click on it it will take you to another frame and have music and such. I cant get the goto and paly command to work. Please Help!!!
Goto Frame
Ok I have 4 buttons that are going to link to 4 seperate parts of the main timeline. I want to fade them out and fade in the next set. DO I have to fade out the first set all 4 times or can I play that part of the timeline and then skip to another part when its done?? Hope all that makes sense!!
Thanks!!!
Goto Frame
is there a way to load a movie from a movie in flash and tell it to go to a specific frame of that movie?
Won't Goto Frame 15
I have a button, i set the Actionscript to
on (release) {
button1.onRelease = function() {
};
gotoAndPlay(15);
}
It won't go to frame 15, i don't know why, it'll go to frame 16 and 14,
Frame 15 is a keyframe
I have flash MX, any help would be appreaciated
A Goto Frame On A Mc?
I found a script here at flashkit and I would like to use it as a button (goto frame) as well. The script looks like this:
onClipEvent(load)
{
dir = 0;
speed = 6;
bk_orig1._alpha = 0
this.onRollOver = function()
{
dir = 1;
}
this.onRollOut = function()
{
dir = -1;
}
useHandCursor = false;
}
onClipEvent(enterFrame)
{
temp = bk_orig1._alpha + speed*dir;
bk_orig1._alpha = Math.min(100,Math.max(temp,0));
}
----------------------------------------------------------------
If I add:
onClipEvent (mousedown)
{
gotoAndStop("frame2");}
----------------------------------------------------------------
it dosn't work. I've tried different ways but I can't get this to work. Could someone help please?
Goto Frame Using Php
Hi,
I have a tiny problem. I have a website that's made with php. The menu is a flash movie (swf). Now I want a button/textlink on my website for users to select if they want to see the English version or the Dutch version.
The button/textlink would link to a frame within the menu, for instance frame 1 for English, frame 100 for Dutch.
I've been searching flashkit and other sites to see how it's done, but I can't see how it should be done. By now I know it's is done in flash with LoadVars that gets a number that is in the phpcode telling flash what framenumber to go to.
Since I don't know anything about LoadVars or php, can someone here help me out?
Goto Next Frame ?
Im makeing a website in flash and i have buttons to go from frame to frame but i need to make a button that when clicked goes to the next frame not just the frame it is told to go to like this:
(NOT this)
________________________________________________
NextPage.onRelease = function () {
_root.gotoAndStop (24)
}
________________________________________________
[F8] Goto Next Frame ?
Im makeing a website in flash and i have buttons to go from frame to frame but i need to make a button that when clicked goes to the next frame not just the frame it is told to go to like this:
(NOT this)
________________________________________________
NextPage.onRelease = function () {
_root.gotoAndStop (24)
}
________________________________________________
Goto Next Frame?
Hello,
the first 20 frames of my page contain an animation afterwhich i have a stop command in my actions layer. So far so good. Now with the click of button instance "har", i would like the page to continue playing to the next frame and beyond where the animation continues. It ain't working so here is my code...
stop()
import flash.events.MouseEvent;
har.addEventListener(MouseEvent.CLICK, goForward);
function goForward(event:MouseEvent):void {
har.nextFrame();
}
har.buttonMode = true
thanks
Goto Same Frame?
hi, just out of curiosity:
why doesn't the playhead "restart" the current frame when u call gotoAndPlay(the_current_frame)?
i.e. if at frame 1, i have:
trace("frame1");
gotoAndPlay(1);
it goes straight to frame 2!
does the flash player virtual machine check that if playhead == currentframe, then go to next frame?
Thanks!
=D
Lem
Goto Next Frame?
Hello,
the first 20 frames of my page contain an animation afterwhich i have a stop command in my actions layer. So far so good. Now with the click of button instance "har", i would like the page to continue playing to the next frame and beyond where the animation continues. It ain't working so here is my code...
stop()
import flash.events.MouseEvent;
har.addEventListener(MouseEvent.CLICK, goForward);
function goForward(event:MouseEvent):void {
har.nextFrame();
}
har.buttonMode = true
thanks
Goto Frame 1
Ohkay.. This may sound like a very basic thing to do.. BUT IT JUST WONT WORK!!!.. heres the deal.. I have a button inside a mc. i want it so that when i click this button it goes to frame 1 of scene 2!!
The script i tried was:
on (release) {
gotoAndStop("Scene 1", 1);
}
but im not sure if there should be a _root. in there..??
Can some one please help me!! PLEASE!!!
Goto Frame
Ok, i read in a thread you can use
on (release) {
gotoAndPlay("framelabel");
}
to go to a frame. I want to do this so i can navigate. I've got my text buttons, but i can't add the actionscript to them. Anyone know why? or how i can get around this?
Goto A Frame?
Hello
I have a question about the Carousel III.
Right now, I'm in a desperate condition of creating a carousel that would
let me go to a frame instead of loading from the XML. I know how to achieve this but I don't know how to go back to the carousel that works properly.
Well, I did that too,but the thing is that it's not proper. Two icons are flashing blue and when I click on another icon, like all icons dissappear except for like three icons when when I click one of those, like two carousels come up and stuff..
if you acheived this properly, it would be wonderful if you could upload the FLA for it or just tell me the code that deals with going back to the carousel frame.
Thank you!
Keehun Nam
Loadmovie, Then Goto Frame?
Does this look like it would work?
loadMovieNum ("multimedia.swf", 2);
tellTarget ("_level2") {
gotoAndPlay (16);
}
stop ();
Is there any reason that the tellTarget line would be ignored? (that's the problem I'm facing -- everything seems to stop at line1, the loadMovie line)
THANKS!
Load Swf And Goto A Frame
simple probably but i cant get it to work.
use the loadMovNum to load an swf to level 0 (not into a MC)and at the same time tell it to start playing from a specific frame. i tried this
loadMovieNum ("my.swf",0);
_level0.gotoAndPlay(10);
and it doesn't seem to work
thanks in advance!
Goto Frame After If-statment
I have a problem with going to for example a next frame in a scen after a condition that I've put in a MC.
..lets say that the last frame in the clip contains something like:
if (_root.myvar==5{
gotoAndPlay (2);
}
what happens is that the MC restarts if the condition is met, and this is not what I want to happen.
Anybody have a clue? or any idea how to put the condition i the main fram so that it doesn't have to be in each MC?
Goto A Frame Using Variables
Hi,
I am writing a script where it moves on to (gotoandstop) a frame that has been earlier set by a variable. If I use gotoandstop(variablename) it doesn't work. How can I get around that?
Goto A Frame Not Yet Loaded
Is there a way to jump to a frame far in the movie, without the content before this frame is loaded ?
Thanks.
Goto Specific Frame Of Ex Swf...?
hey,
fairly eaasy question im sure, but i cant seem to work out how to tell my level_0 movie to goto a certain frame when a button is clicked in my level_1 movie...
thanks
cu$E
On Mouseover Goto Frame
Is it possible to give a button an action that tells it to goto and start playing a frame when the mouse rolls over it, then when you take the mouse off, it goes back to the first frame?
Also, what would the action be to tell the button onclick to goto a different scene?
Thanks,
Nick!
Goto Scene,frame,MC
How can I combine these actions:
gotoAndPlay("Scene 2", 1);
_root.mc.gotoAndPlay(2);
So that when I click the button, the movie goes to the mc in another scene with a defined frame.
Greetz
Goto Frame/loop
I know this is pretty simple, but i'm new to ActionScripting so it is not that simple to me. I have one single scene where i would like frame 40 to 60 to loop indefinately. I dont know how to do this, but i thought of making a script something like:
on(something) {
gotoandplay(40);
}
i just need help making something that will work... i dont even know ehere to put the script...
please reply asap.
Goto Mc Frame Preloader
I have a mc(loading bar) with 100 frames and a dynamic text box that returns the % loaded 1% - 100%,
can I set it to go to each frame by using the % loaded value?
i.e _currentframe == percent
or sumit like that.
Arrowkey To Goto Next Frame
i need to programme left-arrow-key to make _root go to previous frame,
and right-arrow-key to make _root go to next frame.
Can you help me please?
thanx!
Goto Frame With For Loops
I have a simple for loop to duplicate a MC named box within the MC box there are 20 frames with a stop on each frame. What code would set each of the duplicated MC to the next frame.
Goto Frame Of Duplicated MC?
Hi All
It's probably a simple answer but how do I jump to a frame in a mc created using 'duplicateMovieClip'?
I'm using an if/then loop thing to create a number of duplicated mc's, then a line that sets the alpha of each duplicated mc. What's the line that sends each duplicated mc to a certain frame (i)?? (See below)
I tried '"myMC" add i.gotoAndStop(i);' but it gives a syntax error because it doesn't like the '"myMC" add i' bit.
if (Number(i)<Number(Number(amount)+1)) {
duplicateMovieClip("myMC", "myMC" add i, i);
setProperty("myMC" add i, _alpha, 20);
Line here to go to frame i of 'myMC add i'
i = Number(i)+1;
}
Help!
Thanks
Making A *.swf In A MC Goto A Certain Frame...
Hi there,
i put the swf "tilt.swf" in an existing movie like this:
_root.createEmptyMovieClip("myMC1",1);
myMC1._x = 340;
myMC1._y = 10;
loadMovie("tilt.swf", myMC1);
It works, but how can i make the tilt.swf, which has ten frames for example, go to frame five by clicking a button, which is placed in the first movie?
Iow: by clicking a button in MCA, i want the loaded tilt.swf, which is IN the MCA goto frame 5???
THX!
Goto Frame Based On URL
Looking for a way to move to a certain frame or scene based on the url parameter/link followed to get to the movie.
IE
Visitor comes from a link such as
...mypage.html?scene=2
Once the movie loads the playhead moves to scene 2;
without the paramater the movie plays normally.
Is ther a way to read the url of the containing page from within the SWF?
TIA
Need To GoTo A Random Frame..
Hello again..
I really need to know how to goto a random frame(2-4) in the scene when enter the mainframe(frame 1)
Thanks...
LoadMovie And Goto Frame
Is it possible to load an external movie file, but immediately jump to a frame other than one based on a parameter from the main file?
In other words, can I offer several options in the main file, all of which link to the external file, but to different frames in the external movie?
loadMovie() always takes me to frame one.
Thanks in advance.
Goto Frame Using URL Query
I'm making a flash nav that uses a query string to decide what page is being displayed and in turn displays the related frame.
The basic actionscript I'm using is this:
Code:
if (_root.page=news){
gotoAndStop("news");
}
and the HTML that's passing the query string is this:
Code:
<object type="application/x-shockwave-flash" data="nav_master.swf?page=news" width="600" height="200">
<param name="movie" value="nav_master.swf?page=news" />
</object>
Now, that should work, as the frame that the AS is pointing to is labelled "news". I've also tried it with the frame number instead, but that didn't work.
Can anyone see what I'm doing wrong here? Any ideas?
Goto Frame Containing Movie
I'm making flash a webpage that has a 1-minute intro I created as a movie clip. In the very first frame of the main timeline I made a goto and play action script that goes to a specific frame that contains the intro movie, then I have another goto that sends the movie back to the second frame of the main timeline that starts the main menu and the rest of my flash page. This works fine and dandy when I test the movie, but when I publish it, it skips the intro movie and goes right to frame 2 of the main timeline. Do I need to write a script that loads the intro movie and plays it or should it be good enough to just goto the frame that has the movie in it?
I'd appreciate any help. Thanks.
Mike
Goto Frame Label?
Hi,
I have this problem,
I'm making a short intro movie for a website. I would like to know how I can 'link' an actionscript from scene 2 back to scene 1.
Example:
Scene 1 is my 'main' scene. In here all the layers are placed in frame 1, except one. The folloing layers are placed:
Frame 1:
- Background (Layer with a picture, must be visible all the time).
- Line (A dotted line surrounding the picture above, also visible).
- Logo (A movie clip is inside this layer, it plays when the scene starts).
Frame 2:
- Foto (A movie clip is inside this layer, it should play when layer 'Logo' is finished), frame label = Goes.
So basically the movie clip inside layer 'Foto' should have a small script with something like gotoAndPlay("Scene 1", "Goes"); at the end of the frames. But this doesn't work. It won't go to frame 2 in scene 1...
I hope I have explained it well enough for you guys to help me!
Thanks in advance,
-Spheron
Goto Random Frame
Hi. i have a quicktime movie that i've converted to a flv and imported into flash. the movie is a line drawing on, and in the movie there are 4 points with exactly the same frame, but then the line goes on to draw something different.
when the movie gets to certain points, say frames 40, 80, 120, 160, i need it to randomly play from a selection of 4 different frames, say 41, 81, 121, 161.
how would i go about doing this?
cheers in advance!
also i need the movie to slowly fade through 4 different colours every time it plays. the way i would do this at the moment is a motion tween, but then the colours would always be the same. i need the colours to change between 4 random colours.
Goto A Button Frame?
hi everyone!
does anyone know how to make a button load up on its 'over' state and stay there until the user moves the mouse back over the button?
thanks
|