Global Back Button
Hi, I need to program a global back button in a offline presentation. Presentation have numbers of scenes and frames. I want go back to previous stopped frame. I dont have any flash scripting knowledge. I am using flash 8. Pritam
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 07-24-2008, 12:23 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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?
Keyboard Back Button Acting As Browser Back Button
I'm having problems with a Flash MX Sign up form I'm implementing on my website.
The form has a series of frames which take the user through the sign up process, before clicking through to the online payment gateway. Each of these frames is anchored to allow the user to click the browser Back button to go back to the previous frame (rather than the previous movie).
However, the keyboard back button is now acting as a browser back button.... Any ideas why?
Any help with - or solutions to this probelm - would be greatly appreciated.
Thanks in advance for your time.
Regards
Rob
Keyboard Back Button Acting As Browser Back Button
I'm currently implementing a subscription sign up form in Flash MX. All of the frames of the sign up movie are anchored so that the user can click Back on his/her browser and go back to the previous frame of the movie.
However, when the user now tries to delete/amend info (eg, first name, username, etc) on the form using his/her keyboard Back button, it triggers the browser Back button.
Anyone out there experienced a similar sort of problem - ie, why the keyboard Back button is acting as the Browser Back button?
If anyone has any ideas/solutions, I'd appreciate any input.
Cheers
Rob
Global Sound Reducing Volume - Problem When Moving Back N Forth Between Frames.
Hi,
I have a mute button in my game, it works on the inital frame (titlepage) and the main game page.
However when the user quits back to the title page, odd behavious happens.
To diagnose I traced the volume (as this is how I toggled the sound on/off)
See code below:-
Code:
var globalVolume:Sound = new Sound();
globalVolume.setVolume(50);
//Key Listener to allow sound volume to be 0/50 to mimic a mute button
keyslistener = new Object();
keyslistener.onKeyDown=function(){
if(Key.isDown(83))
{
keypress = "on";
globalVolume.setVolume(50-globalVolume.getVolume());
trace(globalVolume.getVolume());
}
}
Initally the code worked as expected showing the toggle off volumes 0,50,0,50 etc.., until I quit the game and then it would print 0 & 50 on one single keypress.
Can anyone shed some light? It appears as if there are two 'groups' of sounds running.
Confused.com
Thanks
Rob
Using Back Browser Back Button On SWF Loaded Site
I have created a web site that runs on loading different swf files. These files contain navigation and plain content. My problem is that I need to use the browsers back button. I dont think I can do this with anchor tabs. Help meeeee. It's driving me nuts. I don't see any questions out there that address this on a site that is with multiple swf files.
Anybody?
Using Back Button In Flash "like A Browser Back Button"
hey all/reef,
basically this code will work like a browser back button its very simple but "could end up very long" basically it will act "similiar to the browser back button"
Code:
on (release) {
if(page1 = _currentframe){
_root.gotoAndStop("quiz");
} else if (page0 = _currentframe){
_root.gotoAndStop("register");
} else if (page2 = _currentframe){
_root.gotoAndStop("q2");
} else if (page3 = _currentframe){
_root.gotoAndStop("q3");
} else if (page4 = _currentframe){
_root.gotoAndStop("speciality");
}
}
it works when the (page1 = _currentframe){ is rotated with the first if statement...because for somereason it seems to not recognise the "else if's" anybody or reef have any ideas why??
Back Button In Flash Projector Like Javascript's "history.back"
Please tell me how to make a back button in Flash for projector (exe) file. The back button should function like the javascript's "history.back". I have 100 scenes that points to one target scene. If a user clicks the back button in the target scene, he/she must go to the scene from where he came.
**** I am not looking for named anchors that works for swf file in browser.
Global TAB Button
hi, how can i disable the tabbing on my project... say i have a big project with lots of MCs, textfields and buttons.... i want that on entire the project there is no TAB functions.. no automatic tab ordering or whatever... i just dont want the tab function.
thanks
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
Global Button Template
I am trying to make a button symbol that I can base all of my buttons on so that when I change the master button, those changes will be reflected across all of the buttons based on it - a gloablly changeable button template.
I've been thinking about how to do this and what I've come up with so far has not worked...
attachMovie
I thought that I could create a button that has a blank movie clip (MC) for each button state (up, over, down). Each of those "placeholder" MC's would have a different instance name. Then, wherever I needed a button I could place my "global button" instance on stage, give it a unique name and use an attachMovie frame action to assign pre-made MC's (an image saved as an mc) from the library to each button state placeholder within the button.
This would allow me to easily update buttons in the movie by just editing the attachMovie assignments.
Unfortunatley, it appears that attachMovie does not work within a button.
onClipEvent
Then I thought that since I know attachMovie works within an MC, I could just make a (3) frame MC and assign the onRollOver, onMouseDown and onRelease actions to it. I could use my initial thought to globally change the button states via attachMovie and just rely on onClipEvents to get the button functionality.
Unfortunatley, I've never used onClipEvents before and they seem a bit intimidating - creating functions, methods for objects? This is not something I'm familiar with and my original intention was to save time in creating hundreds of buttons by spending some extra time creating this global button. I'm not sure if this would yield the desired result.
Does anyone have an idea of how to accomplish what I'm trying to do - create a globally changeable button template? Is the onClipEvent method I describe above my best bet? If so, could anyone give me some pointers on where to start?
Thanks much for any assistance.
Global Button Animation (like CSS)
Hello All,
I have to create a map for a mall where the user can mouse over a store and it will animate. The thing is, I have upwards of 120 some stores that have the same animation.
Is there any way to create an animation, that will apply to all the buttons like you do with CSS? I would really like to try and avoid animating every button if possible, especially since the animation might be changed later.
Thanks,
Jeff
Changing A Global Value From A Button UI
I have this script in frame 1:
ActionScript Code:
// Stop the movie
stop();
// Global counter of points
var puntos;
// Flash button UI to go to another frame
function Button_onClick() {
gotoAndPlay(5);
}
I have this code in frame 5:
ActionScript Code:
// Stop the movie
stop();
// Somewhere
_root.puntos += 10;
trace("Current: " + _root.puntos); // this shows correctly
// Reset the value counter
function Button3_onClick() {
_root.puntos = 0;
trace(_root.puntos); // Still shows the current value of puntos???
}
My problem is that in Button3_onClick handler calls correctly the trace, but the global puntos doesn't reset..any ideas? Actually I can't change nothing in my escene from the handler...its like a readonly state or something?
Can I Make A Global Button?
Hi !
I have some menu buttons in my main timeline. The buttons are really button symbols inside movie clips, then the "mc" is placed in the main timeline, so when I roll over them a movie plays. What I want is that when I press one button, it makes another play its own "mc" but I can't get the button symbols to talk to each other.
can I make global buttons. If I can how do I do this?
Tell Flash Which Button Is The Previous Button So It Can Goes Back To Normal
i have many buttons with rollOver and rollOut states... when the user clicks on a button the button stays red.. when the user clicks another button that button stays red and the previous button goes back to normal..
well how do i tell flash which button is the previous button so it can goes back to normal as the next button clicked goes red???
please help
How Can I Make My Button Revert Back When Another Button Is Chosen?
http://filebox.vt.edu/users/gyanez/f.../main_menu.fla
http://filebox.vt.edu/users/gyanez/f.../main_menu.swf
I am creating the navigation bar for my first Flash site. This is what I want to have happen:
When user first enters site the "home" button is already highlighted and disabled since this is the first page user sees. When the user rolls over another menu item that item gets highlighted while previous button choice remains highlighted too..BUT when user clicks the new menu chocie the previous highlighted menu choice should revert back to its other state since the user is now on a new part of the site.
I cant seem to get this done with what I currently have...looks like buttons dont have hierarchy so I cant tell it to do something like: HB.HB_up_mc.gotoAndPlay(2);
Any help would be appreciated.
Global Variable From A Button Click?
I'm creating a dynamic menu and need to know:
If I set the contents of a global variable upon clicking a button on the main timeline, for example...
on (release) {
myVar = "someValue";
}
...and need to access the contents of this variable from a frame in a MC, how do I do this? It doesn't seem to work when I use...
if (myVar = someValue) {
gotoAndPlay ("play");
}
...in the MC frame actions. Any suggestions?
How Do You Create A Global Sound Off/on Button?
I have a fairly long Flash movie (7 minutes). It has a very long main timeline which contains a single "event" looping sound. The main timeline also has several "streaming" sounds.
At different points in the main timeline, I'm calling external Movie Clips. Each external Movie Clip has it's own "streaming" sounds.
It seems that the sound on/off button I came up with only turns off the sound for the currently playing sound, but once the playhead gets to a new sound, it will play it. Also, when I click my sound on button, it doens't pickup where it left off with the "streaming sound" and it also doens't start up my single "event" looping sound.
This seems like it would be a pretty simply thing to create. What am I missing here?
Any help would be super-appreciated.
Global Frame Actionscript For A Button
I have named a button on my stage - btn1 - in the instance name field.
I will apply actions to this button in a frame script.
I'm wondering if there is a way to make this frame script global to every instance of the button in my flash movie, so that I don't need to re-apply the script in a keyframe everytime there is a new keyframe in my button's layer.
PS - The button will only be used on the main timeline of my flash movie, but does have separate keyframes.
Thanks!
-Foochuck
Button: Saving Value Into A Global Variable
if I attach the more or less the following code to a button:
on(release)
{_global.myvariable = _global.myvariable + 3;
gotoAndPlay(x);
}
Why doesn't it save the value 3 into the global variable? Isn't it supposed to do so? How can I accomplish it.
Changin Global Var On Runtime From Within Button?
I've been playing with writing a simple script that would entirely depend on a few variables declared right on top of it. Is there a way of changing them (in my case values of p, q, a & b) with a button if the button is part of the script?
Here's the script (just copy and paste entire thing into the first frame);
ActionScript Code:
//number of buttons & imagesvar n = 4;//indexing of buttons and images starts from:var k = 0;//starting left align point (_x value):var p = 100;//starting left align point (_y value) for images and buttons:var q = 100;//movie clip width:a = 400;//movie clip height:b = 200;//create a script assigning RGB color to a clipfunction combineRGB (red, green, blue) { //combine the color values into a single number var RGB = (red << 16) | (green << 8) | blue; return RGB;}MovieClip.prototype.setRGB = function (colorValue) { new Color (this).setRGB (colorValue);};//set colors:color0 = combineRGB (44, 115, 30);color1 = combineRGB (76, 98, 139);color2 = combineRGB (124, 54, 52);color3 = combineRGB (92, 92, 118);color4 = combineRGB (119, 91, 80);color5 = combineRGB (132, 74, 50);white = combineRGB (255, 255, 255);grey = combinedRGB (127, 127, 127);black = combineRGB (0, 0, 0);//declare a new Array: "colors" for retrieving values latercolors = [color0, color1, color2, color3, color4, color5, white, grey, black];//create a movie clip:this.createEmptyMovieClip ("container_mc", 200);this.container_mc.moveTo (p, q);this.container_mc.beginFill (0xFF0000);this.container_mc.lineTo (p + a, q);this.container_mc.lineTo (p + a, q + 200);this.container_mc.lineTo (p, q + 200);this.container_mc.lineTo (p, q);this.container_mc.endFill;//create buttons for controlling which images will slide into positionfor (i = k; i < n; i++) { this.createEmptyMovieClip ("btn" + i + "_mc", i + 100); //button height: var bh = 8; //spacing between buttons: var bs = 8; //button width: var bw = (a - (n - 1) * bs) / n; //button distance from the container clip: var bd = bh * 2; this["btn" + i + "_mc"].moveTo (p, q - bd); this["btn" + i + "_mc"].beginFill (0xFF0000); this["btn" + i + "_mc"].lineTo (p + bw, q - bd); this["btn" + i + "_mc"].lineTo (p + bw, q - (bd - bh)); this["btn" + i + "_mc"].lineTo (p, q - (bd - bh)); this["btn" + i + "_mc"].lineTo (p, q - bd); this["btn" + i + "_mc"].endFill; //position buttons: for (r = k + 1; r < n; r++) { this["btn" + r + "_mc"]._x = (this["btn" + (r - 1) + "_mc"]._x) + (this["btn" + (r - 1) + "_mc"]._width + bs); }}for (i = k; i < n; i++) { this["btn" + i + "_mc"].onRelease = function () { var btNameString = getProperty (this, _name); t = btNameString.charAt (3); container_mc.setRGB (colors[t]); };}
I would want my container (and buttons since they're attached) to change position or size when the buttons are clicked so essentially I'd like to be able to change p and q values.
Global Play And Pause Button?
I have 2 buttons (play and pause)...on my main movie.
I would like for these 2 buttons to play and pause entire movie (different flash movies into 1).
on my play button i have mc = playbutton
and the as for this is the following:
ActionScript Code:
on (release) { play(); _root.pause._visible = true; _root.playbutton._visible = false;}
on my pause button I have mc = pause
and the as for this is the following:
ActionScript Code:
on (release) { stop(); _root.playbutton._visible = true; _root.pause._visible = false;}
on my 1st frame of my main movie I have the following as:
ActionScript Code:
stop();_root.playbutton._visible = true;_root.pause._visible = false;
my problem is that when I upload this... and test it, its not working. I also tried by removing _root. to it, but it didn't work either. I need other .swf's to pause and play too when its called from the main movie where the buttons are.
anyone please help.
Changin Global Var On Runtime From Within Button?
I've been playing with writing a simple script that would entirely depend on a few variables declared right on top of it. Is there a way of changing them (in my case values of p, q, a & b) with a button if the button is part of the script?
Here's the script (just copy and paste entire thing into the first frame);
ActionScript Code:
//number of buttons & imagesvar n = 4;//indexing of buttons and images starts from:var k = 0;//starting left align point (_x value):var p = 100;//starting left align point (_y value) for images and buttons:var q = 100;//movie clip width:a = 400;//movie clip height:b = 200;//create a script assigning RGB color to a clipfunction combineRGB (red, green, blue) { //combine the color values into a single number var RGB = (red << 16) | (green << 8) | blue; return RGB;}MovieClip.prototype.setRGB = function (colorValue) { new Color (this).setRGB (colorValue);};//set colors:color0 = combineRGB (44, 115, 30);color1 = combineRGB (76, 98, 139);color2 = combineRGB (124, 54, 52);color3 = combineRGB (92, 92, 118);color4 = combineRGB (119, 91, 80);color5 = combineRGB (132, 74, 50);white = combineRGB (255, 255, 255);grey = combinedRGB (127, 127, 127);black = combineRGB (0, 0, 0);//declare a new Array: "colors" for retrieving values latercolors = [color0, color1, color2, color3, color4, color5, white, grey, black];//create a movie clip:this.createEmptyMovieClip ("container_mc", 200);this.container_mc.moveTo (p, q);this.container_mc.beginFill (0xFF0000);this.container_mc.lineTo (p + a, q);this.container_mc.lineTo (p + a, q + 200);this.container_mc.lineTo (p, q + 200);this.container_mc.lineTo (p, q);this.container_mc.endFill;//create buttons for controlling which images will slide into positionfor (i = k; i < n; i++) { this.createEmptyMovieClip ("btn" + i + "_mc", i + 100); //button height: var bh = 8; //spacing between buttons: var bs = 8; //button width: var bw = (a - (n - 1) * bs) / n; //button distance from the container clip: var bd = bh * 2; this["btn" + i + "_mc"].moveTo (p, q - bd); this["btn" + i + "_mc"].beginFill (0xFF0000); this["btn" + i + "_mc"].lineTo (p + bw, q - bd); this["btn" + i + "_mc"].lineTo (p + bw, q - (bd - bh)); this["btn" + i + "_mc"].lineTo (p, q - (bd - bh)); this["btn" + i + "_mc"].lineTo (p, q - bd); this["btn" + i + "_mc"].endFill; //position buttons: for (r = k + 1; r < n; r++) { this["btn" + r + "_mc"]._x = (this["btn" + (r - 1) + "_mc"]._x) + (this["btn" + (r - 1) + "_mc"]._width + bs); }}for (i = k; i < n; i++) { this["btn" + i + "_mc"].onRelease = function () { var btNameString = getProperty (this, _name); t = btNameString.charAt (3); container_mc.setRGB (colors[t]); };}
I would want my container (and buttons since they're attached) to change position or size when the buttons are clicked so essentially I'd like to be able to change p and q values.
Using For-if To Create A Global Pause Button?
Hello everyone!
I need to create a global pause button that can pause everything, including all MCs, and then start them up again.
It looks like for-in will give me the ability to determine what MCs I have loaded at the time, but I'm not sure how to approach this.
I already have a CD-ROM presentation created which loads separate SWF files & each SWF has multiple MCs inside of it. I need a pause button that can determine what movie clips are available and allow me to pause everything and restart it.
Any thoughts?
Thanks!
Paul
Changin Global Var On Runtime From Within Button?
I've been playing with writing a simple script that would entirely depend on a few variables declared right on top of it. Is there a way of changing them (in my case values of p, q, a & b) with a button if the button is part of the script?
Here's the script (just copy and paste entire thing into the first frame);
ActionScript Code:
//number of buttons & images
var n = 4;
//indexing of buttons and images starts from:
var k = 0;
//starting left align point (_x value):
var p = 100;
//starting left align point (_y value) for images and buttons:
var q = 100;
//movie clip width:
a = 400;
//movie clip height:
b = 200;
//create a script assigning RGB color to a clip
function combineRGB (red, green, blue) {
//combine the color values into a single number
var RGB = (red << 16) | (green << 8) | blue;
return RGB;
}
MovieClip.prototype.setRGB = function (colorValue) {
new Color (this).setRGB (colorValue);
};
//set colors:
color0 = combineRGB (44, 115, 30);
color1 = combineRGB (76, 98, 139);
color2 = combineRGB (124, 54, 52);
color3 = combineRGB (92, 92, 118);
color4 = combineRGB (119, 91, 80);
color5 = combineRGB (132, 74, 50);
white = combineRGB (255, 255, 255);
grey = combinedRGB (127, 127, 127);
black = combineRGB (0, 0, 0);
//declare a new Array: "colors" for retrieving values later
colors = [color0, color1, color2, color3, color4, color5, white, grey, black];
//create a movie clip:
this.createEmptyMovieClip ("container_mc", 200);
this.container_mc.moveTo (p, q);
this.container_mc.beginFill (0xFF0000);
this.container_mc.lineTo (p + a, q);
this.container_mc.lineTo (p + a, q + 200);
this.container_mc.lineTo (p, q + 200);
this.container_mc.lineTo (p, q);
this.container_mc.endFill;
//create buttons for controlling which images will slide into position
for (i = k; i < n; i++) {
this.createEmptyMovieClip ("btn" + i + "_mc", i + 100);
//button height:
var bh = 8;
//spacing between buttons:
var bs = 8;
//button width:
var bw = (a - (n - 1) * bs) / n;
//button distance from the container clip:
var bd = bh * 2;
this["btn" + i + "_mc"].moveTo (p, q - bd);
this["btn" + i + "_mc"].beginFill (0xFF0000);
this["btn" + i + "_mc"].lineTo (p + bw, q - bd);
this["btn" + i + "_mc"].lineTo (p + bw, q - (bd - bh));
this["btn" + i + "_mc"].lineTo (p, q - (bd - bh));
this["btn" + i + "_mc"].lineTo (p, q - bd);
this["btn" + i + "_mc"].endFill;
//position buttons:
for (r = k + 1; r < n; r++) {
this["btn" + r + "_mc"]._x = (this["btn" + (r - 1) + "_mc"]._x) + (this["btn" + (r - 1) + "_mc"]._width + bs);
}
}
for (i = k; i < n; i++) {
this["btn" + i + "_mc"].onRelease = function () {
var btNameString = getProperty (this, _name);
t = btNameString.charAt (3);
container_mc.setRGB (colors[t]);
};
}
I would want my container (and buttons since they're attached) to change position or size when the buttons are clicked.
How Do You Create A Global Pause/start Button?
I have a long 6.5 minute sales demo that needs a button that will allow the user to pause the entire Flash movie, and then hit it again to resume playing from where it left off. It seems simple, but my solution didn't work.
Any suggestions?
Thanks in advance,
Joseph
Global Function For Button...something Not Working Quit Right....
OK. I have a movie with 7 scenes. The issue I am having is that a button, contained within a movie clip in one scene (scene X) will not allow users to access any other scene.
On click, it should go from scene X to scene Y, but I am not able to get this to work if the button is contained within a movie clip.
The code is as follows:
on (release) {
gotoAndPlay("scene Y", 1);
}
Any assistance would be much appreciated.
Global Click Sound For Button Component
Ok, this sould be really simple, but I have having problems. All that I want to do is assign a sound to play when a button component "clicks". I can assign a click to a specific button istance, but I am having a problem assigning the click sound to all instances of any Button Object in the movie.
I am assigning a global class to all Button Objects that controlls the font, color, size, etc. But no luck with assigning a sound, or for that matter getting any event to run everytime any button is "clicked". I have dozens of buttons in the movie, and it would be Much cleaner to just assign a global sound ...
There should be a way to assign a listener to the Button Component Object. Like:
Code:
Button.click = function () {
trace ("some button was clicked");
};
//where Button is the reserved key word for the button object
any ideas?
thanks
--mm
Global Mute Button For FLVPlayback Component
I am building an e-learning course that uses audio voiceover. Each page of the course begins with the voiceover playing. The user can stop, start, or pause the voiceover. There may be one or more voiceover instances per page depending on page length or if other activities are present. All-in-all, there will be about 80 separate FLV audio voiceovers used throughout the course. Each page of the course is an html page (about 40 total), and each voiceover FLV is embedded/called individually.
As the voiceover is turned on by default, some users would rather take the course without sound. Instead of making the user stop or start each voiceover instance, I would like to add a global mute-button. This button needs to communicate across all voiceover instances setting the volume to mute=on/off. This way, the user only needs to press one button to turn all audio on or off throughout the course as desired.
I see there is a mute button available in the Flash 8 FLVPlayback component options. How do I script this button to talk globally to other FLV voiceover instances and solve the problem mentioned above?
-Psiseeker
Global Mute Button For Multiple Voiceovers
I am building a flash presentation that uses audio voiceovers and background music. Each section has it's own animation and voice over. The action script stops the animation from going to the next section until the VO for the current section has finished playing. There are 12 different animation sections and 12 voiceovers all on one timeline, not the root timeline. Each section is it's own movie clip and includes the VO.
I put a global mute button on the root timeline and it will mute the VO for the section that is currently playing but when it goes to the next section the sound comes back on.
How do I write the script so the global mute button will mute all the VOs at one time and so the user doesn't have to click the mute button at the begining or every section?
New to scripting and can't figure this out.
Radio Button Global Variable Problem
I made a form that has global variables to hold input text that later reappears in my flash movie.
I am having trouble getting radio buttons to hold their values for later viewing.
Any ideas?
Flash Button And The Browser BACK Button
I have a Flash Button that I'm using to drop a user down to an anchor link at the bottom of the page I'm on.
When the Flash button drops the user down to the anchor that's intended...afterward....when the user hits the browser BACK button to be taken back to the original position above within the page.....it instead takes them to the previous page visited.
How do you set the Flash button to remember the original position and go to this position when the BACK button within IE 6 is used?
Thanks!
SKURGE
Flash Button And The Browser BACK Button
I have a Flash Button that I'm using to drop a user down to an anchor link at the bottom of the page I'm on.
When the Flash button drops the user down to the anchor that's intended...afterward....when the user hits the browser BACK button to be taken back to the original position above within the page.....it instead takes them to the previous page visited.
How do you set the Flash button to remember the original position and go to this position when the BACK button within IE 6 is used?
Thanks!
SKURGE
Back Button Replays Button Slide In.
I have a flash menu that the buttons slide in. When you click on one of the buttons it links off to an html page. When a user pushes the back button on their browser, the buttons slide in again, is there any way to stop this, when they go back it should just be the buttons in their final positions.
Thanks
Mike
Increment A Global Variable One Button Press At A Time?
what I am trying to do is use a Switch index to controll movie clips
with a button to advance to the next case: statement and when I have reached the end
of the case: index go back to the case: 0; and start all over again.
what I need is a global variable and give it a value of 0
var clipsVariable:int = 0;
var goalreset:int = 10;
function onClick(event:MouseEvent):void{
is clipsVariable < goalrest
clipsVariable = 0;
else
add 1 to clipsVarable
call switch ();
}
I seem to have the somthing scrood up because the switch does not see the clipsVariable
and so go into an endless loop any ideas?
[AS 2.0] How Do I Handle Nested Button's Ability To Change Global Variable
greets peeps!
here's the heirarchy of EACH dynamically created button:
masterMovieClip
-->unitMovieClip
-->Button
-->TextBlock
-->MovieClip (these three elements are all layers within topMovieClip)
what i'm trying to do is have the Button change, and then react to, a variable declared on main timeline: var lastSelected = null;
here's the code on the button(s):
Code:
on(release)
{
if (!selected)
{
trace ("old lastSelected: "+lastSelected);
lastSelected.selected = false;
lastSelected.base_mc._alpha = 0;
this.selected = true;
lastSelected = this;
trace ("new lastSelected: "+lastSelected);
this.base_mc._alpha = 100;
this.text_txt.textColor = 0xFFFFFF;
_root.holder_mc.loadMovie(fullRes);
this.invalidate();
}
}
on(rollOver)
{
if (!selected)
{
this.base_mc._alpha = 50;
this.text_txt.textColor = 0xFFFFFF;
this.invalidate();
}
}
on(rollOut, dragOut)
{
if (!selected)
{
this.base_mc._alpha = 0;
this.text_txt.textColor = 0x636467;
this.invalidate();
}
}
i'm positive it's something simple i'm missing... please point me in the right direction!
thanks all! sadly, time is a bit of the essence on this one.
WR!
Back Button, Next Button, Exit Button
I have created a flash MX project by linking from scene to scene. and i don't know how to apply the actionscript for the "back" button, "next" button as well as the "exit" button. for the Back and Next (just like we have in our browsers). for the "exit" button, when the user click on it, it will display a confirmation message. can someone please help me.
thank you..
Back Button/ History Button...
Does any body know if it is possible to go back to the previous page ion a flash site. Like the history button in HTML. So the viewer goes back to the page they have just visited.
Chhers. Vic. :-)
Back Button Forward Button
Hola
I tried placing named anchors in the frames that i want the user to go back / forwards to. it seemed to take okay.
when i tried F12 in Flash, it worked !
now, when i move it over to Dreamweaver and try the old F12 routine, it doesnt work at all !
why this discrepancy ? im very confused now.
can anyone help out on this one ?
Back Button
does anyone know how to make a back button work in flash to go between the scenes????
Joanna
Back Button
Hi there,
I want to create a BACk button in my flash movie, that takes me back to the last url visited, ie the same use as the browser back button. Is that possible?
cheers
Back Button
Hi,
I have a button in flash. What i want is, when i click the button, it should integrate with javascript and give me the previous html page. Quite simply it shud be a back button which gives me the previous page.
Thanks in advance.
The Back Button
I am making a Flash website, and I would like to have the back button on it (because the explorer link doesn't work correctly). So this is what I tried :
on (release){
gotoandStop("previous")
}
The problem is that the keyframes don't allways follow each other.
Help please...
Back Button
Anyone know how I can create a back button so that the last swf file is visited?
Just like javascripts history.back function.
Help greatly appreciated.
Thanks.
Back Button
Greetings, is it possible (in Flash) to create a back button that will take the user to the previous web page? Let me make that clear, I do not want a back button that will take the playhead to a different position, I want it to figure out what the previous html page was.
I have constructed a web site that uses flash navigation AND html (html for the main body content). Originally I had placed a "back" link in the html but they want me to remove it from there and place it in the Flash navigation file.
What should I do?
Back Button
Hello,
Does anyone know what script I would put to a button to make it go back to the previous movie clip, basically like a back button.
: Thanks
Back Button
hi everyone
I've been trying to add a back button which would return me from a nestled MC (I will call MC2) to the beginning of the MC which it is nestled in (call this one MC1). Both MCs are in the same scene and all MCs have an instance name and label. When I use GotoAnd Play I always end up at the beginning of MC2 (regardless if I use the instance names with scene name etc.), when I use Telltarget, the button just doesn't work and onClipEvent always is grayed out. Can anyone help me out? I'm not very good at actionscript but so far gotoAndPlay buttons leading to new MCs always worked, but these nestled MCs are a bit too tricky for me!
I've tried to use _parent or _root but these don't seem to work or else I don't write out the correct action. Please help.
Thanks!!
Back Button
I am trying to make a button to go back to prior web page. In html I use javascript line:
javascript:window.history.go(-1);
However, in flash I use geturl then this line and it does not work?
I assume there is a simpler way in flash to goto prior web page?
|