Need Simple Code For A Button (go Back 30 Frames And Stop)
http://butlerbuildinganddesign.com/gallery.htmlMy goal is to get my "back" button to bring viewers back 30 frames in the clips_mc for each hit and STOP. (30 frames is approxwhere each image should be at 100% alpha)the buttons are in the clips_mc (the clip transitions) which I placed on the stage as one mc. my other buttons work fine.restart:Code: on (release, keyPress "<Up>") { gotoAndPlay(1);}play:Code: on (release, keyPress "<Right>") { play();}stop:Code: on (release, keyPress "<Down>") { stop();}I would attach the fla file if I knew how.This should be fairly simple, right. I'm very limited in my as. knowledge. But I know I should be able to do this.Thanx a Mil-Bobbi Jo
General Flash
Posted on: Fri Jul 21, 2006 10:11 pm
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Code For A Simple Stop/play Button
Hello All,
I've created a product demo in flash and now the client would like to add a "pause" button so the viewer can pause the demo at any point. I am new to ActionScript 3 and really need some help figuring out how to add this functionality. I tried searching the forums but I could not figure it out.
The demo has a voiceover audio track that would need to be paused as well, in case that matters for the AS code.
Many thanks.
Button To Go Back 5 Frames
What action script do I need to use for clicking on a button which makes the movie go back 5 frames and play from there?
Thanks
Something like:
on (release) {
var x = framenumber + 5;
goto and play frame(x);
}
Thanks for any help
Button To Advance And Go Back X No. Of Frames
Gentlefolk;
Simple problem, but it has me flummoxed.
I have a conventional Flash file that I want to include navigation. This navigation would include a "Go Back" and "Go Forward" button that would take the movie back X number of frames or forward X number of frames.
This is a training file, so I want people to have the option of speeding thru the areas they already know.
The standard FLV video management bar would work, but this does not appear if I just import a SWF file in an HTML file.
So, I am stumped. How can I let the user go forward or backward along a standard SWF that has still images and audio?
Thank you!
Don
[AS2] Browser Back Button Without Frames
Does anyone know how to enable the browsers "back" and "forward" button without using the frames and name anchor technique?
I try and put everything I need into one frame and using multiple frames and a "goto frame" command to use name anchors isn't going to work.
I have searched for a tutorial but all I am finding is this method.
Any advice? Links?
Someone has had to cover this somewhere before, but I can't find it.
Back Button Functionality W/o Frames
I'm about to work on getting the back button to work with a flash site I've done and I wanted to know if people have seen a method that doesn't use frames.
It doesn't make sense that it would be possible but I thought I should ask.
I've worked with the Flash/Javascript Integration kit and it's beautiful. Not sure if some solution existed there that would keep my XHTML compliant code uncluttered and frame free...
The back button is much more important though...thanks for all your input!
Forward And Back Between Two Frames At The Press Of A Button
In the continuing evolution of my code, I simply want a button to alternate moving the playhead backwards and forwards along the timeline between frames 1 and 17. This code is not working. Any ideas? I have attached a screen capture to clarify your questions in advance
Code:
on(press){
var targetFrame = _parent._currentframe;
//enter username
if (targetFrame == 1){
_parent.play();
}
//enter password
else if(targetFrame == 17){
for (var i:Number = 0; i<16; i++){
_parent.prevFrame();
trace(_parent._currentframe);
}
}
trace("Frame number=" + targetFrame)
}
Simple Code For Changing Frames
i need a simple code to change frames..
something like this..
when i release the button(pictures_btn, movies_btn..) - go to frame named(pictures, movies, news..)
btw.. im using flash MX 2004..
many thanks
Browser Back Button/frames/flash/html
I've searched and searched and I know its possible. Im beginning to thing I live in a different world.
i have a series of tabs across the top of my page in a frame. each tab loads a different HTML page into the bottom frame. Mt problem is that when the user clicks the back button on the browser the bottom frame goes back but the tab stays where it was, for example Im on tab 2 viewing tab 2 content(html, bottom frame), if i click the back button in my browser the html(bottomframe) goes to the previously viewd page, but the tab stays at 2.
is there any way to make the tab make sure it is coorealating with the bottom frame?
Thanks in advance for any help!!
Questions Re: Button Event Code Syntax W/ Variables & Browser Back Button Programming
SHORT VERSION OF MY QUESTION
I have some variables in my movie named backMovie & backFrame, Then I have a button that I'd like to attach the following code to, but obviously I've formatted it incorrectly. Could anyone please offer me the correct syntax for using variables in these instances.
on(press){
loadMovieNum('"+backMovie+".swf',1);
}
on(release){
_level1.gotoAndPlay(backframe);
}
LONG VERSION OF MY QUESTION
I have a movie and my client has now said they cant live without the back and forward buttons on the browser working.....Grrrr
So I did some research on programming the browser back button but determined that it wasn't cross-browser friendly and therefore it was safer to try and create a back button within my movie. The problem is I am loading several multi level swf's and also am a very novice actionscripter (so I'm sure my way is the looong way)
Anyway, I managed to create several variables that change each time a different navigation element is clicked.
What I'm trying to do is reference some of these variable in the programming of my movies own 'back button'. But I don't know how the code should look. My variable names are 'backMovie' & 'backFrame'.....and I've tried variations of the following:
on(press){
loadMovieNum('"+backMovie+".swf',1);
}
on(release){
_level1.gotoAndPlay(backframe);
}
But they don't work
If it helps, I've uploaded my practice files to: http://www.lucid-life.com/back-button-workaround.zip
(It would be a bonus to learn that the actual back button of the browser could be programmed with this actionscript...but I dont think that's possible...is it? and using the anchors method with the back button woudln't work because I'm using levels...right?)
Any help or advice greatly appreciated!
Many Thanks in advance
Cheska
Stop Movie Reloading On Back Button?
Hi all!
This question has probably already been asked but I couldn't find it in search so I'll ask again
I am not sure if this is even possible but basically what I want to do is stop a flash movie from replaying/loading when someone presses the back button. Say someone is surfing my site and they click on a link, and it takes them off to another page, they do what ever it is they want to do there, then press the back button to go back to my page, but instead of the page just flashing up it goes through all the initial animations for each movie, which I don't want. If they refresh the page, fair enough, but is it possible with flash to do the same as with an image. Press back and the image pops up instantly?? Is this possible and if so how do I do it?
Any help would be much appreciated
Thanks
Vince
Simple One. This Code Won't End/stop Looping
onClipEvent (enterFrame) {
this._alpha = _alpha+1;
if (this._alpha>=100) {
setProperty("this", _alpha, "100");
}
}
Its a movie which starts at 0 and i want it to stop when it gets to whatever i specify in the >= (and then set the property to that ammount so it stays there)
Presently the image just becomes more and more opaque without stopping.
ta!
Button To Make Move Go BACK To A Stop Action
Not quite sure how to explain this simply...
I have a movie and it's like a slideshow. Click the RIGHT button...and movie plays until the next STOP command all the way until the end. My problem is programming the LEFT button to make the movie go backwards to the PREVIOUS stop command. Can the button be programmed to go BACK a certain # of frames? I see "Jump to frame#" but of course that would be different everytime. Any ideas? Thanks.
I Need CODE FOR BACK BUTTON?
I'm creating a Flash 5 movie with multiple scenes. Each scene has a back button and a next button . I want the back button to play the last scene viewed no matter where you are in the movie.
For example: Lets say I have 5 scenes. Scene1-Scene2-Scene3-Scene-4-Scene5.
-I just finished viewing scene 2 and I click on the button that goes to scene 4. When i click the back button I want the back button to go back to the last scene i viewed which was scene 2 with out going to scene 3. Can anyone help?
thanks
Go Back Button Code?
i am working on my site and the simple (go back) buttons that i have created, are taking me back to the beginning of the intro.
after you get to my (subscribe) page from the home page and click on the go back button; nothing is happening/or it goes back to the beginning of the intro.
and my skip into buttons take me to my home page, but the music continues to play from the previous point.
is there a tutorial or suggestion to what i can do or what have i done wrong?www.ibmagazine.com
Button That Plays 15 Frames And Stop
i was wondering if there is someone out there that can help me with a function to make a button play 15 frames and then stop without having the stop on the timeline. any thoughts???
thanks for any help given!!!
Can't Get Back-button Code To Work
I'm having trouble affixing back-button code to a flash button i've created.
This is what i've got at the moment:-
A.S. -
_root.backarrow.onEnterFrame = function() {
if (mouse_over_backarrow) {
_root.backarrow.nextFrame();
} else {
_root.backarrow.prevFrame();
}
};
navStack = [];
navStack.push(_currentFrame);
the invbut itself -
on (rollOver) {
_root.mouse_over_backarrow = true;
}
on (release) {
if (_root.navStack.length > 1) {
recentFrame = _root.navstack.pop();
previousFram = _root.navStack.pop();
goToAndPlay(previousFrame);
}
}
on (rollOut) {
_root.mouse_over_backarrow = fstartlse;
}
That's the code I got from an Adobe "TechNote" at www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14831
Could anyone tell me what i'm doing wrong? Thanks - any help'd be greatly appreciated.
Back Button Code And Pop-Up Clash
Hi All,
I've been using the back button solution on a Flash site that involves a hidden frame. Rob Penner was the one who developed it, I believe. Now my client wants a pop up spawned when users arrive at the site and when I add that JavaScript to the page, the Back button code stops working and visa versa. They're interfering with one another.
Does anyone know how to fix this? I'd really rather have the popup be in HTML than in Flash.
Thanks!
Rick
Simple Back Button
Scenario: User clicks on 'example' button, the button action assigns two variables for 'current scene' and 'current frame label' then jumps to example page. On example page, a back button contains a gotoAndPlay which uses the two previously assigned variables.
Problem: gotoAndPlay won't accept an expression for the scene name, only a "quoted string".
Any ideas how to get around this?
Simple Back Button
I know this subject must have been asked a thousand times but is there anyway to get a simple piece of Actionscript 3 to navigate to the previous frame in a timeline?
The interface has 14 buttons which are the same on every frame. Each button directs the user to a different frame on the timeline. I need to have a back button that directs the user to the previously view frame.
I'm new to Actionscript 3 but I did try the following code but it didn't seem to work:
stop();
import flash.events.MouseEvent;
btn1.addEventListener(MouseEvent.CLICK, btn1Click);
function btn1Click(event:MouseEvent):void {
gotoAndStop("frame1");
}
btn2.addEventListener(MouseEvent.CLICK, btn2Click);
function btn2Click(event:MouseEvent):void {
gotoAndStop("frame2");
}
btn3.addEventListener(MouseEvent.CLICK, btn3Click);
function btn3Click(event:MouseEvent):void {
gotoAndStop("frame3");
}
//--- back button timeline control ---\
function backbtn(event:MouseEvent):void {
gotoAndStop(prevFrame);
}
If anyone can help by directing me to some code I would be eternally grateful.
Thanks in advance
Edited: 06/03/2008 at 02:37:15 PM by Seer Green
Flash Det. Code Disabling Back Button In IE
I am using the flash detection kit that is comes with MX2004. I called in the flash filename.html file within another page using the iframe tag, otherwise when it called in the filename_content.html after checking for the correct player, it would replace the page with only the flash.
It works, but in IE the back button doesn't work because the back button goes back to filename.html which then goes and looks for the detection.swf that then brings in filename_content.html if the correct player is found.
Any ideas on how to fix this?
Creating A Simple Back Button
Hi!
I have made a flash site that contains a lot of buttons that loads imported swfs. Now, I want to create a simple back button by using variables.
An example:
The visitor clicks on the contact button which loads the contact.swf
Then, the visitor clicks on the About us button which loads the aboutus.swf.
Now, the visitor wants to go back to to the contact page and hit the back button inside the About us page.
The code for loading the pages looks like this:
on (release) {
_root.section = "nameofthepage.swf";
_root.transition.gotoAndPlay("closing");
}
Now I want this to happen: When the visitor clicks on the contact button a variable is saved named "contact" and then inserts "contact" in the code of the back button. Something like this:
on (release) {
_root.section = "insert the name of the current variable name.swf";
_root.transition.gotoAndPlay("closing");
}
Now, how, you oh migthy actionscriptgods, do I make this happen?
Creating A Simple Back Button
Hi!
I have made a flash site that contains a lot of buttons that loads imported swfs. Now, I want to create a simple back button by using variables.
An example:
The visitor clicks on the contact button which loads the contact.swf
Then, the visitor clicks on the About us button which loads the aboutus.swf.
Now, the visitor wants to go back to to the contact page and hit the back button inside the About us page.
The code for loading the pages looks like this:
on (release) {
_root.section = "nameofthepage.swf";
_root.transition.gotoAndPlay("closing");
}
Now I want this to happen: When the visitor clicks on the contact button a variable is saved named "contact" and then inserts "contact" in the code of the back button. Something like this:
on (release) {
_root.section = "insert the name of the current variable name.swf";
_root.transition.gotoAndPlay("closing");
}
Now, how, you oh migthy actionscriptgods, do I make this happen?
Can You Help Me Fix Simple Javascript Code On Button Inside My Very Simple Component?
Flash MX 2004 (mac)
******************
Hi,
I have a custom component that consists of nothing more than two dynamic text feilds and a button. I want the button to open a popup window in the browser, and it does so using javascript (an extension i found).
I put the following function in the first (and only) frame of my actual component (and its also in the first frame of my entire movie, just in case):
callPopup = function() {
getURL(popup);
};
And then on the button in my component i have this:
on(press){
callPopup();
}
and then finally,there is a variable named 'popup' within my component (which would change in each instance) which is given a value in my test instance as :
"javascript:jspw3('../vwd_scripts/','popups/acroyoga.swf',',,0,Past%20Event,index,Past%20Event ,20,0,,0,450,550,0,0.001,0.001,,,1,0,,.0.0.');"
somewhere i am doing something wrong.. ..i am not sure if its the button code, or my link (variable 'popup') syntax. Or if its impossible to use javascript in this way.
I know my html page is set up correctly (correct info in the head of the page etc), since i am able to call the javascript from a regular html link (just for testings sake) which is on the same page as my swf.
Hmm..i hope i made some sense here.
I will be very gratefull for some help...i'm totally lost on this one...
thanks in advance
Cheska
Can You Help Me Fix Simple Javascript Code On Button Inside My Very Simple Component?
Flash MX 2004 (mac)
Hi,
I have a custom component that consists of nothing more than two dynamic text feilds and a button. I want the button to open a popup window in the browser, and it does so using javascript (an extension i found).
I put the following function in the first (and only) frame of my actual component (and its also in the first frame of my entire movie, just in case):
callPopup = function() {
getURL(popup);
};
And then on the button in my component i have this:
on(press){
callPopup();
}
and then finally,there is a variable named 'popup' within my component (which would change in each instance) which is given a value in my test instance as :
"javascript:jspw3('../vwd_scripts/','popups/acroyoga.swf',',,0,Past%20Event,index,Past%20Event ,20,0,,0,450,550,0,0.001,0.001,,,1,0,,.0.0.');"
somewhere i am doing something wrong.. ..i am not sure if its the button code, or my link (variable 'popup') syntax. Or if its impossible to use javascript in this way.
I know my html page is set up correctly (correct info in the head of the page etc), since i am able to call the javascript from a regular html link (just for testings sake) which is on the same page as my swf.
Hmm..i hope i made some sense here.
I will be very gratefull for some help...i'm totally lost on this one...
thanks in advance
Cheska
Help: Simple Back And Skip Track Button (video Player)
Hi, I used the tutorial provide by Lee to create a video player with xml. I used the same instance names (videolist etc.) and have been running into trouble creating only a skip button(to the next video) and back button (to the previous video). Before I ask questions, I usually try to search first and found two ways to do it but neither have worked for me.
The first way:
ffwd_btn.onRelease=function(){
if(videoList.selectedIndex >= 13){
videoList.selectedIndex = 0;
}else{
videoList.selectedIndex +=1;
}
};
The second way:
forward.onRelease=function(){
v = whoIsOn+1
if (v >= listClips.length ) {
v = 0;
}
getNewVid(listClips[v]);
};
Any help would be much appreciated, thanks guys!
Menu Bar Button: Code To Stop Button
Hi at all.
I have a problem with script below about my Menu bar.
I want each button of menu bar don't turn back when I click it.
In others words, I want this:
1. Mouse_Over, button go down;
2. Mouse_Out, button go up;
3. Click, the button clicked stops in down position but turn up when I click another button of menu bar.
I have tried with a "removeEventListener" but (you can verify in the .fla who I give you address) it don't work.
Why? Please, can anyone help me to resolve that problem?
Thanks.
Bye,
eloisa
======================
The .fla file is here: http://file.webalice.it
Please, use this username and password to download it:
username: libercoriando
pw: menubar
Thanks
Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
var allHits:Array = new Array();
allHits = [hit_home, hit_about, hit_menu, hit_gallery, hit_contacts];
for(var i:Number=0; i<allHits.length; i++)
{
allHits[i].addEventListener(MouseEvent.MOUSE_OVER, rollMeOver, false, 0, true);
allHits[i].addEventListener(MouseEvent.MOUSE_OUT, rollMeOut, false, 0, true);
allHits[i].addEventListener(MouseEvent.CLICK, clickMe, false, 0, true);
}
/* var myMenu:Array = new Array();
myMenu = [home_mc, about_mc, menu_mc, oro_mc, gallery_mc, contacts_mc]; */
//Definisco la funzione rollMeOver
function rollMeOver(e:MouseEvent):void
{
var allMenu:MovieClip;
switch (e.currentTarget.name)
{
case "hit_home":
allMenu = home_mc;
break;
case "hit_about":
allMenu = about_mc;
break;
case "hit_menu":
allMenu = menu_mc;
break;
case "hit_gallery":
allMenu = gallery_mc;
break;
case "hit_contacts":
allMenu = contacts_mc;
break;
}
new Tween(allMenu, "y", Elastic.easeOut, 10, 25, 1, true);
var colorTransform:ColorTransform = allMenu.transform.colorTransform;
colorTransform.color = 0xBFE4FF;
allMenu.transform.colorTransform = colorTransform;
}
// Definisco la funzione rollMeOut
function rollMeOut(e:MouseEvent):void
{
var allMenu:MovieClip;
switch (e.currentTarget.name)
{
case "hit_home":
allMenu = home_mc;
break;
case "hit_about":
allMenu = about_mc;
break;
case "hit_menu":
allMenu = menu_mc;
break;
case "hit_gallery":
allMenu = gallery_mc;
break;
case "hit_contacts":
allMenu = contacts_mc;
break;
}
new Tween(allMenu, "y", Elastic.easeOut, 25, 10, 1, true);
var colorTransform:ColorTransform = allMenu.transform.colorTransform;
colorTransform.color = 0xFFFFFF;
allMenu.transform.colorTransform = colorTransform;
}
//Definisco la funzione clickMe
function clickMe(e:MouseEvent):void
{
trace ("Pulsante cliccato! Grazie!");
if (e.currentTarget)
{
allHits[i].removeEventListener(MouseEvent.MOUSE_OUT, rollMeOut, false, 0, true);
}
}
Is It Possible To Stop Code On Click Of A Button?
at the moment my homepage is an all nice and dandy with objects moving around randomly and when i load a different page it uses the URLRequest to load a swf into a container, but the random moving objects are obviously still going on in the background which can slow the program down a bit.
i have taken steps to have the home page as its own seperate swf to load into what is now basically a menu, but i was just wondering whether it would be possible to stop the code when i clicked one of the buttons and then start it again when the home page is clicked again.
thanks
Dan
Simple Question About Making A Button To Skip Frames
I'm wondering if there is a function that will skip a certain amount of frames when pressing a button (similar to a gotoandstop but without having to put the specific 'frame number' on the action)...
Meaning, for instance that I create two buttons, one for "previous" and then another one for "next"... If i press the previous button, it'll rewind to the previous 5 frames.... if i press next, it'll skip to the next 5 frames...
Simple Play And Stop Button
I simply created an movieclip called it themusic as instance
and put a sound init
Now on the firstframe i added these actions,
the problem is the music just keeps going , it has no effect
the code
Code:
play_btn.onPress = function ()
{
trace('playing' + themusic);
//themusic.stopAllSounds();
themusic.play();
};
stop_btn.onPress = function ()
{
trace('stopping' + themusic);
themusic.stop();
};
Any ideas what im doing wrong,
it must be realllllllllllllllllllllllllllly simple , but i am lost
ps the trace does show up when i click them buttons
Button Code Stop And Play/sender.value Question
ok i have forgotten the code u put for a button that will go to the next frame and stop the movie, as i have 5 frames with forms and they just "loop from 1 - 5" without stopping.
ALSO: after the 5th frame i want all of the user input to be processed via a php file, the question is i have something like this on each frame:
sender.email = email.text
then on the last one:
sender.name = sender.text
sender.send(phpfile.php,0,GET)
the point being will the sender object remember the values of the previous frames or not?
ALSO if i change the GET to POST it still actions it as get ie i still get php?email=paulh
cheers
Help Simple Start/Stop Movie Button
It sounds simple but...
Please tell me what I am doing wrong
on (press) {
if (PlaY=0) {
T1.play();
Play = "1";
}
}
on (press) {
if (Play=1) {
T1.stop();
Play = "0";
}
}
Can You Use The Back Button In A Browser To Go Back To Go Back In A Flash Movie?
Hi
In html pages it is easy to go back (the back button in the browser) to the last page you were on. But when you have got a flash site in a html page you cannot go back to the last page in the flash site using the 'back' button in the browser. Is there anyway you can change this so that you can use the back button in a browser to go back to the last flash frame?
Simple, Simple Button Code ... *&^%£&
I have some buttons on my movie that are instances of SimpleButton. I have labelled one of them 'photo' - I want my buttons to register EventHandlers so that I can use them to load movies. I'd prefer to use 'frame code' if possible ...
For some reason (which I can't imagine), it seems that SimpleButton doesn't have an onClick/onRelease or equivalent event handler.
Do I have to write my own class just to get a button which has a proper EventHandler ? I know that can't be true. Who would provide a button class that doesn't have a mouse.click event handler in the standard libs ?
What do you do for this ? Help !
I wrote this code which seems to add an eventhandler and doesn't throw up any errors. Unfortunately it won't link to google either though ...
Code:
function photo_link(event) {
getURL("http://www.google.com","_blank");
}
photo.addEventListener(MouseEvent.CLICK, photo_link);
Tutorial For Simple ONE Play/stop Toggle Button?
Hi,
Please bare with me. I'm new to this forum and to Action Scripting.
I'm using AS3 and I've been struggling and searching all over the web for a toggle button that stops playing the music when clicked and switches to the stop button and vice versa. The closest tutorial I could find is this: http://www.smartwebby.com/Flash/sound_button.asp
This is exactly what I want, but it's for Flash MX and I don't know how to script it to work with AS3. Can someone please help me?
Any Way To Stop File From Replaying When "back Button" Is Hit?
Hello, is there any way to make a Flash file run just once? ...so that when people click away and then click the "back" button, they don't have to watch the whole thing again?
Here's the page I'm working with:
http://www.carriemclaren.com/flash.html
Any help would be very much appreciated. I'm new at this!
carrie
Simple Button Code
I have a movie that contains buttons. Most of them are just there and when you click on them they go to a scene, no problem. One button however is inside of a movie clip and instead of going to the scene I want it to go to, it just restarts the movie clip. The code for that button is:
on(press)
{
gotoAndPlay("Login",1);
}
Thats how I normally do my buttons but its not workin for this one, i guess b/c its inside a movie clip, wut do i do differently?
[F8] Simple Button Code (hopefully)
I'd like to put code on a button so that it plays a number of frames and then goes to a different point in the timeline. I'm looking to use the frames as a transition on loads of different occasions otherwise i'd simply put a gotoandplay on the last frame in the sequence.
Something like..
on (release) {
gotoAndPlay('frames');
} -insert more code here to make it move on after reaching a point-
any help would be great thanks
New Simple Button Code
I have a movie clip labeled "about" - inside the movie clip I have a button named "home"
Inside the about movie clip I have a secondary movie clip with a button inside with the following code:
on (press) {
gotoAndPlay("p1");
about.home.enabled=false;
}
However I can not get the code to work - when I open the secondary movie clip it does not jump back down and diable the "home" button in the about movie clip!
Can anyone help?
Simple Button Code
I have a .fla movie with 4 frames containing a different movie clip each - In my "Actions" pane I have a script written as such:
home.services.enabled=false;
about.services.enabled=false;
contacts.services.enabled=false;
the "home" movie clip is located in frame 1
the "about" movie clip is located in frame 2
the "contacts" movie clip is located in frame 3
The home code works and disables the "services" button in the movie clip / but the other two do not disable for some reason in the other movie clips.
Can anyone shed some light on the problem - do I need to tell the code to look in Frame 2 and 3 or . . . ?
Thanks In Advance!
Where Can I Find Simple Flash Play/stop Button Tutorial
Can anyone help me where can i find simple flash play/stop button tutorial. All i need to import a icon play/stop button, when click it load wav file.
How can i attach media.fla
when u click btn
on(release) {
CodePlayer.start();
}
on(release) {
CodePlayer.stop();
}
action script
CodePlayer = new Sound();
CodePlayer.loadSound("ContactUs.wav",true);
[CS3] HELP- Simple Button Code Missing
got the below code on 4 buttons, b1 = button 1 and so on.. 'over' is the down state. probis when u click on any other button, b2, etc the button u originally pressed stays in the down state, i need it to reset to normal state.
that make sense? i know its a simple lin eof code, but i dont know what?
b4.onRelease = over;
b4.onRollOut = out;
function over() {
this.gotoAndPlay(2);
}
function out() {
this.gotoAndPlay(7);
}
Code For Simple Button Bashing Game
Hello,
What code do i need to make a simple button bashing style game?
In its simplest form...
Press <Left> gain one point
Press <right> gain one point.
Now I have no problem inplementing score++ onto each press of the button but I want it so they have to alternate the buttons. left then right then left then right. otherwise they lose points.
Anyone Know?
Thankyou
Tim
Linking Code To Simple Button/textbox Within Mc
Hey all,
Attached is a file with a simple flash button within an mc. I am having trouble linking the code on the root timeline to a textbox within an mc that changes depending on what is happening to the button.
Anyone have an idea of why it's not working?
Code:
stop();
this.tutButton.txtBox.text = "Up"
this.tutButton.exampleBtn.onRollOver = function() {
this.tutButton.exampleBtn.txtBox.text = "Over"
}
this.tutButton.exampleBtn.onPress = function() {
this.tutButton.exampleBtn.txtBox.text = "Down"
}
this.tutButton.exampleBtn.onRollOut = function() {
this.tutButton.exampleBtn.txtBox.text = "Up"
}
Simple Code Error: Button GotoAndStop
Hey guys, can someone tell me what's wrong with this code? I'm trying to have a button go to a certain frame, then play an external flv file.
THANKS!
soloBTN.onRelease = function() {
soloBTN.gotoAndStop (30) {
ns.play("solocollaborativereel.flv");
}
}
|