Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash


Advertisements:










ActionScript 2.0 :: If Statement - Goto A Random Frame Which Will Play A Movie When The Button "one" Or The Button "two" Is Pressed


its a gambling game of chance and I want it to go to a random frame which will play a movie when the button "one" or the button "two" is pressed. so on each button, I have the code:

[Code]....


View 7 Replies (Posted: July 20th, 2006)

Sponsored Links:

Related Forum Messages For Flash category:
ActionScript 2.0 :: 'If' Statement' - Goto Another Frame When Click A Button
I need help with the 'If' statement I want it so when i click a button till the socre gets to 5 I want it to go to another frame.

Posted: January 29th, 2006

View 8 Replies!   View Related
ActionScript 2.0 :: Advanced Button - Change The On.Release Command To Goto And Play Another Frame Into Movie Instead Of Opening A New Url
I'm new to Flash and am looking to use the following tutorial to create an advanced button. I know it is probably a very simple fix, I just cannot figure it out. [URL] In the tutorial the rollover and onrelease has the following script this.onRollOut = function(){ rewind = true;} this.onRelease = function(){getURL [URL]); } I have tried to change the on.Release command to go to and play another frame in to movie instead of opening a new url. But I'm not getting it to work correctly.

Posted: January 9th, 2006

View 4 Replies!   View Related
ActionScript 2.0 :: Make A Button Do Two Things / Play A Movieclip And Goto Frame
What im trying to do is play a movie clip between frames. So say we have two menus, when you are on menu 1 and you click the button for menu 2, a short movie clip plays and then you stop on menu 2. I realise I can do this by putting the movie clip on the main scene timeline, but is there anyway i can put it on the button? I think the action script would be something along the lines of "On release play MovieClip and goto frame X" As i said i want the movie to play as an almost filmic transition between menus, with a fade up and then out (Have got that bit sussed using the alpha controls)

Posted: 08-27-2005, 12:21 PM

View 3 Replies!   View Related
Professional :: Movie To Play Foward While One Button Keeps PRESSED?
Soo this is a simple problem, i have a 60 frames movie in a Layer, and another layer with 2 buttons.I want the movie to play foward while one button keeps PRESSED, and to play backward when we keep pressing the other button.i tryed this simple code but it didnt work out.on (press) {nextFrame();}
 
I used this code in the button that plays foward but it only moves 1 frame. I am realy new a this,

Posted: May 12, 2011 5:12 AM

View 6 Replies!   View Related
ActionScript 2.0 :: Goto And Play Random Frame?
I have a 30-frames mc,each frame has a logo of my client. I want visitors see 30 logos randomly and each logo will pause 2 seconds for viewing.

Posted: January 7th, 2003

View 14 Replies!   View Related
ActionScript 2.0 :: After Movie Clip Goto And Stop In Another Frame On Click Of Button
i am doing a simple project in which i have 2 frames in the main time line and a movieclip in the first frame and a button.i have something else in the second frame.when i click the button the movieclip should start after it ends the timeline should move to second frame and stop.

Posted: 02-10-2011, 02:54 PM

View 7 Replies!   View Related
Set Up A Movie Clip Containing A Button That Jumps To Frame Two When Pressed?
I have a dial that can be rotated and scrolls between 40 and 210. At the moment, this works all the time. Is there a way of getting this to work only when a button remains depressed?

I've set up a movie clip containing a button that jumps to frame two when pressed, and back to frame one when pressed again. SO the dial needs to work when the movie clip (containing the button) is stopped on frame two, but not on frame 1.

Posted: 04-16-2011, 03:05 PM

View 7 Replies!   View Related
ActionScript 2.0 :: Making A Movie Clip Play ONLY When A Button Is Pressed?
I have a button, labeled "Main1," in a scene, "Main." When I click said button, I want an animation to start. Said animation is a movie clip named "ArrowAnim."Now, I have done something similar before in another project, using a code which I thought would have worked with this movie clip as well. The code I used before (and which worked flawlessly) was:

Code:
on(release)
{

[code]......

Posted: January 17th, 2011

View 4 Replies!   View Related
ActionScript 2.0 :: Button - Play Random Scene Or Frame
I am trying to make a little animation, where when the button is pressed it would take you to a random scene or Keyframe on the animation.

Posted: 12-16-2009, 07:22 PM

View 3 Replies!   View Related
ActionScript 2.0 :: If Statement - Change A Variable When A Button Is Pressed
I want to change a variable when a button is pressed. lingo: if this button is pressed then check varexample what number it has if it has a number then gotoAndPlay("example") and add 1 to varexample else, do nothing I'm sure if I get this kind of example down, I'll be able to figure the rest out by myself. =S

Posted: 01-29-2009, 11:53 PM

View 5 Replies!   View Related
Telling A Movie To Goto A Random Frame Label?
anyway to write a piece of code telling a movie to goto a random frame label?

Posted: 02-12-2002, 02:10 PM

View 4 Replies!   View Related
CS3 Delay - Button To Play Frame 10 To 40 Then After Playing From Frame 10-40 The Movie Stops
how to code this on a button

onrelease
gotoandplay(10); // i need delay here before activating the next code below//
gotoandplay(80);

the trick is.. i want the button to play frame 10 to 40 then after playing from frame 10-40 the movie stops and then play frame 80 to 100

Posted: 07-03-2010, 05:57 AM

View 4 Replies!   View Related
ActionScript 2.0 :: How To Play Random Scenes In Movie On Button Click
I have a movie with 4 or 5 scenes. How can i make the movie jump from scene 1 to another scene by clicking on a button?

Posted: April 17th, 2004

View 5 Replies!   View Related
Goto Frame Label In Third Scene And Play Movie?
I have a Flash movie that uses three scenes. In scene one I have a button with some actionscript to take it to a frame label in that first scene and play the movie from that point on. It works fine. The problem is, in the third scene, I am trying the same action with a different button, going to a different frame label in that third scene. I am getting an error saying the frame label does not exist in that scene. Even though it does! I've checked for typos and everything looks fine. I've copied and pasted the simple actionscript from the third scene below. Is there a line I need to add to make this work in a scene that is not the first scene?

rocketstart_btn.addEventListener(MouseEvent.CLICK, rocketbutton);
function rocketbutton(event:MouseEvent):void {
gotoAndPlay("rocket");
}

Posted: Nov 17, 2009 4:54 PM

View 7 Replies!   View Related
ActionScript 2.0 :: OnPress Play Movie And Also Goto Frame 3?
I have this action on my buttons:
on (press) {
_root.nPage = "company";
AnimationMC.play();
} on (press) {
gotoAndPlay(3);
}

I am trying to have a button change frames on the main timeline (gotoAndPlay X) and also load a MC on the same click. I think what is happening is because the on(press) is separate it is causing my pages to load at different times when I click real fast when AnimationMC is playing. However if I wait for the animation to load first it works %99 of the time.

Posted: March 14th, 2003

View 4 Replies!   View Related
ActionScript 2.0 :: GoTo And Play Frame Number Of Movie Clip?
How I can make a button goto and play a frame of a movie clip. Basically the first frame is blank and when the button is clicked the movie clip will go to frame 2 and play. I'm also going to have some other buttons make it go to other frames.

Posted: 04-13-2006, 08:38 PM

View 2 Replies!   View Related
ActionScript 2.0 :: GoTo A Frame In A Movie Clip From Another Movieclip And Play?
What is the actionscript if i want to go to a frame in a movie clip from another movieclip? And also for future reference, how do you go to a frame from a movieclip/button to a frame in the main scene? Is it something to do with root?

Posted: May 18th, 2005

View 5 Replies!   View Related
ActionScript 1/2 :: Play Movie/frame When Key Is Pressed?
I have a car that is a movieclip with 2 frames looping in scene 1 and I want the car to switch to another movieclip when I press the space  button and go back to the oroginal car clip when space is released and if possible add a sound when space is pressed.

Posted: Oct 8, 2010 8:16 AM

View 4 Replies!   View Related
ActionScript 2.0 :: Play Movie/frame When Key Is Pressed?
I have a car that is a movieclip with 2 frames looping in scene 1 and I want the car to switch to another movieclip when I press the space button and go back to the oroginal car clip when space is released and if possible add a sound when space is pressed.

Posted: 10-08-2010, 01:20 PM

View 1 Replies!   View Related
Goto &play Button Won't Work
im creating a website, and i have scene 1, which is an enter page to the website, with a button set to 'goto and play scene 2' but it doesnt, it plays scene 3, and then i cant get a button to goto and play scene 2 either.

Posted: 01-03-2010, 05:33 PM

View 6 Replies!   View Related
ActionScript 3.0 :: Get Button To Play Another Movie And Frame?
I have a menu bar at the top and and when i click the different buttons i want to play different movies from the start i.e different pages, and where i used to just type goto and play etc

I have the impression that i cant type straight on the button layer anymore so I need to type the code on an actions layer (right or wrong?)

I think this is nearly the code i need but what do i type to get it to go to a particular movie and frame?[code]...

Posted: 02-09-2010, 11:29 PM

View 2 Replies!   View Related
ActionScript 3.0 :: Write For Each Button To Goto And Play At A Label?
I'm having a memory lasp. I trying to write for each button to goto and play at a label. what the correct code for that is please.ActionScript 3.

Posted: Dec 17, 2009 8:30 AM

View 4 Replies!   View Related
ActionScript 3.0 :: Goto And Play Button Doesn’t Work
I have a splash page with a logo. When the logo (splash_btn) is clicked I want it goto the site (frame label: home). All my code seems to be right but the button doesnt work.

[Code]...

Posted: 07-22-2010, 04:33 PM

View 3 Replies!   View Related
ActionScript 1/2 :: Get The Invisible Button To Goto A Frame
I have invisible buttons on a movie clip that is loading swfs onto a parent movie clip. I hope I am current in the terminology. Are a parent and root the same? Is saying root absolute and parent relative? I'm digressing. So, this this._parent.gotoAndPlay("contact form"); is going to the keyframe named "contact form" and it will stop there. What I want to happen, is, I want the other invisible button named aboutmeMC2 to go back to the keyframe named "skip" so my contact form will no longer show up and it will load the external swf.

[Code]...

Posted: Feb 23, 2011 7:26 PM

View 5 Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved