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 :: 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
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
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
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 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
|