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!!!
FlashKit > Flash Help > Flash General Help
Posted on: 01-23-2003, 04:25 PM
View Complete Forum Thread with Replies
Sponsored Links:
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..
View Replies !
View Related
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..
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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!!!
View Replies !
View Related
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
View Replies !
View Related
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?
View Replies !
View Related
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?
View Replies !
View Related
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)
}
________________________________________________
View Replies !
View Related
[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)
}
________________________________________________
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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!!!
View Replies !
View Related
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?
View Replies !
View Related
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
View Replies !
View Related
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!
View Replies !
View Related
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!
View Replies !
View Related
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?
View Replies !
View Related
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!
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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!
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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?
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
Any Key Press Goto Next Frame
Hello there,
I'm working on a simple presentation. The presentation will animate and then stop. The user will talk. The user will then press any key and it will mov eonto the next frame. Stop. Talk. Press any key. Onto next frame etc etc
I'm really struggling with the 'press any key goto next frame' bit. Can someone tell me how to do this really, really simply. It used to be easy in Flash 5, but MX looks like it's written for experts.
Thanks in advance...
View Replies !
View Related
Goto Not Going To Correct Frame
My movie was working perfectly until I added a preloader to the visionaries page. Now, when you click on the green buttons on the side menu, it goes to the wrong place. Only two buttons are active, the logo development button, and the website button. The logo button goes to the website page instead of the logo page, and the website page goes to a different page depending on where you hit the button. I'm assuming something is wrong with the levels, but I used _root and tried _level0 and I'm not sure where the bug is. Please help!
http://www.graphicvisionsinc.com/GVI - site
I'm trying to upload the fla file. It's kind of a hard problem to solve without the source code. But it's kind of a big file. but when the file is done loading it will be at:
http://www.graphicvisionsinc.com/GVI/visionaries.zip
Thanks, any help would be greatly appreciated.
--Audrey
View Replies !
View Related
Goto Frame Label
Hey guys,
I didn't like the combo box component, so I decided to make one of my own. I have an MC that plays the drop down menu, and it isn't activated until you mouseover, click, etc. All that works fine. I tried to make it so the last frame of the MC has the actual buttons so you can move, but it you try and click on them it resets the MC of the combo box. So i figured I'd make a new frame with the drop down menu (open) outside of the MC. So i named the specific frame 'choice' and then put "gotoAndPlay("choice"); on the last frame of the MC, but for some reason it ignores this. If that's not clear enough I can elaborate.
Thanks alot,
brennan
View Replies !
View Related
Goto Frame With LoadMovie
Hey Flashers...it's been a while since I've run into trouble but it was always gonna happen! I'm not much of an AS user to be honest...but this is one instance when I want to use it!
Is it possible to use the loadMovie function and specify which frame the movie begins at? Basically, let us imagine, I'd like to have two buttons that load one swf file. One loads the movie at the beginning and the other on frame 10. Possible or not?
Thanks in advance for the replies!!!
View Replies !
View Related
[F8] Sound Goto Next Frame When Done
Hi,
I am working on a timer that has audio instructions.
At the begging of the timer a verbal instruction is given and then the timer should begin.
After the audio ends i can't seem to get the swf to move to the next frame.
What am I missing.
Thanks
View Replies !
View Related
|