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








[CS3] Linking From A Button In A Movie Clip To New Scene


So I have a rollover menu that comes out from the side. and within numerous movie clips are various button menus I want to link to a new scenes.

For instance, I want the "aldo" button to both drop open the list and link to the scene at the same time if possible, or at least just have one link to the new scene, when I tell the button to link to the scene, nothing happens. I'm pretty lost on how to do this.

this is what i have, but it doesn't work

on (release) {
gotoAndStop("client_aldo", "titlepage");
}


Here is the attached flash file if anybody wants to take a look and help me out with the correct coding.

http://clients.kraftworksltd.com/kra...ationShell.fla

thanks in advance.
bryan




FlashKit > Flash Help > Flash General Help
Posted on: 03-17-2008, 12:20 PM


View Complete Forum Thread with Replies

Sponsored Links:

Button In Movie Clip Linking To Main Scene.
Howdy howdy. I'm working on a flash project and I want the buttons in one movie clip to link to frame 5 of scene 1. (So I have scene 1, a movie clip with the buttons in it and I want one of those buttons to make scene one skip to frame 5) So far it just goes to frame 5 of that movie clip, and when I named "Scene 1" inside the "Scene" box it didn't do anything. I tried searching the forum prior to posting this but I got 50000 results the first time and 35000 the second time, and I didn't feel like browsing through all of those hoping to find the answer to this question. (The first 2 pages of each search didn't contain anything I found to be helpfull) Any help would be greatly appreciated! (I'm using Flash 5) Thanks -NoodlyGod

View Replies !    View Related
Linking To Scene 1 From A Button Inside A Movie Clip.
Howdy people, first post.

Trying to do my flash assignment and Im stuck and cant find anything in the search so had to sign up to see if anyone can come to the rescue!

basically exactly how the thread words it.

i have a movie clip on Scene 1, when movie clip is rolled over it goes to its frame 2 where other stuff happens, one of which includes a button. how do I go to a frame number in scene one when the button is clicked which is inside the movie clip?

Ive tried

Ive got a button inside a movie clip, and when the movie clip is rolled over it plays, then the button can be pressed and becomes clickable.

How to do I get it, when clicked, to go to a certain frame in Scene 1 ?

Ive tried

on (press) {
gotoAndPlay(45);
}

and

on (press) {
Scene 1.gotoAndPlay(45);
}

both no luck anyone able to help

Ive tried a get URL command, even into a javascript window and can get it working fine, but for some reason cant get this working

View Replies !    View Related
Linking A Button To A Scene + Playing Movie Clip
hi all,

i want to link a button from one scene to another that will play a movie clip, I am new to this and having trouble working out the right action script. can anyone help me out?

thanks x

View Replies !    View Related
Button In Movie Clip Linking To Wrong Scene
What do I need to add or change to the code below to allow the button to link outside of the movie clip but still in the same scene.

I have a button in a movie which will link to the frame I assign it with the following code but in the wrong scene:


on (press) {
_root.gotoAndPlay (127);
}


The 1st scene I have is an intro scene lets call it (X) with like a cool intro movie clip and the second scene has all the content lets call it (Y).

The button in the movie clip in scene (Y) with the code above attached to to the button links to scene (X). I need it to link to scene Y. I assume that the code above consders scene (X) to be the _root which it is.

What do I need to add or change to the code above to allow the button to link outside of the movie clip but still in the same scene.

Thanks
Bassdog

View Replies !    View Related
Button Within Movie Clip Not Linking To Frame Label On Scene 1
Hi

I am using Flash 8. I have created a button with the instance name "painting_1" which is within a scrolling movie clip called "work_scroll". I want the button when clicked to link to a frame labeled "painting1" which is two levels above it on Scene 1.

So it breaks down like this: Scene 1 / scrollpane_work / work_scroll / painting_1 (the button)

I have gone to work_scroll selected the button "painting_1" and added the following actionscript:

on (release) {
_root.gotoAndStop ("Scene 1", "painting1");
}

This does nothing. Please could someone tell me what I'm doing wrong?

Thank you.

View Replies !    View Related
Linking To A Scene From Within A Movie Clip
(Flash MX 2004 Professional) I don't understand why something that is seemingly so simple has become such a hassle. I've made buttons that animate on both the rollOver and rollOut states, so they have to be contained within their own movie clips. If I link to something within the same scene using:

on (release){
_parent.gotoAndPlay(*);
}

everything works beautifully. However, if I to link to another scene using the same command _parent.gotoAndPlay("Scene 2", *); or even just a simple gotoAndPlay("Scene 2", *); the button does nothing. How can I link to another scene while maintaining the rollOut state? If anyone could answer this it would be of GREAT help. Deadline's fast approaching .

Thank you very much for your time,

Carl

View Replies !    View Related
Linking To Scene From Movie Clip?
i've been searching on the forums and the solution that works for everyone else doesn't work for me. I have a movie clip in scene 1 with a button at the end of it that i want to link to scene 2 of the main timeline.

tried _root and _parent and it either plays frame one of the MC or nothing at all.

any other ides? here's the code:


Code:
on (release) {
_root.gotoAndPlay("web", 1);
}

View Replies !    View Related
Linking To Scene From Movie Clip?
i've been searching on the forums and the solution that works for everyone else doesn't work for me. I have a movie clip in scene 1 with a button at the end of it that i want to link to scene 2 of the main timeline.

tried _root and _parent and it either plays frame one of the MC or nothing at all.

any other ides? here's the code:


Code:
on (release) {
_root.gotoAndPlay("web", 1);
}

View Replies !    View Related
Just Linking From A Movie Clip To Another Scene..
help a newbee please!

I've just got a button in a movie clip within a certain scene
and i need it to jump to on(release) goto the begining of
another scene.

Some thing to do with _root i think.. what's the syntax?

(Flash MX)


more info...

the button actually has the handler..


Code:
on (release) {
link = theSceneIWantToGoto;
nextFrame();
}
.. the next frame then plays a fade out and sends the playhead past a
function call which passes the variable "link" to it..


Code:
nextPageIs(link);
.. that function looks like..


Code:
function gotoNextPage(theSceneIWantToGoto) {
if ( link == theSceneIWantToGoto) {

[here's wher I need your help... what's the syntax to get out of this
clip & scene. I want to goto and play another scene,
effectivley changing pages]

}

else if (and so on...
}
Thanks for your time, I really appreciate it.

Rod.

View Replies !    View Related
Linking To A New Scene From Inside A Movie Clip
i have a button inside a movie clip that when pressed i would like it go to the beginning of another scene.... what am i forgeting ive tried
on (press) {
_root.invoice.gotoandplay;
}
invoice being the name of the next scene....


your comments are appreciated.... i really want to go home

View Replies !    View Related
PLS HELP - Linking To A Scene With A Movie Clip Object?
How do I make it so when I click a movie clip, that it will take me to a certain scene that I want?

Thanks in advance.

Chris

View Replies !    View Related
Linking From A Movie Clip Back To A Scene
I am having problems linking from a movie clip within scene 1 to scene 4.
I have a button in my movie clip to which i am currently applying the following action script:

on (release) {
gotoAndPlay("Scene 4", 1);
}

However the result i am getting is that when the button is pressed, it goes back to frame 1 of that movie clip (within scene 1) rather than going to scene 4

Can anyone help??

View Replies !    View Related
Linking Movie Button To Scene
Hey

Its probably a really simple matter, but i just cant get my head around it. Would be very grateful for any help you guys can give me.

Well the problem is as follows.

I have made a little sliding Menu that slides 6 buttons out, and this is contained as a movie.

i have the following code on the button


on (release) {
_root.home.gotoAndPlay ("XX", 1);
}

(Also tried it without _root.home)

Home being just a empty movie clip on the scene outside the movie.

The Problem is that the button on release does not go to scene XX. All that happens is that the button does the normal over down stuff but on release it doesnt do anything.

Well hope you can solve this problem, i tried using the Loadmovie and seperate swfs but id ideally liek to get it done this way. (and had a few problems with load anyway.. lol)

Thanks

Conglacio

View Replies !    View Related
Linking A Button To A Scene Within Flash Movie
Hey everyone,

I am trying to link a button so that it links to a different movie instance. The movie clip I am on now is called "about movie clip" and I am trying to link it to the first frame of a movie clip called "contact movie clip" . I am using the

on (release) {
gotoAndPlay("contact_movie_clip", 1)
}

This should technically load the other scene/movie, right? I am obviously a beginner so my thought process may be incorrect. Thanks for the help.

View Replies !    View Related
Linking A Movie Button To A Scene (newb Question)
Hi all,

Sorry if this is a really basic question but im currently working on my first flash website and have made animated buttons and am having trouble linking it to a scene with transition effects.

This is the actionscript on the mask layer for the movie button..


Code:
on (rollOver) {
gotoAndPlay("over");
}
on (rollOut) {
gotoAndPlay("out");
}
on (release) {
gotoAndPlay("Scene2","1");
}

The first 2 work fine but when I click the button it does nothing (doesnt link to the scene).

Is anyone able to help?

Thanks in advance!

View Replies !    View Related
A Button Inside A Movie Clip, Within A Movie Clip, Calling Another Scene:
Is it even possible?

I have been trying to do it for the last few days for a site I am working on.

I have done searches in many forums and it's foolish looking for an answer that way, because quite frankly every thread I opened was something to do with LoadMovie or GetURL, etc.

What I have right now is on the button in my Menu Bar Movie Clip:

on (release) {
gotoAndPlay(285);
}

Which plays a fancy little animation in the movie clip and then on the last frame of that movie clip I had:

gotoAndPlay("Contact", 1);

Which is the Scene for the "Contact Us" Scene named "Contact"

One would think that it would load up the scene and play at frame 1, however all that happens is it reloads the movie clip of the "Menu Bar" at frame 1 and starts over, not even realizing what I asked.

Anyways, I figured there's a script or something that tells it to look outside of the movie clip or to the _Root, or whatever.

If someone has a solution, it would be greatly appreciated.

Sorry I have no example to show, since I have yet to upload it. (It's my company's web site, and I don't think customers would want to see some half-arsed web site that's not complete.

Thanks in advance.

View Replies !    View Related
Button In Movie Clip Not Linking
Ok, I am somewhat confused. I have my main movie and I am trying to have my buttons move when they appear. I made a movie clip (in the library, create new object, movie clip) and put the buttons there. the buttons show up just fine, and work (change when up, over, down, etc.) but they do not link to the specified location (named anchors in the main time line). When I put the buttons directly on the main movie, they work just fine. What am I doing wrong?
thanks!
-Neoday

View Replies !    View Related
Button Linking Into Movie Clip
If i put a button in the main movie, how do i get it to go to a specific frame in a movie clip?

View Replies !    View Related
Linking A Button With A Movie Clip
Hello

Im new and just started to learn things.... what bugs me that in EVERY tutorial on creating lets say, a menu they teach you how to animate things and everything but theres never an explanation on how to actually connect buttons or movie clips with a certain action.

I want to do the most basic thing.. to make a certain animation/text/movie clip appear in the document after a certain button is pressed.


Thanks for your help

View Replies !    View Related
Movie Clip Button Linking
I'm using the .fla file from: http://www.kirupa.com/developer/mx20...ton_effect.htm

Instead of linking to a URL, how can I link to a frame in the current scene? I know I need to alter this code:

this.onRelease = function(){
getURL("http://www.kirupa.com", "_self");
}

View Replies !    View Related
Linking A Button Inside A Movie Clip - HELP
I am busy developing this site on which i have created this awesome menu bar which is sort of a hover scroll effect in which the buttons follow the mouse left or right.
My problem is this i have a button inside a movieclip, inside a movie clip (no im not stuttering, its inside 2 movieclips) and i need to link it to a another scene in this movie.
if i try a basic "on release goto" it throws the mouse over away and doesnt work, i think it might be due to the following script :

on (rollOver) {
mousepos = getProperty("/myself", _x);
if (Number(mousepos)>=250 and Number(mousepos)<=450) {
gotoAndPlay(2);
}
}

which is inside the second movieclip on the button hotspot.

This is the rundown, but basically please tell me how to link a button inside of a movieclip to another scene within the same movie.

Help would be greatly appreciated

Philly

View Replies !    View Related
Button In Movie Clip Linking To Next Frame
I've included a button in a movie clip on frame 1 of the main timeline. The button has a motion tween that ends on frame 76 of the movie clip. I want the button to link to frame 2 on the main timeline. However, when I test the movie, it cycles endlessly without stopping at the end of the movie clip to allow the user to click on the button.

Here's the AS3 code I put on the Actions layer on Frame 76 of the movie clip:

stop();
link_btn.addEventListener(MouseEvent.CLICK,link_btnClick);

function link_btn(event:MouseEvent):void {
gotoAndStop(2);
}

Any ideas? It's for school and I need it done tonight or tomorrow morning by 8 a.m. Central. Yikes.

View Replies !    View Related
Button In A Movie Clip To Different Scene?
I can't get a button to transport the user to a different scene once I've put it in a movie clip. Anyone enlighten me? It's probably dead easy to resolve, but then I am incredibly stupid.

View Replies !    View Related
Button Within A Movie Clip Not Going To Another Scene- HELP
How do i get a button to go to another scence if its in a movie clip?

View Replies !    View Related
Button In Movie Clip In Scene 1
I have a button
It is in the 10th frame of a movie clip (let's call it Movie Clip A)
Movie Clip A is in another movie clip (let's call this Movie Clip B)
And Movie Clip B is in scene one.

When I click the button, I want the flash movie to jump to a frame called "RISE" in scene 1. But with the following code, it is not doing what i wanted:


Code:
on (release) {
gotoAndPlay("Scene 1","RISE");
MouseOverSound = new Sound(this);
MouseOverSound.attachSound("Mouse Over");
MouseOverSound.start(0,0);
}
Can anyone help me fix this please? Thanks!

View Replies !    View Related
Jumping To A Scene From Button In A Movie Clip Button?
I need to jump to a scene from a button inside a movie clip of ascene. Can any one please help? On the frame for the button in the movie clip I have this action script:

on (press, release) {
gotoAndPlay ("presCambells", "presCamp");
continue;
}

It works (with enable simple button action) in flash, however, when I publish and preview as a swf flash file it just shows the current scene with the movie clip looping after I click on it. Please Help.

View Replies !    View Related
Button Actions On A Movie Clip Linking To Anewscene
Hi there,

Long time

This time my problem is that i am trying to linking a scene in the movie thru a movieclip converted in a button.

The clip basically on mouseover changes the pictures but once i put the action to link it to a new scene it stops the clip animation too.

Tell me a way out possible.

peace.

View Replies !    View Related
Button Within A Movie Clip Not Linking To Frame Label?
I have created a menu that is an animated movie clip within Scene 1. I have created several buttons on the menu. I am trying to link those buttons to frame labels which are also in Scene 1. I am using the following actions with Flash 5.

on (release) {
gotoAndPlay ("Scene 1", "Home");
}
This is doing nothing but closing my menu. Is there a trick to allowing buttons within movie clips to include these actions? (telltarget?) Please let me know ASAP if you have any answers.

View Replies !    View Related
PLEASE HELP Button Inside A Movie Clip..to Call Different Scene On The Movie
i have a button "within" a movie clip, i cant get it to work to call another "scene". i already used "_root." so the command will apply to the main time line but still, its not working.


on (release) {
_root.gotoAndPlay("scene2", 1);
}
thanks!

View Replies !    View Related
Scene 1 / Movie Clip / Button - Problem.
hey dudes,

i've encountered a small speed bump on the actionscript learning super highway, hoping someone can help a brother out.

i have a button within a movieclip,
like this:
scene 1 / movie clip / button

so i double click the movie clip and the editing scene opens. from there i right click and enter it's actions.
i have an on (release) gotoAndPlay scene 1, frame 2.

but it wont go to and play.
it just sits there.
what am i to do?

please, and thank you.

View Replies !    View Related
A Button Which Is In A Movie Clip That Takes You To Another Scene
K here’s the deal… I got a movie clip in which I have placed some buttons which r supposed to take u to another scene !! I know the no release goto and play so and so scene thing .. but I am using it and its not working !!!! I even gave a label to a particular frame in that scene !! but still its not working .. so what’s the deal … like don’t the buttons work in this case .. when they r placed in a movie clip and they are intended to take you to another scene !!!

If you don’t get it !! then plz ask me and I will again explain it to you people !!!!

View Replies !    View Related
Trying To Link A Button In A Movie Clip To Another Scene
I'm actually trying to do two things. I have a movieclip in a scrollbar. There are two buttons within that movieclip. One I'd like to have link to another frame label in another scene. The other I'd like to have a call up a small browser window. Could anybody please help? my email is scott@algorithmia.com. Thanks.

)s

View Replies !    View Related
'Go To' A Scene From Button Inside A Movie Clip
Any help appriciated. I made a drop down menu with several buttons inside a movie clip. When one of the buttons inside the movie clip is clicked, I want my move to go to a different scene. I can't seem to get this to work. I've tried...

}
on (release) {
gotoAndPlay ("artist", 1);
}

and

}
on (release) {
gotoAndPlay (".root_artist", 1);
}

Please help

View Replies !    View Related
A Button To Load A Movie Clip In Scene 1
First I have to thank catbert303 for getting me this far... I have a question pertaining to having a button load a movie clip in a single scene... The button will act almost like a navigatinal tool...

So,

Button 1 XXX

When you click Button 1 where you see XXX above would appear. XXX would be the movie clip.

What I did so far:

1. Created a button named Button 1.
2. Created a movie clip named XXX --->gave it an instance name of XXX
3. In the XXX movie clip I left the first frame empty and put a stop() to it...
3. I right clicked on Button 1 and added the following script

on (release) {
xxx.gotoAndStop(2);
}

BUT NOTHING WORKS YET!!
Any advice?

View Replies !    View Related
Link To A Scene - Button Within A Movie Clip.
The subject pretty much explains it. I'm having trouble getting my buttons which are within a movieclip to link to various scenes.
Any idea as to what actionscript I should use so that the buttons within the movieclip can link to a seperate scene.

Thanks

View Replies !    View Related
Button Execution From A Movie Clip To Another Scene
Hi
I could not figure out how to link a button from a Movie Clip of a certain Scene to a label of another Scene. . Can you please let me know how to do so? THank you

View Replies !    View Related
Going To A Specific Scene From A Button Within A Movie Clip
I'm stuck on what seems like it should be a simple action... I have a button within a movie clip, and when it's pressed, I want it to jump to a specific scene within the fla file. I can only get the button to work on the movie clip timeline??? When I use the go to "scene 1", 1, it still stays within the timeline of the movieclip.

Can anyone help me? How do I get a button to point to a specific scene from within a movie clip? This is driving me nuts!!

View Replies !    View Related
Make A Movie Clip Button Go To Next Scene
I'm having trouble with a movie clip that acts as a button. i want the button to go to the next scene. if anyone can help, that will be much appreiated. below is the actionscript i use which dosent work.

thanks
csv427@hotmail.com

you can download the fla, to get a better understanding what i kinda mean:
http://www.filelodge.com/files/room4...h%20button.zip
or
http://www.ffiles.com/flash/buttons/button_mc/

stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRollOut = function(){
rewind = true;
}

this.onRelease = function(){
gotoAndPlay("scene2",1);
}

http://www.filelodge.com/files/room4...h%20button.zip
or
http://www.ffiles.com/flash/buttons/button_mc/

View Replies !    View Related
Changing The Scene From A Button Within A Movie Clip
hi there

what I've got is two scenes, we'll call them "Scene 1" and "Scene 2". In scene one I have a movie clip with a button inside of it that is supposed to go to be first frame in "Scence 2"

right now my script looks something like this:

on (released)
{
gotoAndPlay("Scene 2", 1)
}


I've also tried:

on (released)
{
_root.gotoAndPlay("Scene 2", 1)
}

along with:

on (released)
{
_parrent.gotoAndPlay("Scene 2", 1)
}

none of these work.... no errors it just dosn't do anything. I know my script on the button is ok because when I have the same button outside of the movie clip it works fine. What do I need to do to make this work?

thanks

View Replies !    View Related
Button With Movie Clip Goto New Scene
Hello,
I've been racking my brain trying to solve this one.

I'm using Flash 5.

I have a Button which contains a movie clip, the movie clip shows an image
that expands on rollover and contracts on rollout.

I'm using frame labels to get the expanding and contracting to work
correctly. When I place the movie clip in the button and place the button on
stage the movie will only show the rollover portion of the movie.
The actions for the Movie do not work the movie is just playing the first
portion of itself, the rollover expansion portion.

Is there a way to make both the rollover and rollout actions of the movie
clip work, while the movie clip is part of a button?

And when the viewer clicks on the button the viewer goies to ANOTHER SCENE.

Thanks,

Monte

View Replies !    View Related
Button In Movie Clip Navigate To Another Scene
If I have a Movie Clip and have a button in it. When clicked I want it to go to another scene.

_root.scenename?

Thanks

View Replies !    View Related
Button In Movie Clip To Target A Scene, Help
Hey i have a movieclip that is a sliding menu with a few different buttons on it linked to corresponding scenes. It doesnt seem to be working. I dont know if i need to target outside of the movieclip or what to get it to change to the different scene when the button is clicked on. Right now i just have the standard on (release) gotoAndPlay("scene, 1") HELP please =)

View Replies !    View Related
Button In Movie Clip To Target A Scene, Help
Hey i have a movieclip that is a sliding menu with a few different buttons on it linked to corresponding scenes. It doesnt seem to be working. I dont know if i need to target outside of the movieclip or what to get it to change to the different scene when the button is clicked on. Right now i just have the standard on (release) gotoAndPlay("scene, 1") HELP please =)

View Replies !    View Related
Sounds On A Movie-clip Button And Going To Next Scene
long title isnt it..


here is my problem:

i have a movieclip as my button and this is its code::

_root.outnowone.on1_movie.onEnterFrame = function() {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
nextFrame();
} else {
prevFrame();
}
};

This code is placed inside my movie clip this is a better way to explain it. i have 2 movies for one button one movie is called button1 and the other movie is called button1movie the button1movie is placed inside the button1 and the code is on the first frame of the button1movie .

this all works

i have button with this code::

on (rollOver) {
stopAllSounds();
popSound = new Sound(this);
popSound.attachSound("popsound");
popSound.start(0, 1);
}

this works as well but if i have the button above the button1 the button1 dont work and if i have the button1 above the button no sound plays

is there a way of combing the code?

View Replies !    View Related
Movie Clip Button And Scene Problem
hi guys,

i have 1 button inside a movie clip, and i want that the button GO TO at frame 15 of the Scene 1.


i put this code in the Action Script of the button inside of movie clip.
---------------------------------------
on (release) {
gotoAndStop("Scene 1", 15);
}
-------------------------------------

and dont work!!!!!! what happen?

View Replies !    View Related
Button Within A Movie Clip Cant Access To Different Scene
i couldnt think how to fix this problem
can someone help me

the first button on the left (purple color) i set it to gotoAndPlay("Scene 2",1) but it wont move to scene 2

View Replies !    View Related
Using Movie Clip As Button To Link To Scene
Hello, this is my first post. VERY new to Flash. Trying to make my first website. I've had no formal training and am just kind of barrelling through using internet tutorials and Flash reference when I get stuck on something.

Which I am now.

I'm making a web page for my motorcycle collection. There's a main window for animations (transitions) and information on each bike and to the left are icons for each bike. Maybe this isn't the best way, but for now I'm doing this by making the page for each bike a seperate scene with an identical frame and identical bike icons on the left. You click the icon for the bike and it goes to the scene with that bike's information in the main window (with a built-in animated transition between).

Now the problem: I am trying to have the icon buttons on the left be advanced rollover buttons. So each one is a movie clip symbol for which I've scripted button attributes. I've taken 8 photos from different angles around each bike to make an animation like the bike's spinning. I put a stop command on the first frame of the mc animation and then on the last frame, I have a gotoAndPlay (2) command. On the rollover state, it goes to frame 2. On rolloff, it goes to frame 1 and stops. This is all working beautifully. However, I want the buttons to link to another scene in the main timeline when you clip on them. So I tried all kinds of different onRelease functions that I found in various forums. None have worked. When I test the file, the rollover states animate fine, but nothing happens when I click the buttons.

I first tried making an actions layer in the edit timeline of the mc itself and putting in this script on frame 1:


Code:

onRollOver = function() {
gotoAndPlay (2)
}

onRollOut = function() {
gotoAndStop (1)
}

onRelease = function() {
gotoAndPlay ("Scene 4", 1)
This didn't work. Then I found out about needing to link it to root to change scenes outside of the mc and on the main animation. So I changed the onRelease code to:


Code:

onRelease = function() {
_root.gotoAndPlay ("Scene 4", 1)
This didn't change a thing!

So I removed the onrelease code from the movie clip timeline and went to the main timeline and tried putting it on the actions layer there:


Code:

600mcbutton.onRelease = function() {
_root.gotoAndPlay ("Scene 4", 1)
The code check came out okay, but it still didn't do anything when I clicked the button. I tried about a dozen variations of all of these things between the main timeline and the mc timeline and it never acted any differently. The rollover animation always worked, the link to Scene 4 NEVER worked. This one's got me stumped.

Thanks for reading all the way through this and helping.

View Replies !    View Related
Sounds On A Movie-clip Button And Going To Next Scene
long title isnt it..


here is my problem:

i have a movieclip as my button and this is its code::

_root.outnowone.on1_movie.onEnterFrame = function() {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
nextFrame();
} else {
prevFrame();
}
};

This code is placed inside my movie clip this is a better way to explain it. i have 2 movies for one button one movie is called button1 and the other movie is called button1movie the button1movie is placed inside the button1 and the code is on the first frame of the button1movie .

this all works

i have button with this code::

on (rollOver) {
stopAllSounds();
popSound = new Sound(this);
popSound.attachSound("popsound");
popSound.start(0, 1);
}

this works as well but if i have the button above the button1 the button1 dont work and if i have the button1 above the button no sound plays

is there a way of combing the code?

View Replies !    View Related
Movie Clip Button And Scene Problem
hi guys,

i have 1 button inside a movie clip, and i want that the button GO TO at frame 15 of the Scene 1.


i put this code in the Action Script of the button inside of movie clip.
---------------------------------------
on (release) {
gotoAndStop("Scene 1", 15);
}
-------------------------------------

and dont work!!!!!! what happen?

View Replies !    View Related
Button In Movie Clip Goto Different Scene
I am working on a site now and I am stuck on the script i need to use to make a button I have placed in a movie clip so on release it will goto a different scene in my file...
please help, thanks..

View Replies !    View Related
Can't Jump Scene From A Button Inside A Movie Clip
can anyone help me?
i'm using a script made by joshua davis (reverb) called boxes. in plane words it looks like 5 squares onj the stage, rolling over makes them bigger, rolling out makes the smaller (in a very sophisticated way), u can also drag the squares.
the script that rules the button that makes possible all this is:


on (press) {
startDrag ("");
}
on (release) {
stopDrag ();
}
on (rollOver) {
tellTarget ("/I_1_exp") {
play ();
}
if (/:ZSorting eq "Deactivated") {
/:recentM = getProperty(_target, _name);
/:Zorder = Number(/:Zorder)+1;
duplicateMovieClip ("/" add /:recentM, /:recentM add "temp", /:Zorder);
set ("/" add /:recentM add "temp:mynumber", eval("/" add /:recentM add ":mynumber"));
/:Zsorting = "Activated";
set ("/" add /:recentM add "temp:growth", 50);
set ("/" add /:recentM add "temp:switch", 1);
removeMovieClip ("/" add /:recentM);
}
}
on (releaseOutside, rollOut) {
tellTarget ("/I_1_exp") {
gotoAndStop (1);
}
/:Zorder = Number(/:Zorder)+1;
duplicateMovieClip ("/" add /:recentM add "temp", /:recentM, /:Zorder);
set ("/" add /:recentM add ":mynumber", eval("/" add /:recentM add "temp:mynumber"));
/:ZSorting = "Deactivated";
removeMovieClip ("/" add /:recentM add "temp");
set ("/" add /:recentM add ":growth", 50);
set ("/" add /:recentM add ":switch", 0);
/:recentM = 0;
stopDrag ();
}


What i tried to do is replacing:

on (press) {
startDrag ("");

with:

on (press) {
gotoAndPlay ("Scene2", 1);

because I want to jump from scene 1 to scene 2
but when i tried to modify the script in this way nothing happens, the scene remains the same.
i'm going crazy!!!!!

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