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




A Button-path Back To My Scene_1 ?



hello,

I´m new to flash and just followed a tutorial here on flashkit about how to make a pop-up menu by Brett Taylor.
http://www.flashkit.com/search.php?t...ge=1&x =0&y=0

I made a MovieClip and attached the button, and made some "sub buttons" that popped up nice, just as the tutorial said.


but when I tried to make a path from the "sub buttons" back to my main Scene_1, it didn´t work

so my Q is how to make the button get me back to the main scene?

thanks jan...



FlashKit > Flash Help > Flash MX
Posted on: 04-24-2003, 12:45 PM


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?

#Scene_1 ?
Why am I seeing this?

I go to my site/movie on the net.....normal URL....when I click a button to load some extra content.. I see that at the end of my URL string..

when did this start happeneing?..and why? And how do you prevent it?


Thanks

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

#Scene_1 Showing In Browser Url And Title
Greetings. Did a search and couldn't find a thing. I'm sure this one is simple but... Using Studio MX I created a self looping swf embedded within the normal web page. When the movie repeats after the first play it adds #Scene_1 to the end of the browser url and also to the bluebar page title.

I've tried to rename Scene 1 in flash but the #Scene_1 still shows up. I've also looked at the header with a hex editor, and sure enough, there is the Scene_1 ! I've peeked at other swf files on other sites and I don't see that title in their swf header, or ever added to the url or page title.

I thank you for your time and knowledge in advance!
Gregg

Worked Out Path Now Just Need .reverse To Loop So It Goes Back More Than ONE Frame
Heres what I have


a movie called reverse with 3 keyframes

on keyframe1 I have stop()
on keyframe2 I have _level0.welcome.prevFrame();
on keyframe3 I have _level0.welcome.prevFrame();gotoandPlay(2);

I have placed this in a movie called welcome on the last keyframe because thats the one I want played backwards.

on the button I have on (release) {
gotoAndStop;
_level0.welcome.reverse.play();
}


Can anyone explain why the movie is only going back ONE frame?

When Object Dragged And Released, Follows Path Back To Origin
do you know how to code something so that when drag to anywhere on the stage and released, it motions itself back to the origin
thanks

Moving A Point And Remaining A Path (line) Back
I want to move a point to a coordinate (_x,_y) and this point must go there slowly and create a path (line ) . After that the point must return and also slowly and the path must disapeare. Can You help me. I am a beginer.
I need to know an instruction used for delayng actions.
Bye.

Path Back To A Flash/html File Not Working
I have a html file called index.html and a folder called content.  The index.html file contains a index.swf which has a button with the following script
on(release){
getURL("./content/publishedwork.htm");
}
The folder content contains publishedwork.htm, this html file contains the flash file publishedwork.swf which has a button that should take you back out of the content folder to the index page.  The script I have on this is
on(release){
getURL("index.htm");
}
My problem is that the button works from the index.htm file to the publishedwork.htm but it does not work back from the publishedwork.htm to index.htm  Would be grateful if anyone could tell me what is wrong with the actionscript on the second button that is preventing this?

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.

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

LoadMovie Appends "#Scene_1" To Url
Ok!
When using MovieClip.loadMovie(path), flash seems to append "#Scene_1" to the url in internet explorer. It also appends Scene_1 to the title of the html document.
This freaks me out, and i have no idea why this happens.

On top of that, when i load a movie, and the html is embedded in a frameset, it crashes, and the flashelement just goes blank.
I figure that maybe these to issues is connected? Can someone help me with this?

LoadMovie Appends "#Scene_1" To Url
Ok!
When using MovieClip.loadMovie(path), flash seems to append "#Scene_1" to the url in internet explorer. It also appends Scene_1 to the title of the html document.
This freaks me out, and i have no idea why this happens.

On top of that, when i load a movie, and the html is embedded in a frameset, it crashes, and the flashelement just goes blank.
I figure that maybe these to issues is connected? Can someone help me with 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.

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

A Stupid Bug "#Scene_1" In The URL ?
Hi,
i put with this post a file : bug.zip who contain a fla
with one AS line : this.loadMovie("data/53.swf");
the code is the 2 grey mc inside the first grey mc.

I can't anderstand, but when openning the published html page (with the swf)
Internet explorer add to the url : #Scene_1 (firefox no)

i have decompiled the 53.swf file, and there is on the begining of the file : Scene_1, and each time i compile, each time it add the number on the scene (scene2...3...4 etc.).

please can you test that , this bug is a probleme for an actual website , because, on ie, it crash when the #scene_1 appair in url.

Thanks for your help.

CR

Scripting "Back" Button In Flash-to Work Like "Back" In IE Or NS
I'm trying to create a "Back" button in Flash. I have a massive presentation with a nav menu throughout. I want to add a "Back" button that will take the user to the previously loaded swf. Can anyone help me out?

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 ?

Dragable Button On A Path
Anyone know how to make a dragable button that follows a movie path. I've got a button inside a movie with a startdrag action and that movie has a guide but when I test the movie the movie dosen't stay on the path. Please Help! Thanx.

Button And Path Problems
This is so simple but I have so many problems with paths...

here is the problem...

I have buttons buried within 2 mc's, the path:

_root.main_menu.five.b1

so when I click the button I use

this.enabled = false; (to disable it)

but when I click another button I have a function command that enables all buttons (upon release of particular button that one is disabled)

My function command reads like this:

// function to enable all navigation buttons
function turnOn() {
_root.main_menu.five.b1.enabled = true;
_root.main_menu.five.b2.enabled = true;
_root.main_menu.five.b3.enabled = true;
_root.main_menu.five.b4.enabled = true;
_root.main_menu.five.b5.enabled = true;
}
// function to diengage all navigation buttons
function turnOff() {
_root.main_menu.five.b1.enabled = false;
_root.main_menu.five.b2.enabled = false;
_root.main_menu.five.b3.enabled = false;
_root.main_menu.five.b4.enabled = false;
_root.main_menu.five.b5.enabled = false;
}

The one MC is called main_menu and the other is five

but the buttons will not re engage...??????

Also I am having problems calling up the timelines within MC's that reside on my stage...again, very simple stuff, but I get nothing but non functioning results.

T.

Button/Path Problems
Hi,

I want to build a simple sliding gallery. When I used regular buttons,
everthing was working fine (see link). But I want to change the navigation
a little bit. I want to slide to the next image when I click on the current
one. I tried several options but unsuccessfully
The only way, the function was working when I used the following script:

Code:
holder.onPress = function () {
zielX = -525;
zielY = 0;
}
The problem with this junk of code, how can I tell the script to go to the
next image? Would be great if someone has an idea how to solve this
problem.

thanks
T.C.

Link: http://www.steinmetz-bielan.de/biblehausener_muehle.zip
former example with seperate nav bar: http://www.steinmetz-bielan.de/biblehausener.swf

HELP Button That Can Only Be Dragged Along A Certain Path
Hello!

Can anybody kindly tell me how you:

make a draggable button that can only be dragged along a certain path or within a boundary?

I hope somebody out there can help me on this,

Thankyou

Sinem

Can't Find The Right Path To Get To A Button....
Everything is in the title, I just can't find the good path to get to the button called 'btn'.

If I go to the debug option in the player, I have the good path, but it's like, the button is invisible....

I want to be able to click on 'send this flower to a friend'

here is a link :
http://www.e-novative.ca/test/

here is the code:

Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var flowerInit:Object = new Object;
flowerInit.onRelease = function() {
showMyFlower(this._name);
};

showMyFlower = function (thatFlower:String) {
this[thatFlower][stopMoving] = true;
this[thatFlower].swapDepths(this.getNextHighestDepth());
var moveX:Tween = new Tween(this[thatFlower].displayThought.mcBoiteText, "_x", Strong.easeOut, 0, 80, 1, true);


//************HERE IS THE PROBLEM***********
this[thatFlower].displayThought.mcBoiteText.btn.onRollOver = function(){
trace("allo");
}
//***************************************
};

var newDepth:Number = getNextHighestDepth();
var flowerName:String = "tige1";
var flowerNewName:String = "flower_1_1";
flowerColor[flowerCount] = this.firstChild.childNodes[flowerCount].attributes.color;
var obj:Object = attachMovie(flowerName, flowerNewName, newDepth, flowerInit);
with (obj) {
_x = 76;
_xscale = 400;
_yscale = 400;
_y = 200;
}
hope someone could help....

Get Path/location Of Button
In AS3 I'm trying to refer to a button and I can't get the correct location. How can I read the location of a display object.

eg. by placing something like:

trace(this.location);

on the button. Which might return

_root.movie1.movie2.instancename

Problem With Path For A Button. Please Help
Hi,
I have button inside a MC (attached by linkage):
this is the path I get with trace(this) for the button:


ActionScript Code:
_level0.MC1.MC2.MC3

What I want is when button being released the movie goes to scene X at frame 1.
I have tried with


ActionScript Code:
_level0.gotoAndPlay("X",1)

it doesn't work. When I have a test button on the _root, the scene shift works for this button on the _root. The problem is the path I think for that button which is inside the MCs.
Any help please?

A Path Problem For The Button. Help Please
Hi,
I have button inside a MC (attached by linkage):
this is the path I get with trace(this) for the button:

ActionScript Code:
_level0.MC1.MC2.MC3

What I want is when button being released the movie goes to scene X at frame 1.
I have tried with

ActionScript Code:
_level0.gotoAndPlay("X",1)

it doesn't work. When I have a test button on the _root, the scene shift works for this button on the _root. The problem is the path I think for that button which is inside the MCs.
Any help please?

Motion Path Button
Im sure this is simple to do if you know how!

Im looking for a .fla (mac)

what Im trying to achive is this

a graphic/button which moves around the screen buy a motion path or by action script and when you mouse over, IT STOPS then you can click on it and it links or animates or does something.

any help would be great

many thanks

jason

Button Path Not Working
hey,

I have come across a little problem with a site i am working on. I have a main swf that loads different swfs into blank mc's. The problem is that when I load the mc into the clip the button within the loaded swf does not function. I have tried to get the right path and still not working, I think because i have another funtion on the parent clip that the button does not work. Please look at the attached files and let me know what I am doing wrong. Please help.

regards,


Dee

A Path Problem For The Button. Help Please
Hi,
I have button inside a MC (attached by linkage):
this is the path I get with trace(this) for the button:

ActionScript Code:
_level0.MC1.MC2.MC3

What I want is when button being released the movie goes to scene X at frame 1.
I have tried with

ActionScript Code:
_level0.gotoAndPlay("X",1)

it doesn't work. When I have a test button on the _root, the scene shift works for this button on the _root. The problem is the path I think for that button which is inside the MCs.
Any help please?

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?

Back Button
Hello my FK Friend

You saved my life so many times and I hope you will help me again.

My Problem:

I have a Movie wiht 5 Frames (Could be more or less)
There is a stupid navigation but it has to be like this.
Whit this navigation an can jump from 1 to 3 and from there
to 2 and form there to 5 and so on and so on. No I need a script
to jump back. For example. I klick the menu and jump the frames:

1, 3, 2, 5, 4
No I need a button where I can go back. For each click it should
move backwards: 4, 5, 2, 3, 1

Hope there is a possibility. I would be so happy for any help.

Thanx and sorry for my bad english.



Regards #nik

Back Button
I am working with my school's Web site and there are A LOT of pages on it! I want to create a back button in Flash 5 that when you push it, it goes back to the previous page. This button will be on quite a few pages, and the only way i can think to do it in flash is to use the get URL action and link it to each link...but that will mean i have to create about 20 of the same buttons, each with a different link. i don't want that! How can i do this?

Back Button?
Hi,

Does anyone know how to make a Back Button in flash?

I have a movie on the main timeline, and target various sections using frame names. Is there a way to create a back button to help users navigate the site?

TIA
-- spiral

Back Button
does anyone know how to create a back button that will take user to previous scene? I did go to previous scene but it's not working. Thanks.

Copyright © 2005-08 www.BigResource.com, All rights reserved