Problems Adding Just A Scene
hi guys, i am getting in pain just adding a second scene to my flash 8 artwork. ...i have finished an intro and now the movie should jump to a second scene using gotoandplay("scene2", 1). as soon as i add the second new scene from the scene inspector and play the movie, i get a movie that stops playing to the first (i think it's so) frame of first scene....well at the end ...as soon as i add a scene, the movie stops. no code added or removed!!!it's strange!!! please helppppp thank adro
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 07-05-2006, 09:14 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- Adding Scene Issue
- Trouble With Adding A New Scene
- Adding A Link To Scene
- Adding A Scene Distorts Images
- Adding All Instances In A Scene To An Array
- [F8] Adding Text Field In Scene 2
- Adding All Instances In A Scene To An Array
- Adding Up Score From Movieclip To Scene
- Blurry Graphics When Adding A Scene
- Adding 2 Sound Fx To A Scene But It Interupts The First Loop
- Images Look Crappy When Adding Preload-scene
- Adding Scene Makes Images Fuzzy
- Help Adding Moviclips/Btns To My Papervision Scene
- Adding Live Video To A Scene As A Texture?
- Adding New Frames Before Game Scene [mucking Up]
- 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
- Need A Button To Navigate From Scene 1 To Scene 2 [renamed]
Adding Scene Issue
Hi !
I did flash project in one scene. I put preloader in frond of it (in new scene). Preloader works fine, but the code in next scene doesn't work at all!!!!
I didn't find any solution. I tried to paste all frames to new empty movie with two scenes. Script started to work, but gotoAndPlay commands dont work correctly.
Leos
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
Adding A Link To Scene
Hi,
I am a total beginner in Flash and wanted to know, how to add a link that opens in a new window to a scene?
I found out that on AS2 it was done in a manner similar to:
ActionScript Code:
on (release)
{
getURL("http://www.google.com",_new)
}
or something like that.
Right now I got to this:
ActionScript Code:
Scene.addEventListener(MouseEvent.CLICK,goTo);
function goTo(e:MouseEvent) {
var request:URLRequest = new URLRequest("http://www.google.com/");
navigateToURL(request);
}
But I get an error 1061
Basically I need to add a link to another web page on my banner.
Help please?!
Adding A Scene Distorts Images
This seems very strange to me, but why would adding a scene to the movie lower the quality of the images I am using. I have images that look fine, but if I just add a scene to the movie the quality goes way down.
Thanks for the help,
Todd
Adding All Instances In A Scene To An Array
I want to instruct actionScript to look at my scene, go though each item on it (e.g. all of the check boxes and radio buttons) and add each of these items that have got an instance name into an array.
I can't think of a simple solution to this. Can anyone help please?
[F8] Adding Text Field In Scene 2
I have a two scene movie
In the second scene i have
Code:
createTextField("word_txt", 2000, 100, 100, 300, 100);
word_txt.multiline = true;
word_txt.wordWrap = true;
word_txt.border=true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xFF0000;
my_fmt.underline = true;
word_txt.text = "This is my first test field object text.";
word_txt.setTextFormat(my_fmt);
If I export the whole movie this doesn't work
If I export just the second scene it does work.
What do I need to alter to make it work if I export the whole scene
THanks in advance
Adding All Instances In A Scene To An Array
I want to instruct actionScript to look at my scene, go though each item on it (e.g. all of the check boxes and radio buttons) and add each of these items that have got an instance name into an array.
I can't think of a simple solution to this. Can anyone help please?
Adding Up Score From Movieclip To Scene
Hi, I am doing a quiz game project using flash that is due soon. I am having a bit of problem with adding up score from many movieclips and displaying it on another scene.
Any help is deeply appreciated.Thanks in advance.
Blurry Graphics When Adding A Scene
Hello...i'm new at this forum and here's my first question:
When i add an extra scene to my movie (flash MX 2004) than all my graphics become blurry like a bad jpg. When i delete the scene again, the graphics are perfect.
Is this a bug in flash or am i doing something wrong? The graphics I imported are png or jpg.
I tried some changes with the jpg publishing quality, but that didn't work.
So..anyone with the solution?
Thnx in advance.
Adding 2 Sound Fx To A Scene But It Interupts The First Loop
Hi, i am working through one of the tutorials in swish and i have come accross a problem. IN THE TUTORIAL "THIS IS MY MESSAGE" i have added the vector graphics and the initial sound. However i wanted to added a sound effect when the first picture loaded in. When i did this my first sound loop cuts of then startes again when the sound fx is meant to cut in. So i look at sound/actions panel. I loop 88amp3 15 times and then at my first jpeg i loop a sound fx once. But when i play the whole scene my sound fx cuts in through the whole thing. When i go back to the sound panel i find that the setting have changed and the soundfx wants to play 15 times now overiding my initial 88amp3 sound loop. Its just that in future i want to put key sounds along side pics loading in and what not, and im not sure how to co-ordinate this. Anyone know what im doing wrong? Im pretty sure im close but i cant find the solution. Any takers?
Regards,
Gibbo.
Images Look Crappy When Adding Preload-scene
I have an imagesequence that should be exported with the swf in highest quality. Works great on it self and all, no problem whatsoever, UNTIL....
I added a preloader in a scene
Now when I export, the images look all crappy! Almost bitmap-like. I swear I've checked the properties of all images and the export-settings and all that.
Can someone help me with this problem?
Much appreciated,
Mediamonkey
Adding Scene Makes Images Fuzzy
I have a flash movie (flash 5) with imported PNGs for buttons. When I add a new scene (either by duplicating or adding new), the quality of these images plummets, even though I have the publish settings set to 100% jpg quality. As soon as I delete the new scene(s), the quality is restored. Obviously I can't publish a movie with poor quality images (it's like they've been enlarged and then over-sharpened in paintshop pro or similar, except they haven't). Does anyone know if/how I can remedy this? TIA
Help Adding Moviclips/Btns To My Papervision Scene
Please help. I'm new to papervision and AS3. I'm trying to spin a cube with materials and interact with buttons on the cube. I was able to assemble this:
http://www.methodengine.com/clients/...vidboxspin.swf
It shows my cube with my materials. I placed buttons over the box that spin it. I would like those buttons to actually appear and spin on the cube itself.
Can anyone out there point me in the right direction. I was able to add movieClips on the stage, but no in the front cube material.
Here is my code to make this happen:
ActionScript Code:
package {
import flash.display.*;
import flash.filters.*;
import flash.events.*;
// Import Papervision3D
import org.papervision3d.events.InteractiveScene3DEvent;
import org.papervision3d.scenes.*;
import org.papervision3d.cameras.Camera3D;
import org.papervision3d.objects.DisplayObject3D;
import org.papervision3d.materials.*;
import org.papervision3d.utils.virtualmouse.VirtualMouse;
import org.papervision3d.utils.virtualmouse.IVirtualMouseEvent;
import org.papervision3d.utils.*;
import org.papervision3d.objects.*;
import flash.text.TextField;
import flash.utils.*;
public class Main extends MovieClip {
public var mc :MovieClip;
// ___________________________________________________________________ 3D vars
var container:Sprite;
// var scene:Scene3D;
var scene :InteractiveScene3D;
var camera:Camera3D;
var ism:InteractiveSceneManager;
var plane:Plane;
var time:Number;
var tweening:Boolean = false;
var myVidfront:Boolean = true;
var mouse:Mouse3D;
var vMouse:VirtualMouse;
var material:InteractiveMovieMaterial;
public var myVidContainer:MovieClip;
private var frontMaterial:BitmapFileMaterial = new BitmapFileMaterial("images/player2_back.png");
private var backMaterial:InteractiveMovieAssetMaterial = new InteractiveMovieAssetMaterial("flv", true, true);
private var targetrotationY:Number = 0;
var p:Cube = new Cube(new MaterialsList( {
front: frontMaterial,
back: backMaterial,
left: new ColorMaterial( 0x000000),
right: new ColorMaterial( 0x000000),
top: new ColorMaterial( 0x000000),
bottom: new ColorMaterial( 0x000000)
} ), 800, 100, 500, 1, 1, 1);
public function Main() {
init();
time = getTimer();
}
public function init():void {
stage.scaleMode = "noScale";
// add a spin btn
var spin180_btn:PlayVid= new PlayVid();
spin180_btn.x = 500;
spin180_btn.y = 25;
addChild(spin180_btn);
// add another spin btn
var spin360_btn:PlayVid= new PlayVid();
spin360_btn.x = 400;
spin360_btn.y = 25;
addChild(spin360_btn);
init3D();
addEventListener( Event.ENTER_FRAME, loop );
spin180_btn.addEventListener(MouseEvent.CLICK, spin180);
spin360_btn.addEventListener(MouseEvent.CLICK, spin360);
}
// ___________________________________________________________________ Init3D
public function init3D():void {
// Create container sprite and center it in the stage
container = new Sprite();
addChild( container );
container.name = "mainCont";
container.x = 270;
container.y = 200;
// Create scene
scene = new InteractiveScene3D( container );
ism = scene.interactiveSceneManager;
scene.addChild(p);
p.rotationX = 0;
p.rotationZ = 0;
p.rotationY = 0;
p.x = stage.stageWidth / 4;
p.y = -100;
var moreVids_btn:MoreVids = new MoreVids();
moreVids_btn.x = 480;
moreVids_btn.y = -130;
// scene.container.addChildAt(moreVids_btn,1);
moreVids_btn.addEventListener(MouseEvent.CLICK, spin360);
// Create camera
camera = new Camera3D();
camera.zoom = 10;
camera.sort = true;
}
private function spin180(event:Event):void {
tweening = true;
trace(p);
if(myVidfront){
myVidfront = false;
targetrotationY = 180;
}else{
myVidfront = true;
targetrotationY = 0;
}
}
private function spin360(event:Event):void {
tweening = true;
if(myVidfront){
myVidfront = false;
targetrotationY = 360;
}else{
myVidfront = true;
targetrotationY = 0;
}
}
// ___________________________________________________________________ Loop
function loop(event:Event):void {
if (tweening) {
if (p.rotationY <targetrotationY) {
p.rotationY += Math.sqrt(targetrotationY-p.rotationY);
p.rotationY = Math.round(p.rotationY);
} else if (p.rotationY> targetrotationY) {
p.rotationY -= Math.sqrt(p.rotationY-targetrotationY);
p.rotationY = Math.round(p.rotationY);
}
}
scene.renderCamera( this.camera );
}
}
}
Adding New Frames Before Game Scene [mucking Up]
Got a game, asteroids, and it works fine, but when i move the frames along 1 so that i can add an into screen, with high scores and a play button, it throws off all my remove movieClips.
if anyone know as to why, would be great 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
|