Having Trouble Just Testing Scene
Just started to build a scene to display several items, I set a script on frame 10, goto and play Frame 2, and the "testscene" is hopping back and forth from the first to the final screne of the movie. Not really sure why this is happening, if anybody could clue this rookie in, it would be greatly appreciated. THANKS
FlashKit > Flash Help > Flash Newbies
Posted on: 11-16-2005, 09:00 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- Trouble Testing Scene
- Testing Scene
- Testing Variable In Next Scene
- Testing Variable In Next Scene
- [mx04] Trouble Testing My Movie
- Trouble Testing NavigateToURL Locally
- Buttons Look Messed Up When Testing Scene
- When Your Testing Your Scene Will The Action Script Show Up? (Like A Hyperlink)
- Trouble With Adding A New Scene
- Scene Jumping Trouble - Could Someone Check This Out?
- Scene Trouble/possibly Actionscript
- Goto And Play Scene... Having Trouble
- Trouble With Scene Parameter & Root Timeline
- Trouble Importing Video Into Flash 8 Multi-scene Movie
- Ignore TESTING TESTING
- "Scene" Trouble
- Won't Change Scene...neither With Actionscript,neither From Scene 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
- Remember User Actions From Scene To Scene
- 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
- Remember User Actions From Scene To Scene
- Copying Game Score From Scene To Scene
Trouble Testing Scene
I am building a flash site, and was testing a particular scene of my movie. Everything was working fine (buttons, scripting,etc). I didn't change any thing and went back to retest the scene, and now all of a sudden it sticks, it won't recognize the actions.
I've attached the fla source file and its the environment scene that is having problems.
Can anyone help?
Thanks
Testing Scene
When I select the test scene option I find my background image becomes a little distorted and is not as clear as it appears on the main workplace screen.Why is this and can I stop this from happening?
Testing Variable In Next Scene
Scene one has three buttons: Morning, Evening, and Night. In scene two there is a car driving on a road. On scene two, there is a movieclip of a black rectangle, covering the whole stage. The car also has a movieclip for the light coming out of the headlights. Depending on which button is clicked in scene 1, I want the alpha on the black rectangle to change (for example, if they pick Night, it will be like 65% or something to make the stage look darker). Also, if morning is picked, I want the headlights to not be visible.
So on the morning button, I have:
on (release) {
time = 1;
gotoAndPlay("Scene 2", 1);
}
On the evening button,
on (release) {
time = 2;
gotoAndPlay("Scene 2", 1);
}
And on the night button:
on (release) {
time = 3;
gotoAndPlay("Scene 2", 1);
}
Now, on frame 1 of Scene 2, I have these actions:
if (time=1) {
setProperty(_root.darkness, _alpha, 0);
setProperty(_root.car.headlight, _visible, false);
}
if (time=2) {
setProperty(_root.darkness, _alpha, 35);
setProperty(_root.car.headlight, _visible, true);
}
if (time=3) {
setProperty(_root.darkness, _alpha, 65);
setProperty(_root.car.headlight, _visible, true);
}
But when I run the movie, no matter which button I click, the alpha is set to 35 and the headlights are visible, as if evening is being selected every time. What did I do wrong?
Testing Variable In Next Scene
Scene one has three buttons: Morning, Evening, and Night. In scene two there is a car driving on a road. On scene two, there is a movieclip of a black rectangle, covering the whole stage. The car also has a movieclip for the light coming out of the headlights. Depending on which button is clicked in scene 1, I want the alpha on the black rectangle to change (for example, if they pick Night, it will be like 65% or something to make the stage look darker). Also, if morning is picked, I want the headlights to not be visible.
So on the morning button, I have:
on (release) {
time = 1;
gotoAndPlay("Scene 2", 1);
}
On the evening button,
on (release) {
time = 2;
gotoAndPlay("Scene 2", 1);
}
And on the night button:
on (release) {
time = 3;
gotoAndPlay("Scene 2", 1);
}
Now, on frame 1 of Scene 2, I have these actions:
if (time=1) {
setProperty(_root.darkness, _alpha, 0);
setProperty(_root.car.headlight, _visible, false);
}
if (time=2) {
setProperty(_root.darkness, _alpha, 35);
setProperty(_root.car.headlight, _visible, true);
}
if (time=3) {
setProperty(_root.darkness, _alpha, 65);
setProperty(_root.car.headlight, _visible, true);
}
But when I run the movie, no matter which button I click, the alpha is set to 35 and the headlights are visible, as if evening is being selected every time. What did I do wrong?
[mx04] Trouble Testing My Movie
hi i wonder if anybody can help...a few weeks ago i could test my movie just fine and now when ever i go to test my movie/website it seems to take around 4 minutes at least! the site is only 76kb!?!! does anyone know what could be the problem slowing it down?
thanks for ur help
Trouble Testing NavigateToURL Locally
Is there anyway to test navigateToURL locally?
I want to load the URL into the current browser window. But _self and _parent do not seem to work. Supposedly these work from a web server. I'd like to test them locally.
null and _blank open a new window. Which works but is not how I'd like my site to work.
Buttons Look Messed Up When Testing Scene
Hi All,
I'm trying to make a banner with navigation buttons. For the various states of the buttons, I'm using imported PNG files. The instances of the buttons look great on the stage, but as soon as I test the scene, the quality drops.
I've read somewhere to throw in some actionscript like _highquality = 2, but it doesn't seem to help. That is, at least, if I'm doing it right. I have a movie with instances of the buttons in it, and I've put this AS in the movie clip,
onClipEvent (load)
{
ButtonInstance._highquality = 2;
}
If I didn't do that right, let me know.
I've also changed the properties of the png files in my library to "lossless".
The quality of the buttons almost look good, it's just that the bottom and right edges of the buttons seem to be cut off by a pixel or two. And it seems like there's an extra 'haze' of about a pixel on the left and top edges of the buttons. Again, the buttons look perfect on the stage; they only get messed up when I "test scene" or publish.
Any ideas?
Trouble With Adding A New Scene
Hi,
I have a main scene that begins with a animation. Now when i add a new scene to house a preloader and place it above the main scene and play the movie the preloader works fine but when it plays the next scene everything stops at frame 1. At 1st I thought it was my preloader but i tripled checked it and it was fine, I also just added a blank scene but i get the same problem. Im using flash 8. ne 1 ever get this problem?
thx
Scene Jumping Trouble - Could Someone Check This Out?
Hi, I posted a message here a while ago, but realized no one would really be able to help unless I showed them the actual problem.
One problem is the Loading Screen: I can't get it to work. I temporarily set the screen to simply jump to the next page to help you view it, but otherwise, it won't load properly.
The other problem is with my menu screen. When I click the GAMES button, it won't go to the next scene, it just resets.
The link is here: http://www.geocities.com/datadogg/Menu.fla
Thanks in advance.
Scene Trouble/possibly Actionscript
created a piece of flash which, when dragged from left to right, and vice versa, the movie clip would slide along and seem everlasting. I had it working fine
i then tried to incorporate it into my project, but when i put it into SCENE 8 (or any other scene from 2 onwards) the piece didnt work and the movie clip was draggable (not locked on the x as it should be) and it didnt work. I then moved the scene to the top of the pile of scenes (new order 8, 1, 2,3 etc), and the piece worked fine!!! I cant understand why it dont work when its placed after scene 1. Theres 3 frames and each frame has actionscript:
Frame 1
mo2._x= getProperty("mo1",_x)+500;
mo2._y= getProperty("mo1",_y);
moW =getProperty("mo1",_width);
Frame 2
mousex=_xmouse;
mo2._x= getProperty("mo1",_x)+moW;
mo1._x= getProperty("mo2",_x)-moW;
mo1._y= 0;
mo2._y= 0;
if (mo1._x<-moW){
mo1._x =getProperty("mo2",_x)+moW;
}
if (mo2._x<-moW){
mo2._x =getProperty("mo1",_x)+moW;
}
if (mo1._x>=moW){
mo1._x =-moW;
mo2._x =0;
}
if (mo2._x>moW){
mo2._x =getProperty("mo1",_x)-moW;
}
Frame 3
gotoAndPlay (2);
i have tried changing it to gotoAndPlay ("Scene 8", 2); but that dont work either!
Anyone got any idea as to where im goin wrong, its driving me nuts!
THE FLA CAN BE DOWNLOADED HERE
consolevolution.pwp.blueyonder.co.uk/tarot.fla
Goto And Play Scene... Having Trouble
This should be very simple so I must be doing something stupid wrong, but heres what I have.
A movie with 3 diffent scenes. On each scene is a navigation menu on the left. When you click one of the buttons this is the code;
on (release) {
gotoAndPlay("Tour"); also have tried it with gotoAndPlay("Tour", 1);
}
Shouldn't this goto scene "Tour" and play it?
Instead it goes to the scene that follows the current scene and if its on the last scene it starts over by going to the first scene. What am I doing wrong? Thanks in advance...
Trouble With Scene Parameter & Root Timeline
Hi all,
I am using a drop down menu in a flash movie, and I am having trouble with the
scene parameter in the gotoAndPlay function.
Basicaly, my buttons are in a movie clip, and since they are not located in
the root timeline, it won't send the playhead to the ("scene", "frame") that I
specify.
I understand that you can use the scene parameter only on the root Timeline,
not within Timelines for movie clips or other objects in the document. So I am
wondering if there is any way to inform the button that I am refering to the root timeline?
This is a problem for me because I am using transitions between sections and my drop down menu really needs to be in a movie clip, I cannot make it work on the root timeline.
Thank you for your precious help.
Catherine
Trouble Importing Video Into Flash 8 Multi-scene Movie
A Quicktime movie that I import into a twenty scene Flash 8 Pro document refuses to play or even to appear when I Test Movie (or Test Scene). However, the same Quicktime movie has no trouble playing when I import it into a new Flash document. I get the same results with streaming or progressive importing and I am repeating the same exact steps in both cases.
Can anyone tell me what I might be doing wrong?
"Scene" Trouble
Hello,
First of all, very useful site and all that stuff. (I'm sure you've heard it all before )
Without dragging it out, my 'task' is to basically build a Flash website. I've never made anything in Flash before (worthwhile) and although I know bits and pieces of the program - it's the depth that causes confusion. I say depth, more specifically you could say ActionScripting.
I've made a home page, which I'm very pleased with in regards to what I know. My next problem is getting the buttons to work. I want to the home page animation to run and then stop. I've got it to run and stop, but I then want the option of clicking one of the above (4) buttons and one of these buttons bringing me to a different section (scene) of my website.
Basically, how do I get to 'link' up all the scenes?
I've a few other questions in regard to getting my flash doc. a bit more advanced, but I'll leave them for now.
Needless to say I've looked through several of the tuts. on here and either due to my lack of knowledge (most likely option) or lack of good guidance in the tuts - I've had no advancement at all in getting my scenes to link up.
Any information needed, then please do let me know. I'm running Flash 8, currently.
Thank you for your help.
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!!!
[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
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
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
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
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
|