ActionScript 2.0 :: Stop Swapdepths In Flash Persisting For The Whole Scene?
Apr 2, 2010
I have a small interface at the begging of my scene (frame1) using the swapdepths command to stop background buttons being clicked beneith pressed button menus. AS on Button inside movieclip (MC):
[Code]...
The next few frames are seperate pages and do not contain this interface yet all the buttons selected from the frame1 interface are still prominant in every frame after this. How can I disable swapdepths in the frames after this?
View 2 Replies
Similar Posts:
Aug 6, 2002
My movie has several scenes. In one of them I have to swapdepths of some mc's. The weird thing is that when I go on to the next scene, the mc's that were on top of the stackingorder are showing up on top of the next scene. I've tried about everything I could think of, but the mc's keep popping up on the other scene's.
View 1 Replies
Apr 2, 2010
I need the video (scene 1) after play & stop will automaticlly go to scene 2. The scene 2 is a rotate images and will stay all the time to rotate in scene 2.
import fl.video.VideoState; import fl.video.VideoEvent; var foo:ExtendedFLVPlayback = new ExtendedFLVPlayback(); foo.skin = "SkinOverPlayMute.swf"; foo.startMuted = true; //set this to false, or not at all to start it unmuted foo.source = ""; foo.autoPlay = true;
[code]......
View 1 Replies
Jan 27, 2011
ive made a button in the scene 1 which i have managed to navigate to scene 2 but when i click the button it goes to scene 2 but displays everthing that is in scene 1 in scene 2, how can sort this out so upon the button click in scene 1 it goes to scene 2 and only display content in scene2.
[Code]...
View 1 Replies
Feb 8, 2007
I have an interactive flash application that I'm building, but it's gotten kinda large (~200k) because of one large png file. So, I want to build a preloader for it, but I seem to have some difficulty getting it to a) stop looping back to scene 1, or b) look good if I use stop();
for some reason, the folowing scene's moving elements look crappy if I use stop(); in it's first frame in order to stop it from going back.
I don't want scene 1 to continuously reappear, but stop messes with the moving elements in scene 2.
View 3 Replies
Feb 2, 2007
So I had been working on this issue where I couldn't get a swf to reload in the same state it was originally loaded. Well further testing leads me to believe that my Model class is being persisted over multiple sessons in the player. Here is my model class:
[Code]...
So when I fire up the swf the first time in the IDE's player, i get 'no previous instance' as you would expect, then I hit ctrl + enter to restart the swf in the IDE's player and I get 'destroying instance'. So this tells me that the Model instance is getting persisted over player sessions. Unless I am mistaken, and correct me if I am wrong, I would assume clicking ctrl + enter (i.e refreshing the swf in the player) would act like a new swf session.
View 3 Replies
Nov 26, 2010
I'm building an online app which opens a SharedObject at its onset to do various things, one being remember whether a user has performed a certain action(vote) before because he/she is only permitted to perform this action once. This is all working fine, until our users began opening a new tab before voting.
If the user opens a new tab, and open the same application, this app(tab 2) needs to know if subsequently the user votes in tab 1. I thought this would be straightforward to resolve. However - for some reason, the sharedObject in tab 2 does not seem to update with updates in tab 1... if you were to refresh tab 2, it would have the updates, but while it is open, the data in the sharedobject does not seem to update.
It all works fine in general, the only time it doesn't is when there are two instances of a flash object open at the same time using the shared object. Maybe this is expected behaviour, and two flash objects can not use the same local sharedObject? It's hard to find this info in the livedocs.
This is the sort of code I am using to manage the SharedObject: (I know the first question anyone will have is, are you the flushing the object after setting your variable, the answer is yes!)
// i call this function at the beginning of the app
public function init(sharedObjectName:String):void
{
sharedObject = SharedObject.getLocal(sharedObjectName,"/");
[Code].....
View 5 Replies
May 4, 2009
After unexplainable problems with external class files, I'm trying another way of doing what I need to do: an Object variable declared in the fla file. Well, this has its own set of problems. The big picture is: I need to get user data and populate fields in their profile when they sign on. Then save changes to their profile during the session, add new users and make changes to their profiles. Pretty normal stuff.
Here's the problem I'm having with the object.
Frame 1 Script:
/* Define the object to use as an associative array.*/
var Person:Object = new Object();// Define a series of properties.Person.HomName = "Joe";Person.HomEmail = "joe@gmail.com";
Then go to a new keyframe, where I have my fields that need to be populated
Script:
EnterName.text = Person.HomName;EnterEmail.text = Person.HomEmail;stop();
When I compile, I get this error twice (once for each field) "The property being referenced does not have the static attribute."
What does the mean and how do I fix it?
Here is a link to the source file if you care to look.
[URL]
The only way I've been able to get variable data from one script to another is through a _global.variable. Is this the only way? No arrays or objects vars?
Thanks in advance for all who assist. Some day soon I hope to be able to return the favor!
View 3 Replies
May 6, 2010
How can I stop a scene from playing until I tell it so?
View 4 Replies
Oct 16, 2011
I'm running a school project which involves flash product.I have used the slide show from[url]....php nad everything works fine, but th slideshow is seen on all the scenes, begginin with this scene wheere it only meant to be seen.I do not really know how to stop this, smth like "stop all actionscript from this scene, when going to the another".
View 1 Replies
Sep 13, 2011
When I navigate to a scene, it just stops at the first frame.Even though i tried to recreate the scene by copying a working scene still not works.It works with the Test Scene, but not with the Test Movie.
View 1 Replies
Mar 22, 2009
I have a video player in a multimedia presentation I am building in Flash, which is almost complete and just having one problem. When I change the page (scene change), I can still hear the audio form the video. The Video is still playing, how can I stop this?I was thinking if I added a stop function to all the buttons that link to different pages, but I don't know how to refer to the FLVPlayer. Somethink like
Bio_btn.addEventListener(MouseEvent.CLICK, StopVideo);
function StopVideo ????????????????{
???????????????();
[code].....
View 1 Replies
Dec 20, 2009
I put an actionscript to make a "matrix effect" on the timeline, but it won't stop playing. It's just repeating over and over again. Even when I'm going to a next frame. Is there a way to stop the script from playing?
This is the code from the "matrix effect":
for (i=0; i<=463; i++) {
_root.attachMovie("digit","digit"+i,i);
this["digit"+i].the_depth = i;
}
[Code]....
View 4 Replies
Jun 11, 2009
I dynamically loaded swf files through loadmovie, into a main movie which has six scenes. I made a button to go from scene 1 to scene 2, and when I go to scene 2, the swf continues to play from scene 1. How can I stop the swf from playing before it goes go to the next scene. I need to stop the swf when it exits scene. What's the easiest way this can be done. I'm using Actionscript 2.0.
View 3 Replies
Dec 25, 2011
I got this animation homework. I wanted to put a couple of bgm in it. I placed the first one, and it refuses to stop when the scene ends. I place the music in a individual frameline but it doesn't stop when frames end. So, I insert a keyframe behind it, and put this codes :
import flash.media.SoundMixer.*;
soundmixer.stopAll();
In which I got the errors : definition of flash.media.SoundMixer could not be found (twice), for line 1 access of undefined property soundmixer, at line 2. I also tried stopAllsounds; , which is also undefined (even after I import flash.media)
(ps: there is hardly any codes inside this animation - it only has the codes for the replay button)
View 1 Replies
Jul 14, 2011
i want to make a puzzle..a photo seperated in 10 pieces(10 scenes)withdifferent speed.each piece does a move from right to left and back again.when i push a button in the correct frame i want to go to the next scene to do to the same thing,if its the wrong frame i want to play another scene.and is it possible to all that staff with one button?
View 0 Replies
May 18, 2004
I have created an into to my flash site. I have put the intro in one scen and the main site in another. While the visitor watch the intro, he has the option to click "Skip intro", then he goes directly to the main site scen.In the intro scen I also have added a sound trackSo, I would like to find a way to stop the sound when the visitor click the "Skip intro" button and are linked to another scen. Right now the sound continue to the end of the sound track, even though I click to change scen. Does anyone know how to do this?
View 1 Replies
Sep 26, 2007
I've just completed and have now made my own carousel, but it has one problem. The mc's do not swap depths properly which kinda kills the whole illusion...
Code:
var numOfItems:Number = 10;
var radiusX:Number = 250;
var radiusY:Number = 75;
var centerX:Number = Stage.width/2;
var centerY:Number = Stage.height/2;
[Code] .....
My stage is 1000 x 1000. The mc's flash back and forward when they overlap at the edges of the carousel.
View 2 Replies
Feb 16, 2011
I have been trying to find the answer to this for a while now. here is what I have tried so far.First frame is var loops = 0 then I dropped this on the frame i want it to stop on after 3 loops, but it continues to loop.if (loops == 3) {stop();}All I want it to do is loop three times and stop on say frame 119 after the 3 loops.
View 5 Replies
Jan 14, 2009
I have a movie with two scenes, each scene has a video. When I go from one scene to the other, I want the video in the previous scene to stop playing. But when I go to the next scene, I can hear the video playing from the previous scene. How can I automatically stop the video from the previous scene, when I go to the next scene.
View 0 Replies
Aug 9, 2010
I have tried to get the advanced gallery to work and now it does but it does not disappear when you going to another scene. What should I write to get it to stop when you want to go to another scene and where should I write it? I used the tutorial on this site to get my gallery: [URL]
The code lookes like this, written in the first frame in a scene:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var myGalleryXML = new XML();
myGalleryXML.ignoreWhite = true;
myGalleryXML.load("gallery.xml");
myGalleryXML.onLoad = function() {
[Code] .....
View 1 Replies
Jan 3, 2009
here is a slightly modified version of a mp3 player that i want to stop playing when you go to another scene. i tried making the back button call the same function that pauses the music when you hit the pause button butp.s. the code for the back button is on the button
var s:Sound = new Sound();
s.onSoundComplete = playSong;
s.setVolume(75);
[code]....
View 1 Replies
Apr 30, 2004
My swf works with scenes. In the 1st scene i build a sound object :
PHP Code:
mysound = new Sound();
mysound.attachSound("thesound.wav");
mysound.start(0,loop);[code].....
but when i move to the 2nd scene, the sound stop looping... I could restart it using _root.mysound.start(0,loop) but it would restart the sound when you move from scene1 to scene2 so cut it up in the middle and restart which isn't so nice..
View 1 Replies
Sep 13, 2004
Check out this code:
[CODE]...
everything here is fine. It opens finely. But... i want to pass parameters where if i click a button in html page My.swf should open a particular scene called 'Scene 2' rather than scene 1. i tried
[CODE]...
View 2 Replies
Nov 30, 2010
I am try to go from a main scene to a second scene in Flash. The code work just fine to take me there, but when the scene appears it seems that I lose focus with the scene and the actions that should runs doesn't until I click once on the screen. Now I am using a button to navigate from one scene to another. If I use a movieclip instead of a button then everything works just fine. In my second scene I am using the keyboard to control different things in the scene.
View 1 Replies
Jun 14, 2010
I added a website preloader in a separate scene to the main frame of my website and scripted it to go to and Play the main scene or frame of the website when finished loading. I then put a command in the first frame of the main scene for the movie to stop (); at that point. The problem is that now the buttons on the main page don't respond to any behaviour commands to go to and stop at other frames in the main scene. I'm not sure if this is a conflict between the stop(); command in the main scene and the button behaviour command to go to and stop at another frame or an error with the way I'm identifying the scene and frame.
View 5 Replies
Nov 19, 2011
Here is the action scrip that I created. Correct it if you can.
Process.visible = false;
Cycles.visible = false;
stop();
[Code]....
View 3 Replies
Oct 19, 2010
I'm sure this is a common problem, I tried looking around on the forum for a problem like mine but was unable to find anything. I'm using Flash CS3, Actionscript 2.0, and am making a soundboard. I have two scenes, one that's the title screen, of which has a sound file loaded via the timeline, (I think) set to Event and Loop, and a button which takes you to the next scene and makes a short sound when it's pressed. My second scene has background music as well, also set to Event and Loop.
Problem is that when I press the button, the background music keeps playing into the next scene. I tried using putting stopAllSounds onto the button, but that makes the sound of the button stop as well, and I'd really like to keep it. I've been messing with this for days, and I can't figure it out.
View 3 Replies
Mar 16, 2011
how to use swapDepths(). I know the alternative way is swapChildren(), swapChildrenAt();I need to know, how to use swapDepths();
View 2 Replies
Apr 2, 2004
I wanted to swap the depths of two movieclips one located in _level0 the other located in _level2! I can get it to work when the MC's are on the same level but not when thier in different levels.
This is the code I've tried...
Code:
_level2.buttons.swapDepths(_level0.caption);
View 1 Replies