ActionScript 2.0 :: Gotoandplay - Showing Different Photo Sets On The Same Timeline?
Aug 31, 2005
what im doing is showing different photo sets on the same timeline for my site. so i thought i would have each photoset on a frame and each frame has the stop function on it to keep it from playing them all. so i have a button saying "set 1" and when you click that its supposed to play frame 5. code on the button:
on (release) {
gotoAndPlay(7);
}
(set one is on frame 7) but this doesnt work i dont get it. whats wrong? is there a better way to do this?
View 2 Replies
Similar Posts:
Oct 16, 2008
I am having an issue with my photo gallery thumbs not showing up.When you first land on the page the thumnails do not appear with the flash photo gallery. However, if you refresh the page, they show up.
XML loading code frame 1
Code:
photo_filename = new Array();
photo_thumbnail = new Array();
photo_description = new Array();
[code]....
View 3 Replies
Aug 9, 2006
i cannot seem to find any tutorial around this... when i click the next button, a new photo begins preloading (showing a loadbar or similar) *WHILE* the current photo is still in sight... after loading is complete loadbar and current photo fade out and the new photo fades-in in glorious color... something like the one used in [URL]
View 1 Replies
Dec 6, 2005
I have a main navigation bar on my main stage that is constant through out. I have converted the bar to a movie clip. How do i then tell the movie clip to look at the main stage, not inside the mc, when a button/mouse event is clicked. This is what i have.
stop();
name_btn.addEventListener(MouseEvent.CLICK, enterMovie);
function enterMovie(myEvent:MouseEvent):void{
[code].....
View 1 Replies
Jul 25, 2009
I am looking for an actionscript that will go to a certain frame in the timeline, play several frames and then jump to another frame in the timeline. Basically, I want to use this on several different buttons that use the same animation sequence to get to another part of the timeline.
The following is a scenario, but not script:
Buttons A and B are on Frame 1. Animation is on Frames 2-20:
When Button A is pressed, go to Frame 2. Play Frames 2-20, then go to Frame 21.
When Button B is pressed, go to Frame 2. Play Frames 2-20, then go to Frame 22.
I am currently doing this in a different way.
Buttons A and B are on Frame 1. Animations for Buttons A and B are the same, but are located on different frames. Animations for Button A would be on Frames 2-20. Animations for Button B would be on Frames 21-39. So...
When Button A is pressed, go to Frame 2. Play Frames 2-20 and stop on Frame 20.
When Button B is pressed, go to Frame 21. Play frames 21-39 and stop on Frame 39.
Do I have to create this extra timeline? Can I just put the animation in a separate movie? How can I play the movie and then connect each button to different parts of the timeline after the movie ends?
View 5 Replies
Nov 23, 2009
I'm trying to play a frame label that is on the main timeline by clicking on a button inside of a movieclip.Here is the error I'm getting. I most definitely have a page1 label on the frame.[code]
View 9 Replies
Mar 23, 2010
I've got a timeline and four buttons which each gotoandplay from the first frame on the same timeline. But I want each button to Stop() at different frames on the same timeline. So is it possible to do a GotoAndPlay ... And Stop function on a button in flash?
View 3 Replies
Nov 23, 2010
I was wondering if there is a way to tell flash to navigate to a movieclips timeline without that movie clip being on stage or having an instance...
For example i have MovieClip1 in my Library and its named MovieClip1...but its not located on the stage...
View 6 Replies
Dec 6, 2011
I am trying to use a button on frame 1 to go to a movie clip that is on frame 1018 ( i put the movie clip on the main timeline on frame 1018)
so main(root) --> 1018 --> shipattack_mc ---> "endtest"
I have tried using these commands and a few variations of the same thing. _parent this.
shipattack.gotoAndPlay('endtest")
gotoAndPlay("endtest")
My main timeline ends at 1018 with a stop() and the movieclip "shipattack_mc" plays out its 1000 or so frames. I am testing some things towards the end of the shipattack and want a button to skip to the end.
View 3 Replies
Aug 12, 2009
I have a main timline with MCs in it. when the MC gets to the last frame, there's an onEnterFrame event telling the main timline to go back to frame 129 (labled "b1") and play.
I got the MovieClip(root).gotoAndPlay("b1"); part added to my function to call the root. however, when I test the movie, it does everything correct except play. it goes to b1 and stops. here's my as3:
code: this.addEventListener(Event.ENTER_FRAME,goBack);
function goBack(e:Event):void {
MovieClip(root).gotoAndPlay("b1");
}
why it won't play? I've tried using just the frame number and that won't help either. there's nothing else on the main timeline to stop the movie...
View 4 Replies
Aug 15, 2009
I`m a AS2 user, having a few problems getting adjusted to AS 3. What I want to do: In my stage I have 3 movieclips:
- Intro (frame 1)
- Main (2)
- End (3)
In the movieclip Intro i show some pictures etc, when it comes to the end, i want to go to the 2nd frame on the MAIN timeline. This used to be _root.gotoAndPlay("main"); using the hierarchy allways starting from _root or _level0. or _parent... I have tried searching but am not sure how to lookup this problem. I would be really happy if someone could post me a link how to address movieclips through other movieclips or starting from the root in AS3 and for the right code to use the function gotoAndPlay to go 1 frame further in the main timeline.
View 6 Replies
Aug 19, 2010
I have a series of sections in the timeline and I'd like to use gotoandplay. How do I begin playback of another section of the timeline. Is there a way to detect the end of gotoandplay?
For example: 3 objects and 6 frames.
Each object has a animate in frame and an opposite animate out frame. At each frame the user can pick any of the three objects but if an object is already animated in then is must first play it's 2nd animate out frame. I need to detect the end of an animate out sequence to begin the first frame of the selected object.
View 1 Replies
May 8, 2008
I am working on a site that involves a dropdown gallery menu. I have placed four buttons inside the dropdown menu and it works only with the geturl function, but i want it to gotoAndPlay a particular frame outside of the movie clip. is that possible? Here is the link. TJ2 Studios
Im sorry if i am not clear. My actionscript is coming along very slowly. I created a dropdown menu inside a button. This button is supposed to gotoAndPlay frame 365 outside of the mc i created within that button, ie on the main timeline. But it does not work. However when put the script getURL it goes to the site i commanded.
View 4 Replies
Sep 30, 2004
How do I use the gotoAndPlay to direct the the main timeline to goto frame 2, and not frame 2 of _root.circle MC? with _parent? I know this might be a simple question, but my brain hurts from the previous 'debugging'.[code]
View 4 Replies
Nov 15, 2006
I had the idea of a circular menu, and when the user clicks on a menu item, that one rotates to the top, and becomes highlighted (hopefully with easing). I've searched around here for reversing timelines, etc. but can only find ones that go to the next set frame.How do I get it to skip past the menu items in between? For example if #1 is at the top and I click on #4, I want it to skip past #2 and #3.
View 6 Replies
May 5, 2011
I have a scrollPane on my stage, and I have a movieClip inside of it with a bunch of buttons. When you click on one of the buttons, I need it to gotoAndPlay a frame label on the main timeline. So far I cannot get this to work.
View 6 Replies
Oct 15, 2009
I want a button which is on an externally loaded swf to tell a movieclip on my main swf to gotoand play a specific frame. Is this possible and how would I do it?
View 0 Replies
Sep 30, 2004
After the HitTest, How do I use the gotoAndPlay to direct the the main timeline to goto frame 2, and not frame 2 of _root.circle MC? with _parent?
I know this might be a simple question, but my brain hurts from the previous 'debugging'.....
both of these give me the same results.
onClipEvent (enterFrame) {
if (_root.circle.hitTest(_root.box1)) {
gotoAndPlay(2);
;
[Code].....
View 4 Replies
Aug 12, 2009
I have a ten-frame Flash doc. Seven of these frames have movie clips. What I want to do is be able to have a user navigate to another frame in the main timeline by clicking a button at the end of each movieclip.
I'm using this code:
on(release){
gotoAndPlay("Scene 1",6);
}
[Code]....
And I"m not getting errors but it's not working when I launch the movie.
View 5 Replies
Feb 23, 2011
I'm taking a class on Flash right now but its set up in this strange manner where they barely teach you actionscript at all but expect you to be able to take the examples in class and work and amend them into your projects. I am trying to write a function for a button that will gotoAndPlay one frame beyond where the timeline presently is stopped at.
[Code]...
View 3 Replies
May 18, 2009
I'm sure this is probably something simple, but sometimes when I double click a button on the stage to enter its timeline, I don't get the up, over, down, hit, timeline. I just get a timeline that looks like a regular layer.
View 6 Replies
May 11, 2011
ive made a simple game for a uni project, when you get game over a movieclip comes up and inside the movie clip there is a button to restart the game. how to i code the button inside the movieclip to gotoAndPlay to frame 1 on the main timeline?
[Code]...
View 4 Replies
Nov 10, 2008
Some how, the timeline panel isn't showing the frames. how to get it back I attached an image to show what i mean.
View 8 Replies
May 18, 2010
I want to link a button in my main timeline to a label- frame in a movie clip. The movie clip is called "Adetail" and the label is "on01"... I type in the following script
[Code]...
View 1 Replies
Mar 7, 2011
I am using CS4 and ActionScript 2.0.I am trying to create a photo gallery.I have created 4 different movie clip buttons that reside on the content layer.Each button consists of one image.When the movie clip button is pressed, I want the full size image to appear on the stage next to the buttons.You can see the buttons in the image below.I am trying to create an empty movie clip holder that would reside on the main timeline while the buttons reside on the content layer.I need to get the images to load into the empty movie clip and then unload when the next button is selected?I can't seem to get the buttons to "talk" to the empty movie clip holder.I did manage to create code for an empty movie clip holder within each button, but then I end up with all four images on top of each other.
View 7 Replies
Nov 9, 2007
For some reason i'm having problems swapping scenes in my flash movie. At first i put the action in a "actions" named layer and a link to a button. So basicly when scene1 loads the frame 1 action is "stop ();". The viewer clicks on button1 which has a code of;
[Code]...
View 1 Replies
Jun 3, 2010
I've created an AS class to use as a data model, shown here:
package
{
import mx.controls.Alert;
[code].....
View 5 Replies
May 22, 2007
however I need to create a gallery with two rows of thumbnails representing Before & After situation. So the xml would have to make a reference to 2 sets of images/thumbnails. I don't even have to have them scrolling. Is there an easy way of modyfying the existing code?
View 2 Replies
Aug 18, 2011
I am trying to scale a swf that has been loaded via a swfloader. When I get the complete event or the init event the dimensions of the swfloader are still zero. I don't see a value in the dimensions until I do a resize of the browser window. The swf is just an animation. Trying to resize the actual swf content gives inconsistent results.
View 1 Replies
Feb 20, 2007
I have a project to do and I'm not sure how to get it done. I have some experience using xml to load images into flash but that was one at a time. the project that i'm currently working on needs to work like something like this.
I need flash to load in three images at one time(from an xml file) and display them in a horizontal line, and then move across the stage from one side to the other.
i know how to load one image at a time but not multiple. and i don't know how to make the images slide across the stage in a line.
View 4 Replies