Change MC's Frame When Scene Is Done
Hello,
I have a 5 scene movie. The scene01 is just the buttons for the other four scenes. Each scene will play and at the end take you back to scene01.
When you get back to scene01 I would like the button that was pressed to show history. It could either change color or fade to 50%.
I have tried to put an action on the last frame of a scene and that didn't do anything. So, I tried on the button itself with the command
on (release) { gotoAndPlay("PA web overview",1); PAwebOver.gotoAndPlay(2); }
where PAwebOver is a two frame movie clip. The first frame has black text and the second frame the text is light blue.
It will work if the MC is in the same scene. But, I need the play head to go back to scene01.
Any suggestions?
FlashKit > Flash Help > Flash ActionScript
Posted on: 06-30-2005, 07:04 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Frame To Scene Change Help
Hi, im usin flash 5. Ok this how i have my movie setup. all in scene 1: The pre-load screen, then the credits, then it goes right to scene 2 automcadically.
In scene 2 a menu pops up, theres a play button, a link button and a button that takes you to frame 2 that has bios. Now the menu is in frame 1 and i have STOP int he frame action. all of it works fine until this:
I want it to be able to click on the play button, then the buttont akes you to fram 3, a small tween animation starts, and when that tween animation is over with it'll take you to scene 3 & the movie will start regularly.
i have the button an tweening working but the last tween frame wont take me to scene 3.
IN the last frame i double click for actions, i click goto & play, and then i select instead of CURRENT SCENE I make it SCENE 3, and frame 1. and have goto & play checked. But it wont work. I put stop after goto & play action, wont do it.
So i tired making the last frame STOP, which it does, then i make a text, select it, press F8 for button, then animate the button, then in the button action i put in Goto & play, and do pretty much the same, and it still wont do it.
why not?!?!
Can someone help me? ive been stuck on this for 2 days and i have a deadline, once i get this dumb scene change to workt hen i can get started on the animation itself.
Can You Use ComboBox To Change Scene Or Frame
Hi!
Can somebody please write down what I have to do to activate a Combobox to move inside a flashmovie.
I want to use a ComboBox with data and labels. For example... If a user selects the label "Scene2" I want the Action
(load) {
gotoAndPlay("Scene 2", 1);
}
Is that possible? Do I have to use a PushButton to activate the selection?
Many thanx!!
[F8] Change Scene, Remember Frame.
i have a movie clip in the main timeline and i want it to remain on a certain frame (lets say i wanted it to stay on frame 4) but when i change scenes and come back to it, the movie resets to frame 1 (kinda obvious as it should).
My question is, how to i get it to stay on frame 4 instead of resetting itsself?
Thanks in advance, Nath.
How To Change Frame Of Movieclip Within Scene?
Hey All,
I'm really stumped on what I think should be an easy solution...
I know the gotoandplay for the whole scene but cant figure out changing frames of movies within the scene.
Ive got a movieclip ("moviebuttons") which contains buttons and I'm after the code that will change the frame number of another movieclip ("movieimages") in the stage.
Thanks for your time. :D
Won't Change Scene...neither With Actionscript,neither From Scene To Scene
I have a big problem...why won't my movie change from my intro to scene one...I built my intro, i built my scene one but it won't skip from one to another. At the begining i had a loop problem on my intro,and it would never go on to the next scene,and now even if i build a new page it won't change to another scene either....HELP PLEASE!!!
Targeting Frame Label In Scene From Movie Clip In Same Scene
Hey Pals,
I'm trying to target a frame label on the timeline of a scene from a movie clip within the same scene, using Flash MX 2004 Pro. The scene is ultimately used as a .swf to load as a page of a website. The frame label is called "miscOn", the scene is called "misc". The below code is attached to a button within the movie clip.
on (release) {
loadMovieNum("tajwebsite_main.swf",1);
gotoAndPlay(miscOn);
}
Thanks!
Stu
Target Frame In Scene From Movie In Same Scene
I know this is probably really basic, but I'm stuck here. Here's what I want to do: I have Movie1 on a layer in Scene1, and Movie2 on another layer in Scene1. In Movie1 is a button that, when pressed, goes to a particular Frame in Movie2. How do I do this!? Thanks!
Buttons Going To Scene 1 Instead Of Frame In Current Scene
Looks like I've got another problem...!!
In scene 3 of my file I've got four mcs working as a menu (with buttons inside them). When I test just the scene on it's own and the mcs use the "on(release)" command to do gotoAndPlay(2), it doesn't do it unless I put in a tellTarget (_level0 or _root).
When I test the entire movie, clicking the buttons just goes straight back to frame 1, scene 1...!!
What am I doing wrong? Is it the target path that the mc opens?
It's driving me mad... and this is my second post today!
I've tried gotoAndPlay("Scene 3", 2) but it still goes back to scene1. Help!!
Thanks again for any advice
Flash Button In One Frame Goes To Movie Scene In Other Frame
Hey whats fellow flashers. Im sure this is a no brainer for you smarties, but its driving me crazy...I'm working on a site that has a flash movie menu in the one frame and the main movie in another frame. I need to be able to click on the buttons in the menu (top) frame and have them go to a certain location in the flash movie which is in the bottom frame. If I use the Get URL action, it lets me specify the frame, but not the label (location). If any of you guys have ideas or need me to explain further, please reply. Thanks.
? About Jumping From A Frame In A Clip To A Frame In The Main Scene
Hello. I have a question. I have a question about jumping from a frame in a movie clip to a frame in the main scene. In my main scene, I have a "stop" action in frame one. In this frame, I have a movie clip that is 100 frames long. On the 100th frame of that movie clip, I want to jump to the 5th frame of the main scene. This is the actionscript that I tried, but it didn't work:
this.gotoAndPlay(5)
//This is the code that I placed in the 100th frame of my movie clip, but it doesn't seem to work.
What am I doing incorrectly? Thanks in advance for any advice! (I am using Flash 5)
Tell Frame To Change If A Specific Frame Combination Is Loaded
To get a better idea of what Im talking about please check my flash page. http://www.munktiki.com/Munk-e.htm
You can see that when a different munk-e color is selected and you have his ear extentions on(bottom left in the piercings menu)that the colors dont match.
So.... when the color movie/orange frame is selected and the earring movie/ear extensions frame is selected then the orange frame will tell the earrings movie to go to the correct corrisponding color earring.
Man I hope this makes sense, it barely does to me.
Hope someone can help
Scene Change
Hi,
I have two scenes, scene 1 & scene 2. When, in a movie clip in scene 1, a button is pressed I want it to then go to the start of scene 2, but I am struggling for the code,
Thanks
Scene Change
Ok might be a stupid question but I can't see the answer.
I made a main scene and a exit scene first then estabolished a preload scene in front of the two. Now the preload scene loads and goes to the next scene proof is the background music is running but the screen is blank. It dosent show the true scene just a blank version that has sound. The preoader is a simple byte loader and when the swf is rewinded it shows that the preloader did go to 100% before jumping to the next scene.
Thanks in advance for any help......
Scene Change
I'm about to make a game in Flash 5 but I have a little problem with the actionscript!!
How do I put it if I want to change the scene to scene 2 when the script is triggerede from frame 2 in a movieclip?? Something like this:
onClipEvent (load) {
tellTarget ("no target") {
gotoAndPlay ("Scene 2", 1);
}
}
Plz help!!
Need To Change To A Different Scene
I am in the process of creating a full flash web site and all my web pages are scenes.
I have five scenes, and I need to be able to go from my first scene to my fourth scene. I have a script in there that is making it go to the fourth scene, only it goes through all the scenes before it.
on (release)
{
gotoAndPlay("<scene_four>");
}
I need help! Does anyone know how to do this?
Scene Change
I am creating a website with Flash 5 that includes very little animation in the beginning and then it goes straight into the website, how do I stop one scene from automatically going to the next, and how do I make the buttons take the person to scene 2?
OnClipEvent / Scene Change
I tried to use a mouse down onClipEvent to change a scene but it just replays the movie clip. Then I changed the scene to a movie and tried loadmovie, but now the screen blacks out between movies. Is there a way I can fix either of these problems?
MC Finish Before Scene Change
I'll admit that although I've been using Flash for quite some time, I've never really gotten into AS. I feel like I have to apologise because I think this seems like a really simple thing, but I just can't work it out.
All I want to do is (in Flash 5) tell a scene to wait for a movie clip to finish playing before it advances to the next scene.
I've done tutorials, read messages and tried everything. I promise I'll try to get my head around AS better if someone will just please point me in the right direction.
Cheers.
Change Scene With Actionscript
i've made a movieclip with buttons to navigate my site.
I want the buttons to change the scenes on the main-movie.
i have tried to attach this code to the button in the movieclip:
on (release) {
_root.gotoAndPlay("gestebog",1);
}
It doesnt work
I want the mainmovie to change scene to the one called "gestebog"
is this understandeble or am I babbeling?
on fore hand thx
Buttons That Change Scene In MX
i have a number of buttons, each of which should take the user to a new scene in flash MX when they're clicked. in flash 5, the actionscript for this is:-
on (release) {
gotoAndPlay ("ABOUT", 1);
}
does anyone know what this is in flash MX? i tried this:
on (press) {
about.onRelease = function() {
gotoAndStop("ABOUT", 1);
};
}
but it didnt work.
To Change The Scene In The Button
in a movie
there is 2 scenes
in the scene1 i created a menu as a movie click in that i had buttons.the button is "change to scene2" in that i had given the action script codind as
on (press){
gotoandplay("scene2",1)
}
on this script the menu movi clip starts from the 1st frameand not the scene2.
i want to go to the scene2 on clicking the button
but the process is not working
pls help me out from this
from
aristotle.
Can I Change My Scene Size?
Does anyone know how to change the size of a scene without changing any of the other scenes? I need to make it 800 x 800 it's now 800 X 550. Please Help!!!!
Change Scene Size?
Can I change my scene size?
Does anyone know how to change the size of a scene without changing any of the other scenes? I need to make it 800 x 800 it's now 800 X 550. Please Help!!!!
Change To The Same Scene From All The Other Scenes
I have a serious problem to change to the same scene (start-scene)after a 3 minute period from all the other scenes in my movie (consisting of 23 different scenes). Condition for changing to the start-scene is that the mouse not has been moved for a three minutes period in each scene.
If you go to another scene after e.g. 2 minutes the actionscript must "tell" the movie/FLASHfile to start all over again from zero and counting to three minutes before changing to the start-scene. It must NOT gathering the time from the other scenes.
I have tried several times with different scripts but I still can't make it work proberly.
Please help me!
Thank you very much in advance!!!
Game Scene Change Help
I am making a game and i have this script for the main part of the game
Code:
hp = 5;
amm = 8;
this.lastFire = -500;
this.onEnterFrame = function() {
if (Key.isDown(Key.SPACE) and amm >= 1 and mouseOverEnemy && getTimer()-this.lastFire>500) {
hp--;
amm--;
_root.blast.gotoAndPlay(2);
_root.ammo.NextFrame();
_root.guy.hurt.NextFrame();
_root.blast.gotoAndPlay(2);
this.lastFire = getTimer();
}
if (Key.isDown(Key.SPACE) and amm >= 1 && getTimer()-this.lastFire>500) {
amm--;
_root.ammo.NextFrame();
_root.blast.gotoAndPlay(2);
this.lastFire = getTimer();
}
if (hp <= 0) {
gotoandStop("2",1);
}
else {
_root.ammf.gotoandPlay(2);
}
};
I want when the hp = 0 for the movie to go to a different scene or frame, but it wont work, it just sends it to the start of my game again
Any help would be appreciated
Change Variable In Different Scene
is it possible to change a variable in a different scene then the one you are in. or is it possible to pass a variable along with you when you change scenes?
Thanks in advance.
How Can I Change The Second Scene Size?
Hi Guys.
I have a fla file and have two scenes, and I need to change the second scene size without changing the first one. When I changed the second scene size, the first one also changed as well. Does anyone know how to do that? Thank you so much.
On Scene Change It Flashes Between 1 And 2
Hello you guys! Nice site you have here.
Anyways, I made a button with an actionscript of
Quote:
on (release) {GoToScene(2)}
But whenever I test the flash (And don't even click anywhere) It immedietly changes between Scene 1 and Scene 2, and continues doing that every spit second. I really have no idea what is going on
I also tried
Quote:
on (release) {kill}
but don't know if that is a valid command (In mapping it kills, or destroys, the target object, in this case it can only be used once anyways). Can you guys help me?
How To Change Character In The Scene
If you are using a character in the game. After passing some certain point, you wish to change the other chracter, how can we achieve this effect?
Script Of Scene Change
hi i'm new to this so this might be a really bad question....
How do i get my button to take me to the next scene???
this is the code i hav tryed but doesn't work...
on (release){
_root.enter_button.nextScene();
}
enter button is the name of the button i want to take me to the next scene..
any help and i will be very thank ful
ps
this site kicks ass
How To Change Scene The Proper Way?
Morning all,
I was just trying to do a relatively simple bit of script that just goes to a specific scene on click, but after a little research i hear that it is bad to link to scenes and it is better to label frames and navigate to them that way.
Can someone tell me what this is about and how do i label and link to a frame on a different scene?
I even hear now that people are saying not to use scenes at all!!
Thanks a lot
Scene Change Issue
so i am making a website for a client and am having an issue with a simple scene change button.
when i click on the button to make the page change scenes to the about scene, it gives me this dialog
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at CleoMackDanceProjectWebsite_fla::MainTimeline/CleoMackDanceProjectWebsite_fla::frame77()
the thing is that the scene only has 1 frame on it, and i am only telling it to change to the 1st scene... this is my actionscript for the button...
AboutAD_btn.addEventListener(MouseEvent.CLICK, AboutA);
function AboutA(event:MouseEvent):void
{
gotoAndStop(1, "About")
}
all my other buttons on the page have the same format and work properly and change to the correct scene
anyone know why this error is happening?
Change Scene From Within A Movieclip?
I have a movieclip with some buttons inside it. I can't make it go to a different scene by using the gotoAndPlay command:
My script looks like this:
on (press) {
gotoAndPlay("Om os", 1);
}
it is nested inside a mivieclip called "menu"
Ideas?
Did They Change How To Jump To Scene?
for some reason
gotoAndPlay("myscene","myframe");
does not work when I want to jump to a specific scene, and a frame name in that scene. all its doing is jumping to the next scene and the first frame of that scene.
is there a new action for scene jumping, in MX 2004?
thanks
Coop
Change The Starting Scene
How do i change the starting scene from 1 to 2 so that it will start at the beginning on scene two?
Dynamic Scene Change
I'm using a MovieClip to hold several buttons; which, when pressed should cause the _root element to change the scene to a specific scene.
The problem I am encountering however, is that
Code:
gotoAndPlay( scene:String, frame:Object):Void
doesn't seem to allow me to utilize a String variable
in leui of a phsyical string (i.e. var myvar = "hello");
is there any way around this?
attached is the movieClip's (internal) code (which resides on an empty layer named 'Functions'):
Code:
var sceneName:String = new String("");
function SetSceneName( sceneName:String ):Void
{
this.sceneName = sceneName;
}
function GetSceneName():String
{
return sceneName;
}
each button within this movieClip calls:
Code:
on ( release )
{
_root.gotoAndPlay( _parent.GetSceneName(), 1 );
}
but the error i continue to get is of no help.
Need Some Easy Help With Scene Change
Long time since i ever used flash. Need some help with a mini script i got. It basically is like that:
Button1 set textfield "where" to 1
and then a keyframe has goto and play variable jump+"where"
The variable jump is frame label. and i have the frame labels on different scenes.
Id like someone to take my really small fla file and fix it alittle.
It basically works first time, then if im im scene2 and try to go to another scene/label then it jumps wrong.
Let me know your email if I can mail it to ya.
Thank you
Tomas
Change To The Same Scene From All The Other Scenes
I have a serious problem to change to the same scene (start-scene)after a 3 minute period from all the other scenes in my movie (consisting of 23 different scenes). Condition for changing to the start-scene is that the mouse not has been moved for a three minutes period in each scene.
If you go to another scene after e.g. 2 minutes the actionscript must "tell" the movie/FLASHfile to start all over again from zero and counting to three minutes before changing to the start-scene. It must NOT gathering the time from the other scenes.
I have tried several times with different scripts but I still can't make it work proberly.
Please help me!
Thank you very much in advance!!!
Change Scene Stop Sound?
Hi, give me some help please.
I will have a movie working inside a CDRom, in the first scene have 2 buttons (play and stop) load/unload a extenal movie sound.swf, but whem change scene the sound stop.
what i need is change the scene but the sound continue playing.
How can I have a solution for this?
Play 15 Frames And Change Scene
i need a button to do exact that. when u click the button it must play 15 frames and then go to other scene.
i can`t tell to go to other scene in the last frame because there are a lot of scenes and buttons that have to do the same.
5 buttons - 5 scenes - play 15 frames and then change the button-scene
send help!!!!!
Scene Change/button Problem
here is the scene setup:
main -> scene x ->scene y
the problem is that i have a button in scene x that is supposed to go to scene y, but instead it goes to the beginning (or whatever frame) of the main (and first) scene. under the scene x button properties, i have scene y/frame 1 as the target, yet it still goes to the main scene...
also, i tried making the button just go to a later frame in scene x, but it still went to the main scene...
any help? i'm obviously kind of new to flash, and this is driving me crazy.
thanks a lot.
Scene Change In Movie Symbol --please Help--
I have made a menu as a movie symbol, and when you click on one of the buttons symbols in the movie symbol I want it to go to a specific sene
e.g.
click home button in menu movie it will go to the home scene
Thanks for any help you can give
|