How Do I Keep Actions From Restarting From Scene To Scene
hi, i have music on my website, (with play and stop buttons) once stop is pressed, or the scene is changed by the user choosing to view another page the music restarts each time how do i get the music to stop indefinitely once the user hits the stop button and also to play continuously from scene to scene if the user chooses to leave the music on- second part is kind of the same thing, i have a glimmer effect that goes across the logo but each time you change the scene (or the user clicks a button for a different page) the glimmer effect starts all over, how can i make it continuous? please please please help someone!!!!!1
FlashKit > Flash Help > Flash Newbies
Posted on: 10-31-2006, 05:22 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- Remember User Actions From Scene To Scene
- Remember User Actions From Scene To Scene
- [F8] Music Restarting With Each Scene Even After Off Button Pressed
- Scene 1/ Button/ Actions
- Problem With Scrolling Mc And Next Scene Actions...
- IF/ELSE-actions Based Upon Current Scene
- Won't Change Scene...neither With Actionscript,neither From Scene To Scene
- Buggy Frame Actions/Preloader Scene
- [MX04] Cancelling Keypress Actions Later In Scene
- Actions Not Working When Bitmaps Added To Scene
- Buttons In Movie Clip, Losing Actions -- Got To Scene
- [F8] Flash Site, Multiple Scenes, Button Moves Scene To Scene Instead Of Navigating
- Help With Passing Number From Scene 1 To Scene 2's Dynamic Text Field
- Targeting Frame Label In Scene From Movie Clip In Same Scene
- Simple Gotoandplay - Animate The Scene Out Before Playing Selected Scene?
- Scene 2 Works Fine, But When Preloaded Added Scene Will Not Work
- Play The Rest Of Current Scene, THEN Gotoandplay Another Pre-determined Scene
- Scene -> Object? Turning A Scene Into An Importable Symbol For Other Projects
- Sound Plays From Next Scene, While Playing In Current Scene?
- I Cant Navigate 1 Scene From Another Scene Thorogh Movie Clip
- On My Movie, At The Middle Of The 3rd Scene, Goes And Plays The Sounds On 4 Scene...m
- Button Relase; Play Curent Scene And Go (scene)
- How To Disable The Intro Sound When Switching From 1 Scene To 2nd Scene
- Buttons Aren't Going To Correct Scene, Just Progresses To Next Scene :(
- How To Start Play Scene From Movie Located In Another Scene
- Changing Form Preloading Scene Into Main Scene.
- Click, Clear Stage Scene, THEN New Scene
- Button In Scene 1 Loads A Specific Mc In Scene 2?
- Loader Scene -> Movie Scene Problem
- On Release - Finish Scene - Goto Scene?
- Playing A Scene When Current Scene Ends
- Sound Bleed From Scene To Scene: Newbie Needs Help
- Calling Actionscript Menu From Scene To Scene
- Button Action - Finish Scene And Go To Other Scene
- Play, Pause, Next Scene, Previous Scene.
- Target Frame In Scene From Movie In Same Scene
- [F8] Button Script - Play Until The End Of The Scene, Then Go To Scene X
- Passing Positional Variables From Scene To Scene...
- Access Scene 2 From Movie Clip In Scene 1
- Button Script - Play Until The End Of The Scene, Then Go To Scene X
- Copying Game Score From Scene To Scene
- Need A Button To Navigate From Scene 1 To Scene 2 [renamed]
- Stop Scene When Scene Is Timeline Effect
- Targetting The Current Scene Instead Of Main Scene?
- Need A Button To Navigate From Scene 1 To Scene 2 [renamed]
- Button Action: Finish Scene And Go To Specified Scene
- Making Scene 2 Play AFTER The First Scene Is Finished
- Sound Stop And Resume From Scene To Scene
- Buttons Going To Scene 1 Instead Of Frame In Current Scene
Remember User Actions From Scene To Scene
I am making a "slide show story" where every slide is a micro story and the user decides on his/her own when to go to the next slide.
Every slide is a separate scene and every slide has it's own soundfile attached. I have made a mute button on the first slide but the way it is now the file "forgets" from slide to slide (scene to scene) that is it supposed to be mute (if people choose to have it muted). I have no idea how to make it remember that the sound is supposed to be mute on slide 2 or 3 if the mute button was pressed on slide 1.
My actionscript looks like this:
var music:Sound = new Sound(new URLRequest("pic1.mp3"));
var sc:SoundChannel = music.play();
var soundVolume:Number = 1;
var muted:Boolean = false;
mute_mc.buttonMode = true;
mute_mc.addEventListener(MouseEvent.CLICK, mute);
function mute(e:MouseEvent):void {
if (sc !=null) {
var st:SoundTransform;
if (muted) {
st = new SoundTransform(soundVolume);
sc.soundTransform = st;
mute_mc.gotoAndStop("On");
muted = false;
} else {
st = new SoundTransform(0);
sc.soundTransform = st;
mute_mc.gotoAndStop("Mute");
muted = true;
}
}
}
button_next1.addEventListener(MouseEvent.CLICK, buttonNEXT1);
function buttonNEXT1(event:MouseEvent):void {
SoundMixer.stopAll();
nextScene();
play();
}
and of course on the last frame of the scene I have the stop command so that the the next button needs to be pressed to get to the next scene.
So do you have any help for me, or any tutorials that you could tell me about?
Edda Rós
Remember User Actions From Scene To Scene
I am making a "slide show story" where every slide is a micro story and the user decides on his/her own when to go to the next slide.
Every slide is a separate scene and every slide has it's own soundfile attached. I have made a mute button on the first slide but the way it is now the file "forgets" from slide to slide (scene to scene) that is it supposed to be mute (if people choose to have it muted). I have no idea how to make it remember that the sound is supposed to be mute on slide 2 or 3 if the mute button was pressed on slide 1.
My actionscript looks like this:
var music:Sound = new Sound(new URLRequest("pic1.mp3"));
var sc:SoundChannel = music.play();
var soundVolume:Number = 1;
var muted:Boolean = false;
mute_mc.buttonMode = true;
mute_mc.addEventListener(MouseEvent.CLICK, mute);
function mute(e:MouseEvent):void {
if (sc !=null) {
var st:SoundTransform;
if (muted) {
st = new SoundTransform(soundVolume);
sc.soundTransform = st;
mute_mc.gotoAndStop("On");
muted = false;
} else {
st = new SoundTransform(0);
sc.soundTransform = st;
mute_mc.gotoAndStop("Mute");
muted = true;
}
}
}
button_next1.addEventListener(MouseEvent.CLICK, buttonNEXT1);
function buttonNEXT1(event:MouseEvent):void {
SoundMixer.stopAll();
nextScene();
play();
}
and of course on the last frame of the scene I have the stop command so that the the next button needs to be pressed to get to the next scene.
So do you have any help for me, or any tutorials that you could tell me about?
Edda Rós
[F8] Music Restarting With Each Scene Even After Off Button Pressed
I asked this question on another forum and keep getting referred to the FlashKit, which I still havent located an answer in. I have a working on and off button that is placed in each of my scenes. When the off button is pressed and the user moves to the next scene, the music begins playing again...can any one help?
Scene 1/ Button/ Actions
Why doesnt this work? I have a animation in scene 1 then a stop at frame 50. Which than goes to play a movie clip. In that movie clip I have a button, and I want when I click the button it goes to scene one and plays frame 52. When I tried doing that It just goes to the movieclip timeline?? Anyone?
Problem With Scrolling Mc And Next Scene Actions...
Hey there...
I have a MC that pulls in data from a cfm page. One of the variables populates a dynamic text field that is in a button. This is repeated to form a list. Since the list is sometimes long, the buttons reside in a "scrolling MC" where the buttons are tweened upward when the down button is pushed and downward when the up button is pushed.
Two problems that I have encountered...
1) I have to embed the font to get the text to show in the the buttons. I don't have to embed the font when I use dynamic text boxes on the MC, but when I use them in the scrolling tween... you have to embed it... takes up space... any thoughts...
2) When I assign the buttons in the scrolling MC an action of
on (release)
{gotoandPlay ("band_detail", 1);}
the button just causes the scolling MC to scroll to the bottom, and not go to the next scene...
is there any thoughts on this??
Gracias
Darb
IF/ELSE-actions Based Upon Current Scene
Hi,
I'm trying to make an audio player in MX where onSoundComplete it advances to the next frame, loads the next mp3 and highlights the next text(song title).Easy enough, but my trouble is that I have another scene ("two") that offers text to read while listening, but onSoundComplete the movie jumps back to scene "one."
I have been trying if/else statements with no luck so far. I can't seem to nail the syntax.Is there a way to say:
IF(While?) the current scene is scene "one", onSoundComplete advance to the next frame ( which will play the next song and highlight the next title)
ELSE (if the current scene is "two")
Play the next song(without moving from scene two)
I can't find anything about scene-location specific conditionals.
At scene one, frame 2 I have:
song1 = new Sound();
song1.loadSound("./songs/1.mp3", true);
song1.start();
song1.onSoundComplete = function() {
gotoAndPlay(3);
}
Any hints much appreciated, Boston Bill
Please direct me to the correct forum if necesary. THANKS!
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!!!
Buggy Frame Actions/Preloader Scene
I am experiencing bugs when using a preloader scene, the end of the code is:
if (loadedbytes == totalbytes) {
nextScene();
}
Now, I have a second scene with a stop action in the first frame, but my movie skips over it, and I have been moving around the stop action, removing it, etc. the movie seems to jump automatically to the end of my second scene no matter what I do.
What I want to do is have a segment of frames in the second scene which play a simple animation when you click on any of 6 mc buttons, after which the animation stops and does not repeat ever again.
I tried having each button tell the parent animation to play on press, and directing the movie to another frame where the animation is a static symbol. Is the preloader/first scene messing up the frame numbers/actions in the second scene? Is it because I am using buttons nested within movie clips?
I know this is a simple task but for some reason have had no success whatsoever.
Please help...
[MX04] Cancelling Keypress Actions Later In Scene
This is my first post on here. I have a project that I am working on that has buttons with specific actions on them. I am trying to make a keyboard accessible version of this project. So in one part of the scene I have the keys assign to do specific things, but then I realized that later in the scene I want those same keys to do something different. For example, say I have this code in the beginning of the scene:
Code:
keyWatch = new Object();
Key.addListener(keyWatch);
keyWatch.onKeyDown = function(){
if(Key.getCode() == 76){
getURL("http://www.robbiedigital.com","_blank");
}
}
Then later in the scene I want to use the L key to open a different link:
Code:
keyWatch = new Object();
Key.addListener(keyWatch);
keyWatch.onKeyDown = function(){
if(Key.getCode() == 76){
getURL("http://www.robbiedigital.com/Portfolio/web/","_blank");
}
}
The project I'm working on is a little more complicated, but this is the simplest way to illustrate my problem. In the second part of this example, if you press the L key, then it will open both links at the same time in two new windows. My question is, is there a way to cancel out the first action when it is on the new part of the scene? I'm sure there is probably a better way of doing this, but I am relatively new to Actionscripting so if you have other suggestions, they are welcome.
Thanks
Actions Not Working When Bitmaps Added To Scene
I've been trying to work around this issue for the last few hours. In my document I have a bitmap background, and a few other bitmaps I exported from Photoshop. Whenever I try to assign actions to buttons, it says the selection cannot have actions assigned. However, when I make a new document, and make a button from native tools in Flash (text, create rectangle), actions can be assigned.
Has anyone else had this problem, and know how to fix it?
Buttons In Movie Clip, Losing Actions -- Got To Scene
I have several buttons that I've converted to a movie clip. I added button actions to the buttons (go to scene) after I converted it to a clip. The buttons all work fine and take me to the appropriate scene.
I tried to repeat the process, but when I convert the buttons to a movie clip, the actions don't work. I've tried adding the actions to the buttons before and after converting them to a clip, neither work.
I'm guessing it's because the scene is at the root level, but I can't seem to get the code right. Is it something like this maybe?
on(release) {
_root.gotoAndPlay("myScene");
}
Thanks
[F8] Flash Site, Multiple Scenes, Button Moves Scene To Scene Instead Of Navigating
Hi...I am very new at flash, so forgive my ignorance in advance...I really really need help!
I created a site, separated into scenes (intro, main-home, about, portfolio, press, contact).
About half the time the navigational buttons work fine. However, the other half of the time one of the buttons, the Press button, instead of bringing me to the Press scene, just moves scene to scene (for example, say I'm on the home page and I want to go to the Press page, it just goes to the about page...I hit the button again it goes to the Portfolio page, etc.). I think the problem lies somewhere in bypassing the intro prematurely (you can skip intro and go straight to the site/home-main scene), but I'm not positive.
Here's the code for the Press button:
on (release) {
gotoAndPlay("press", "pressframe");
}
where pressframe is the name of the first frames in the Press scene.
I can upload the fla file to my own site for download and review if necessary....
Please help!....I am losing sleep and hair over this.
Help With Passing Number From Scene 1 To Scene 2's Dynamic Text Field
hi all ,
i have 2 scenes on the first i retreve user information from flash and through php to a mysql database then send it back to flash. on one of the lines i retreive a id number
content.htmlText += " <a href='#" + this["id"+i] + "'>" + this["id"+i] + "</a><br><br>";
when the user clicks on this ahref i want to goto scene 2 and insert the id into a dynamic textfield with an instance name of "recorde_id"
this scene is complete and works it retreives more infor about the user..
but i have to manualy enter a id number into a INPUT filed i want it to be automatic that why i have changed it to be dynamic so it can capter the ahref from scene 1.. if you need more code or information just ask and ill deliver, im a flash newbee..
cheers aron.
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
Simple Gotoandplay - Animate The Scene Out Before Playing Selected Scene?
Hey there again,
Just wondering if you guys could point me in the right direction.
Before, when I made full-flash websites, when I clicked a button I'd have it gotoandplay frame 60 or whatever (or scene 2 or 3 or 4 etc.) and that page would start up there and have a nice little animating intro but it would be a very abrupt start because anything on the previous page would just disappeer jaggedly.
But I've seen a lot of nice sites, that once you press a button, it'll clean up the current scene, say have everything burn out or fade or or something instead of just having the next option just appear, then go to the selected page. Say they clicked News or Contact, and they were on products. It would allow me to have a timeline to animate all the objects out (just a simple tween) then once it reached the end and all the objects were out, it knew which button they pressed and where to gotoandplay.
This is probably easy actionscripting (or not, I have no clue) so it would be greatly appreciated if someone could direct me, thanks!
Scene 2 Works Fine, But When Preloaded Added Scene Will Not Work
I have a website at wosso.com which I needed a preloader. So currently the site works fine. I am toying with a preloaded, but when I add it the main part of the site does not function.
There are two scenes, PRELOADER and SCENE 1. My preloader includes this script in the first frame of the preloader: ifFrameLoaded ("Scene 1", 105){
gotoAndPlay ("Scene 1", 1);
}
I have also inluded this line at the end of the preloader, but also tried it without this line:
gotoAndPlay ("Preload", 1);
I haven't used Flash in some time and I am not good at scripting. It seems to make sense, but why is it not working when SCnene 1 works fine by itself.
Any sulotion/suggestions?
Thanks,
Wayne
Play The Rest Of Current Scene, THEN Gotoandplay Another Pre-determined Scene
Hi,
Im my scene contains 6 buttons, I want button '1' to play the rest of the current scene (for example scene '0' then goto and play scene '1'
I want button '2' to play the rest of the current scene (for example scene '0' then goto and play scene '2'
I want button '3' to play the rest of the current scene (for example scene '0' then goto and play scene '3'
etc....
any ideas? this is for actionscript 3. My current script just makes the button goto a certain frame, can I edit it? here it is:
stop();
thumbbtn1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent):void {
gotoAndStop(2);
}
thumbbtn2.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void {
gotoAndStop(3);
any help greatly appreciated.
Ger
Sound Plays From Next Scene, While Playing In Current Scene?
i am making an animation, i have about 8 scenes.
for some reason it starts playing the sound from the next scene in the middle of the current scene.
why?? i checked movie explorer and the sound is in another scene. does that sound like a flash bug, or just me? it is a big file, could that be it. please help it is driving me crazy!!!!!
I Cant Navigate 1 Scene From Another Scene Thorogh Movie Clip
SIr i made a Movie Clip and in the movie clip there are 4 buttons when i want to use the button so go to another scence it cant happen so how can i go to Another scene by the button which is present in the MOVIE clip
i think u understand my Problem
simply summary is that i there is a button in the movie clip and i want to use the button to go to another scene but it cant happen
Thk u in adnvance for any body Consideration
On My Movie, At The Middle Of The 3rd Scene, Goes And Plays The Sounds On 4 Scene...m
on my movie, at the middle of the 3rd scene, goes and plays the sounds on 4 scene...leaving some stuff of the 3rd... then goes blank... then it just gets crazy... no where there in the middle of the scene i gave it a command to go to the next scene... what on earth is going on...
please help...
it never happened before...
mayor deadline/...
urgent care...
thank you in advance:
chesckob
Button Relase; Play Curent Scene And Go (scene)
I need a bit of help, and its hard to explain. I have a menu that consist of 6 buttons on Scene1. I want to be able to click on a button and play scene1,frame37, then after it finishes playing I want it to move over the designated scene from the button pressed.
//This is what I currently have which makes the button play the ending of the scene.
on (release)
{gotoAndPlay( "scene 1", "fadeout");
}
//I need to finish the actionscrip by going to a different scene after it finishes playing the current scene. This is for all the buttons.
Example:
Button1 needs to play "scene 1", "37" then go to scene 3
Button2 needs to play "scene 1", "37" then go to scene 4
(any button) to Play "scene 1", "37" then go to (scnen asign from button)
and so on.
Any feedback is greatly appreciated.
Buttons Aren't Going To Correct Scene, Just Progresses To Next Scene :(
Anyone ever have the problem when your buttons have the code to jump to a specific scene, they just jump to the next scene on your palette instead?
For instance, I've got 6 buttons that I need to operate as a normal HTML site. So I programmed each button to jump to the corresponding scene with...
Code:
on(release) {
gotoAndPlay("fine, frame1");
}
In this situation, that button needs to jump to the scene "fine", but instead, when I click on it, it simply jumps to the next scene in the scene palette (which isn't "fine").
Interestingly as well, once it scrolls through all 6 scenes (by clicking on any button 6 times), it starts over with the first scene again.
Anybody know what I am doing wrong?
Thanks!
Changing Form Preloading Scene Into Main Scene.
hi all,
i've got a problem i can't figure out. i'm working on my website in flash. this is how i will do it:
http://www.auto-i-public.ch/adi/aresthetics.html
now, you see the letters cercling around in the upper left corner. all is well. now i created a preloader (there will be heavy stuff on it...maybe even shockwave files). i chose to do it with a new scene. it's a basic one. bar filling up, a few dynamic texts with the status. this is working too.
but then, when the preloading is done, it jumps into the main scene. everything appears and works. but the circeling letters don't work anymore. they run on a little loop for themselves. it's actually the only loop i have on my mainline. the rest is in mc's. i even tried to put the letters in a mc. didn't work either. it seems as the letters wouldn't initialize anymore. i checked if there are no already set variables coming over from the preloader. negative. i'm out of wisdom. if anyone could help me...i'd send the files, if nothing else helps. it's nothing really to steal.
tnx
adrian
Click, Clear Stage Scene, THEN New Scene
I think this is a common problem, but I haven't found the common solution. We've discussed this a little on a another thread, but we didn't really come up with a solution.
I know a lot of people want to have a button (well, multiple buttons), that when you click on it, it gotoAndPlay()s a scene that clears the stage, and THEN goes to a new scene (or in my case webpage) based on what button was clicked.
I know the answer has to be some use of variables and actionscript, but I haven't been able to puzzle it out, being new to flash.
Does anyone know the solution, or better yet, have a .fla file with the solution (so we can all see greatness in action)?
Thanks!
Button In Scene 1 Loads A Specific Mc In Scene 2?
Unfortunately my brain isn't really designed for understanding or figuring our ActionScript very well... Here's what I'm trying to do and the problem:
The user arrives at a 'splash screen' in Scene 1 which gives them the option to choose to view the demo in 'interactive' or 'autorun' mode (the two modes are slightly different in terms of their content so I'll have two separate scenes, Scene 2 will contain all the 'interactive' movie clips and Scene 3 will contain all the 'autorun' movie clips). The user can then choose whether they'd like to view the demo with the sound on or off. Once they've made this selection they'll be taken to the opening animation of the mode (i.e. interactive or autorun) they selected, with the sound on or off as they specified.
What ActionScript needs to be applied to the sound on or off buttons in Scene 1 to ensure that the correct sound movie clip loads at the beginning of Scene 2 or Scene 3.
If the user initially decided to view the demo in autorun mode they will be able to change to interactive mode at any time... how can I ensure the sound setting they have selected remains unchanged across Scenes (and they can choose to turn the sound on or off at any time)?
I need to create this as a single SWF - I can have as many Scenes and movie clips as is necessary but cannot use loadMovie and multiple SWF's
If anyone has any ideas I'd love to hear them! I just can't figure it out and I'm getting REALLY desperate!
Thanks!
Loader Scene -> Movie Scene Problem
When my preloader finishes loading my movie, and i use gotoandplay ("Movie", 1), something goes wrong. When it is done loading, it continues on to the "Movie" Scene, but keeps switching rapidly between the load scene and movie scene. I need to know how to completely turn off the loader scene when it completes. Thanks
On Release - Finish Scene - Goto Scene?
I have a navigation scene with buttons that is 100 frames but stops to allow navigation at 50.
What is the correct script to add to the buttons that allows me to finish the current scene to frame 100, then go to required scene??
Help is greatly appreciated.
Thanks,
Nick
Playing A Scene When Current Scene Ends
I don't want to come sound like and idiot, but i am stuck on one of the most simplest things.
i have 3 scenes, and in my first scene, i have two buttons.
The first button plays the rest of the first scene and then goes to the 2nd scene.
But!<
the 2nd button is meant to play the rest of the first scene and then go to the 3rd scene, but i don't know how! I've tried the 'and' statement, '+' etc but nothing works.
Any help would be greatly appreciated!
Sound Bleed From Scene To Scene: Newbie Needs Help
im just learning flash mx
i have a simple scene with a background sound looping on a layer continuously.
once that scene is done the next scene loads up with its own back ground sound
my problem is that the first scenes background sound bleeds into the 2nd scene.. and so on..
it does end eventually
but how do i make it stop exactly when that scene is done.??
this must have an easy explanation
please help the newbie
Calling Actionscript Menu From Scene To Scene
PLEASE HELP!!!
I'm using an actionscript menu that shifts up an down on one scene. Inside one position of the menu I have lots of small pictures that I'd like to open in another scene using the same movement like menu and on the second scene I have diferent positions for each pictures. How can I call a position in the second scene from the first (take under consideration that I use only the first frame of the main movie clip on each scene - from there the script does all the work).
thanks
PS. U can take a look at www.dtpmedia.ro
Button Action - Finish Scene And Go To Other Scene
hello and thanks for any help,
i have a main scene that runs to frame 125 and stops.
i have a few buttons, each one i want to (upon click) continue the movie (up to, say, frame 130, which has my 'transitional fade') and then go to the corresponding scene (each button corresponds to it's own scene).
this is what i've been trying, and it's continuing past the 'stop' but not going to the scene:
button:
on (release) {
_root.choice = 1;
_root.play();
}
frame 125
stop();
if (_root.choice == 1){
_root.gotoAndPlay("Scene 2",1)
}
if (_root.choice == 2){
_root.gotoAndPlay("Scene 3",1)
}
thanks a lot !
Play, Pause, Next Scene, Previous Scene.
Hi all, could some give me an example of Play, Pause, Next Scene, Previous Scene, preferably in action script 2. (Flash MX 2004)
Id like it to work like so…
Pause - Pauses sound and movie.
Play – Continue Movie and sound were it was paused.
Next/Previous Scene - +1/-1 to current scene so that I would not need to edit it for each slide. (Is this possible?)
I’m reflectively new to action script so please don’t bite.
Thx in advance.
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!
[F8] Button Script - Play Until The End Of The Scene, Then Go To Scene X
I'm just a newbie to actionscript, but I'm working on a project in which the following is vital, and I was really hoping that someone might be able to give me a helping hand.
- Scene A lasts for 100 frames, and it includes a button on one layer (lasting from frame 1 - 100) that links to Scene B - pretty standard fare.
- When the user clicks the button at any time within these 100 frames, I need the Scene A to play until the end (frame 100), then go to Scene B.
The reason behind this is that I would like the video clip of Scene A to have a seamless transition into the video clip of Scene B, and the only way I see this happening is to force Scene A to end before playing Scene B.
To sum up, is there any method to delay the event of a button (such as gotoAndPlay("Scene B", 1), until the end of Scene A, or until a specific frame? (whichever is easier)
Sorry for any confusion - If the above explanation is unclear, just let me know and I'll try to write it more precisely.
Many thanks, and any help would be extremely appreciated!
Costas
Passing Positional Variables From Scene To Scene...
hello, i'm terribly new to actionscript, terribly new to flash, and terribly new to these forums, so please let me apologize if i'm getting ahead of myself with my question, or asking it in the innapropriate place here.
i have a portfolio site i'm trying to get to work that mimics the layers palette of photoshop (eventually i'm hoping to mimic much more of the interface too, eg enabling the rulers to slide freely the way they do in photoshop).
>> www.einungdesign.com
i have built the project as a series of scenes, with each page being its own separate scene. however, i'd like the layers palette (which the user can reposition) to pass its x/y position from scene to scene so that the pallette appears to function independently from the scenes.
unfortunately, i don't really know how to do this, while i can imagine it will something along the lines of a statement that positions the palette clip at the x/y variable taken from its position at the time of clicking from another scene.
i'd greatly appreciate any help or suggestions anyone might have for this, would be great to get it working properly, and i would use this information to enable the other interface elements to do similar things (eg, again, the rulers).
thanks in advance.
Access Scene 2 From Movie Clip In Scene 1
I placed a button inside a movie clicp symbol in Scene 1.
Now I wan to set the button to play scene 2 when I click it.
I tryed
on (press) {
gotoAndPlay("Scene 2", 1);
}
and also
on (press) {
_root.gotoAndPlay("Scene 2", 1);
}
But it plays the movie clip symbol from the beggining Not the scene 2
An example file is attached. I should be able to click on the blue square (thats the button inside themovie clip ) and go to scene 2
Button Script - Play Until The End Of The Scene, Then Go To Scene X
I'm just a newbie to actionscript, but I'm working on a project in which the following is vital, and I was really hoping that someone might be able to give me a helping hand.
- Scene A lasts for 100 frames, and it includes a button on one layer (lasting from frame 1 - 100) that links to Scene B - pretty standard fare.
- When the user clicks the button at any time within these 100 frames, I need the Scene A to play until the end (frame 100), then go to Scene B.
The reason behind this is that I would like the video clip of Scene A to have a seamless transition into the video clip of Scene B, and the only way I see this happening is to force Scene A to end before playing Scene B.
To sum up, is there any method to delay the event of a button (such as gotoAndPlay("Scene B", 1), until the end of Scene A, or until a specific frame? (whichever is easier)
Sorry for any confusion - If the above explanation is unclear, just let me know and I'll try to write it more precisely.
Many thanks, and any help would be extremely appreciated!
Costas
Copying Game Score From Scene To Scene
Hi:
I've created a game that involves 10 questions. Each question is in its own scene. I've been racking my small brain trying to find a way to copy the user's score from scene to scene and add (or deduct) points based on whether the user answers the question correctly or incorrectly.
Any ideas or places to go to check out some sample script? Or am I missing something obvious.
Thanks.
Happy New Year
Tim
Stop Scene When Scene Is Timeline Effect
I have a button that, when clicked, expands a current image. I used Timeline Effects--> Effects--> Expand to create this expansion effect for the image. I saved the effect as a Movie, placed the movie into a separate Scene 2. I then had the original button gotoAndStop at ("Scene 2", 1).
My problem is that when tested, the timeline effect loops and will not stop. Where do I put stop(); in order for the scene to not loop? Do I need to change the Movie itself?
Targetting The Current Scene Instead Of Main Scene?
Hi, last week yall helped me with targetting the main scene from a button inside a movie clip, by using _root.
Now I cant figure out how to target the current scene (not the main scene), its still a button inside a movie clip.. any ideas?
Button Action: Finish Scene And Go To Specified Scene
hello and thanks for any help,
i have a main scene that runs to frame 125 and stops.
i have a few buttons, each one i want to (upon click) continue the movie (up to, say, frame 130, which has my 'transitional fade') and then go to the corresponding scene (each button corresponds to it's own scene).
this is what i've been trying, and it's continuing past the 'stop' but not going to the scene:
button:
on (release) {
_root.choice = 1;
_root.play();
}
frame 125
stop();
if (_root.choice == 1){
_root.gotoAndPlay("Scene 2",1)
}
if (_root.choice == 2){
_root.gotoAndPlay("Scene 3",1)
}
thanks a lot !
Making Scene 2 Play AFTER The First Scene Is Finished
hello everyone. I am hard at work trying to figure out as much flash as possible (hence the posts I've made recently). I am now working on a flash project that has 3 scenes, each scene has one frame and 3 layers (2 layers used for masking a picture and making it appear with boxes and 1 layer as a button).
The problem I am having is that when i test movie, it shoots back and forth from scene to scene without playing the movie instance of the masking I have created. I have uploaded the file for anyone who would like to look at it to see what i mean.
I just need to have scene two play AFTER the first scenes movie clip is done, and scene 3 to play after scene 2's movie clip is done, ect.
Thanks for the help everyone.
- Robb
Sound Stop And Resume From Scene To Scene
Hello,
I am trying to take an MP3 sound file and make it stop and resume from one scene to the next. How would I acheive this?? Is there action script that will controll the starting and stoping of sound from one scene to the next? Many thanx...
mindeye
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
|