Professional :: Randomly Jump To A Frame Only Once?

Aug 6, 2010

how to accomplish my current task. I have an .fla with 32 frames in it, an open frame, a close frame, and a bank of 30 frames in between.  I want to set up some AS so that once the user clicks a "Next" button on the first frame, it randomly jumps to another one of the frames within the bank of 30.  Then, when they get to that frame and view the contents, and click next, they'll randomly jump to another one of the remaining frames.  This will only happen for 20 frames, after the 20th viewed frame, I want the "Next" button to take them to the final slide in the series.  The purpose being so that each time a user views the program, it's never the same (well not likely ever the same) - so they'll all see 20 different frames in a different order.
 
I'm guessing I could do this with arrays, and the math.random method, some if/else statements.

View 6 Replies


Similar Posts:


ActionScript 3.0 :: Randomly Jump To A Frame?

Dec 3, 2008

I have an animation where I want to play a movie clip and then play another movie clip from the library (selecting randomly from a group of movie clips). I couldn't figure out how to get this to work, so I tried to play the first clip, and when it gets to its last frame jump to a random clip which is already on the time line. The AS is attached.

Clearly I'm missing something critical here.

View 5 Replies

ActionScript 2.0 :: Randomly Jump To A Frame In A Sequence Of Pictures On Timeline?

Jun 29, 2011

I trying to randomly jump to a frame in a sequnce of pictures on the timeline. Neither of the parts work below - the first "if/then" statements or the commented out switch code. Very frustrated with Flash CS5. Do I really need to learn AS3 to use CS5? I'm having other issues with code I've used in CS3 Flash not working in CS5. If I'm setting the publish settings to AS 2 and Flash Player 8 it should work, right? [code]...

View 5 Replies

ActionScript 2.0 :: Make A MC Jump Randomly Either Forward Or Back ONE Frame In The Timeline?

Jan 28, 2012

When landing on a certain frame, I'm trying to make a MC jump randomly either forward or back ONE frame in the timeline. Can't get random(whatever); to cooperate.

View 1 Replies

ActionScript 2.0 :: Jump To Another Scene Randomly?

Sep 23, 2011

what the script to jump to another Scene, randomly... im using AS2

View 9 Replies

ActionScript 1/2 :: Randomly Choosing Next Marker To Jump To And Play?

Sep 16, 2009

I'm interested in understanding the ActionScript 2 code that will allow a random decision on the next marker to jump to. I have five markers on a time line and want the movie to stop after playing a sequence of elements, then randomly choose the next marker to jump to and play, this would continue forever.The goal is to communicate a few concepts without starting from the same concept every time in a linear manner.

View 6 Replies

ActionScript 2.0 :: Random Script - Playhead To Randomly Jump To Different Frames

Apr 20, 2004

I have a movie with various movie clips on certain frames. What I want is the playhead to randomly jump to different frames I specify within the movie after each Movie clip has played. So at the end of each movie clip there would be a random script forcing the playhead to play another movie clip randomly. My movie has 100 frames but I only want the random sequence to occur on the following frames 10, 13, 25, 86, 75, 56. Or If I labelled the frames how would I label them?? Would they all have to have the same label, or each label different?

View 2 Replies

ActionScript 2.0 :: Create A Script That Will Jump To A Certain Frame When A Movie Cilp Reaches Its Last Frame?

Dec 2, 2009

I need to create a script that will jump to a certain frame in the scene when a movie cilp reaches its last frame. Putting a goto... within the MC itself doesn't work. I assume that I need to create a listener of some sort....I haven't been able to find what I need in any documentation (and I'm even been looking through AS dictionaries going back to Flash 4).

View 1 Replies

ActionScript 2.0 :: Button Play A Frame And When It's Stopped Jump To Another Frame

Sep 6, 2011

I built a button in one of the movie clips in my project,

when I release this button, it goes to the 41st frame of the main timeline and continue to play until the frame 70 which has got a stop; command. till here everything's just OK. But I want this button to do something more though I don't know whether it's possible or not.

I want this button to go and play the frame number 41 in the main timeline, and then after it stopped at the frame 70 , then jump to frame 73.

View 5 Replies

Jump To A MC Frame From Different Scene?

Oct 7, 2001

I have a movie clip with a button, clicking on it goes to another scene. When in the other scene, i want to be able to click another button and go back to the original scene and have the movie clip be at the frame where I left it, or any other that I specify.

View 2 Replies

Actionscript 3 :: Jump To Next Frame?

Mar 18, 2012

I have a memory game here. And each time a card is removed from the gameboard I have "cardCount -2", when this cardCount gets to zero, I want the program to jump to the next frame which is like a "game over" page. I've tried using gotoAndStop(); as well as nextFrame(); but it doesn't seem to be working![code]...

View 2 Replies

ActionScript 2.0 :: How To Jump To A Frame

Nov 10, 2011

I have problem to jump to a frame after a video clip (which is on server) is done playing. Do you have any idea how to do this?

View 7 Replies

IDE :: Jump Into Another Url If It Enters A Certain Frame?

Nov 21, 2009

if a flash website can jump into another url if it enters a certain frame...

For example maybe something like?

on enterFrame {
getURL("http://www.sample.com/", "_self");
}

how do i tell the timeline to get that url instead of the button?

View 3 Replies

ActionScript 2.0 :: Jump To Different MC Frame 2?

Aug 4, 2008

On the main stage there is a MC on frame 4.

I have a drop down menu button that I want to jump me to frame 2 of that MC

I tried this:

button.onRelease = function () {
_root.instance_of_mc.gotoAndStop(2);
}

but it didn't work.

View 8 Replies

Jump To Specific Frame When Using Loader?

Apr 22, 2009

I want to jump to a specific frame in the swf I load using the Loader class. As it is now it goes directly to frame1 in the file, which I dont really want it to do. I'm using Flash CS4

View 2 Replies

ActionScript 2.0 :: Keyword Jump To Frame?

Nov 20, 2009

I'm trying to create a movie, that when a correct word is entered, it goes to a specified frame. The code below words fine but I need to make an addition to it,

on (release, keyPress "<Enter>") {
if (inputtext eq "word1") { gotoAndStop("frame1");
} else if (inputtext eq "word2") {gotoAndStop("frame2");[code]....

I was hoping to add extra words that would go to the same frame. I know I ca do this by�

if (inputtext eq "word1") { gotoAndStop("frame1");
} else if (inputtext eq "word3") {gotoAndStop("frame1");

but was wondering if there is an easier way, something along the lines of�

if (inputtext eq "word1", "word2", "word3") { gotoAndStop("frame1");

View 1 Replies

ActionScript 3.0 :: Jump To Appropriate Frame Of Animation?

Nov 16, 2011

i have a clock, and a background the background contains an animated ocean (100 frames) there are four sky themes which change on the appropriate hour to night-time, morning, sunset, sunrise (could just use alpha to show another here although maybe processor intensive)
 
ok so the ocean could animate on its own and only the sky would need to change, that would be the easy part
 
but when it gets to night-time the ocean needs to jump to the night-time version of itself so if the user presses the hour button, and the ocean is on daytime at frame 80, how would i say play night version at frame 81 so that the ocean doesnt skip animation??

View 27 Replies

Jump To Frame In Timeline While Working?

Mar 23, 2011

Today I found that flash had no option to jump to unassigned frames.

Say, I am working on frames numbered from 1 to 250. Now I need to jump to frame number 15000 and I found that I cannot jump to the frame number 15000 directly. I have to click in the Timelline and move the scroller right to its full extent, again click in the last frame visible in the time line and so on continue this until I reached the frame 15000.

Is there any easy way to jump to frame 15000 ??

View 2 Replies

ActionScript 2.0 :: Does Not Jump From The _root Frame To The One Indicate

Jan 20, 2006

i'm trying to make a transition, but unfortunatelly cannot make it work! it does not jump from the _root frame to the one i indicate, simply repeats the movie in that frame everytime i press the buttons! here are my actions on the buttons:

[Code]....

View 3 Replies

ActionScript 2.0 :: Load Swf Into Another Swf & Jump To A Frame

Aug 3, 2008

I work with flash 2.0 in CS3 When I click a button I want to load an swf in a higher level of a "main" swf and jump to a certain frame of the "main" swf. Is that possible? In a nutshell, I want to bring in an swf in a higher level that play a fade to white animation, which then hits a stop motion on a blank frame at the end, then the timeline of the main swf should go to a frame where a transition fades white to a new section of the flash website. Or the timeline could jump right away. Either way I need a goToAndPlay action to work with a loadMovie action simultaneously on a button click. For some reason these two actions seem to cancel each other out.

View 1 Replies

ActionScript 2.0 :: Jump To A Certain Movieclip And Frame?

Oct 26, 2009

I need to know How to jump to a certain Movieclip, And Frame with AS2!? By Clicking on a button.

Right now I just know how to jump whitin a Movie clip. But I need to jump to a whole other movie clip from a other movie clip.

This is what I know! (Se below)

on(release){
gotoAndStop(5)
}

[Code]....

Been searching more then 10 hours all over the internet. With No Result. Either im a retard or the solution is so simple nobody cares to post it.

View 8 Replies

ActionScript 2.0 :: LoadMovie Jump To Frame?

Nov 5, 2004

I know there's been a million "how do I load a movie and than jump to a specific frame" thead. Well all of those have been helpful :: HOWEVER I wouldn't be posting because I can't seem to get my script to run successfully First the background I have a nav. menu made up of seprate movies clips :: inside each movie clip is four buttons :: these buttons are shown using a rollOver, rollOut dealy

anyway when you click on one of the buttons it calls "student.swf" to load into an empty MC called content.I've tried everything :: What happens is the button will load the MC but will sit on the first frame and do nothing :: the movie clip "student.swf" is not that big so I doubt I'm waiting for it to load.

[Code]...

View 5 Replies

ActionScript 2.0 :: Jump To Frame After FLV Finished Playing?

Nov 5, 2008

I am using actionscript 2 and I am trying to get my FLV to jump another frame in my flash movie after it's finished playing. I am using the FLV component that comes in flash to play the FLV and i've embedded an event cue point in the FLV but I am not sure what I am now supposed to do!

View 9 Replies

ActionScript 2.0 :: GotoAndPlay To New Scene And Then Jump To Another Frame

Dec 14, 2009

I am making a small website out of flash and I have a photo gallery in a separate scene. I have five photo galleries and so I have five buttons that will lead to those five galleries.

The code of one of the five buttons is

on (release) {
_root.gotoAndPlay("Content_Photography");
}

Works great, but the first 10 frames of this new scene "Content_Photography" is an intro and then I would like that it would jump to the corresponding gallery that these galleries will be laid out on the timeline.

What would i put after _root.gotoAndPlay("Content_Photography");?

View 9 Replies

ActionScript 2.0 :: Linking .swf And Jump To Specific Frame?

Apr 13, 2010

I have been researching this for hours and cannot seem to find an answer anywhere. Right now I am linking one flash file or .swf file within my main flash site using a button.So in my main flash site, I connect to this .swf file by using...

on(release){
loadMovie ("MDsite2.swf", _level0);
}

This works perfect but the .swf file starts at the first frame. Is it possible to a jump to specific frame within that .swf file so it doesn't start on the first frame?

View 2 Replies

ActionScript 3.0 :: Use Buttons To Jump To Frame Labels?

May 16, 2011

I am trying to use buttons to jump to frame labels. They jump to the label just fine, but they won't stop when pressed again. Below is the code I am using to have the button rest when pressed again.

getting_btn.addEventListener(MouseEvent.CLICK, gettingStarted);
function gettingStarted(evt:MouseEvent):void {
gotoAndPlay("ipad_in");

[code]...

View 4 Replies

ActionScript 3.0 :: Create Jump Frame In Class?

Nov 18, 2011

Im new to AS 3.0, i use gotoAndStop() when the day i dealing with AS2.0, but i have no idea how to go to specific frame if i write the code inside the class.

View 5 Replies

ActionScript 2.0 :: How To Jump On Scene 2 Frame 1 In Movie

Jul 18, 2006

I made movie, which has TWO Scene. In Scene 1 I placed link in 4th level of the movie like
Main Movie >
sub movie 1 >
sub movie 2 >
sub movie 3 >
sub movie 4 > (here is the link on movie)
Now I want to jump on Scene 2 frame 1. How can I do this?

View 1 Replies

IDE :: Using Button To Jump To Labeled Frame Within Timeline?

May 22, 2009

I've got a button that I want to use to jump to a labeled frame within the timeline. When I click on the button I can't get my trace statement to work. The error message I get is:
Error 1061: call to a possibly undefined method addEventListener through a reference with a static type flash.display:SimpleButton
BtnDone is the instance of the button on the stage, btn1867 is the frame label I want to jump to once the button is clicked.

Here's the code:
stop();
btnDone.addEventListner (MouseEvent.CLICK,clickSection);
function clickSection (evtObj:MouseEvent) {
//trace action - what's happening in output window
trace("The button 1867 was clicked!")
gotoAndStop("btn1867");
}

View 3 Replies

ActionScript 2.0 :: Jump To Frame In Timeline While Working?

Mar 23, 2011

Today I found that flash had no option to jump to unassigned frames. Say, I am working on frames numbered from 1 to 250. Now I need to jump to frame number 15000 and I found that I cannot jump to the frame number 15000 directly. I have to click in the Timelline and move the scroller right to its full extent, again click in the last frame visible in the time line and so on continue this until I reached the frame 15000.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved