Layers Continue To Move While Some Stay Still?
I want certian layers to continue what they are doing, repeating over and over again, but I don't want the entire document to do so. How do I do this? How do I make say layer 2 and 3 stop after 35frames and layer 1 continue and repeat over and over?
FlashKit > Flash Help > Flash MX
Posted on: 04-01-2004, 04:01 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- How To Move All Layers
- Layers Move Themselves
- How To Move Layers Into A Mc
- How To Move Things Between Layers?
- Locked Layers Move
- How To Move A Whole Bunch Of Layers At The Same Time
- How To Dynamicly Move A Layer? I Need Layers To Appear Above....
- Resize Doc From Top? If Not, How Do I Move Layers/tweens Up?
- STAY Background STAY
- STAY Background STAY
- Clicking Trough Layers On Other Layers, How To Stop It?
- Loading Mc 2 After Mc 1 Is Done Using Layers Seperate Layers In The Same Scene..
- Merging Layers Or Scanning Layers Into Image
- Turn Selected Layers Into Guide Layers?
- Importing AI Layers As Flash Layers
- [F8] Layers ... Oh, GOOD LAWD, Layers
- Question About Controlling Layers From Other Layers
- Hidden Layers Vs Guide Layers
- Action Scripted Layers Always Act As Top Layers?
- Oh Layers..layers...I Hate Da Layers
- Images Move Left To Right, Fast And Slow On Mouse Move...
- Images Move Left To Right, Fast And Slow On Mouse Move...
- Images Move Left To Right, Fast And Slow On Mouse Move...
- Allowing The User To Move Move An Object (graphic Asset)
- Images Move Left To Right, Fast And Slow On Mouse Move...
- Move Movie Clips On Mouse Move (opposite)
- I Need To Know, Need To This Continue Please Help
- Stop Everything, Continue Something Else
- Help How Can You Pause And Continue?
- Help How Do I Pause Then Continue?
- How Do I Pause Then Continue?
- Continue Movie?
- Preloader Wil Not Continue
- Continue A Movie
- Continue Alpha
- Sound Continue?
- IASKWHY Please Continue To Help
- Press Any Key To Continue
- Movies That Continue...
- I Need To Continue In A Scene After 'this' Happens...
- Flash Won't Continue
- Continue Sound Over Two Swf's
- When Score = 100 Continue?
- Dismiss All || Continue
- Need Guidence On How To Continue
- Continue Un-interruppted
- Continue Next Frame
- Continue After Video
- Again : Continue Reloading Var From PHP
How To Move All Layers
I need to nudge all the layers in Scene 1 up about 25 pixels or so. Is there a way to do that all at once? I've got about 20 layers. I've tried "selecting all" but the frames with motion don't select so some things don't move that way.
Thanks
Mermaids Rule
Layers Move Themselves
I think I posted this problem before but I can't find it in search.
I started this animation in Flash 8 (which I didn't know very well, either) and am now using Flash 9.
I am animating a character with each body part on a different layer. I make sure each one looks right at each frame, but sometimes I go back and the upper and lower arms, for instance, no longer meet the way they're supposed to. If I tweak them, other layers and other frames of the same layer can get way out of whack. Fixing the new problems usually leads to worse problems, and it goes on and on.
I think all the layers are instances of movie clips. Should they not be symbols? Is there something else I should check for?
Edited: 06/08/2007 at 02:32:57 PM by zyxi
How To Move Things Between Layers?
More specifically, if I already placed some images on stage and decided that they should all goto a different layer, is there any easier way to do it rather than using the "Distribute to Own Layer" command?
I basically have 10+ images all aligned the way I want, if I try cut/paste it will go to the middle and does not retain it's location. If I use Distribute to layer all 10 will have their own layers... I would like all 10 of them to be on the same layer.
Thank you!
Locked Layers Move
We've had two problems repeatedly over the last several months in Flash 8:
1] We select a vector point in an image on one layer, then use the arrow key on keyboard to shift that point. This causes an image on a separate, locked layer to move.
2] We delete an anchor point on one layer. The point disappears, but it also makes a section of an image that's on a separate, locked layer disappear. By doing 'undo' a few times, it is possible to undo the unwanted deletion and keep the desired deletion.
These problems are real productivity killers.
Any thoughts on what causes this or how to correct it?
How To Move A Whole Bunch Of Layers At The Same Time
Hey everybody, i have this problem, i did a movie in flash, but i forgot to set the movie dimensions before starting. Now i have to move all my layers with their respective animations to a certain area to fit the correct movie dimensions.
I tried to do it by highlighting all the layers and moving them but it didnt work, some layers move some don't and whats worse, in some of the layers where i used tweening it all got messed up, the tweening goes from the old position of the movie to the new one.
Little help please.
How To Dynamicly Move A Layer? I Need Layers To Appear Above....
Hi all i have a 3d square box on my Stage, I have it animated so when you click a number the cubic section moves up using a tween, now their are 4 of these tweens and when i want to click say number 4 it will move behind all of the other images and i dont want it too, i am sure their is a way, but does anyone know how to make it appear above all other layers?? thanks in advance
Resize Doc From Top? If Not, How Do I Move Layers/tweens Up?
I need to resize my flash file to keep the stuff at the bottom but chop off the top stuff. If I resize the document, it chops off the bottom (furthest from 0,0) and forces me to try and move every single layer and tween up!
How can I resize the document from the top instead of the bottom and if not, is it possible to move everything (including tweens) up onto the stage?
Merging Layers Or Scanning Layers Into Image
Hello all. Been awhile since I've been to the FlashKit forums, but I'm learning something new.
Anyway, I've been programming in AS1 and AS2 for awhile and just recently started learning to do AS3. To start my learning progress I'm making a drawing program...
So far I just have draw and erase functions. Every time you "draw" it creates a new Shape object to draw on. This way if I want to add "Undo" I just go through and delete the new Shape object one by one. When you erase it creates a layer above the last draw area with a blend mode of "erase". So pretty simple.
The problem I have so far is that after drawing and erasing a bit it starts to get laggy as all the layers pile up on top of each other. When I add an undo function I will only have 10 steps of undo so to reduce overhead. But even without undo the extra layers are needed to be able to erase part of the drawing and then draw over where you erased.
So this brings me to my question. Is there a way in AS3 to merge together multiple layers or Shape objects? So after so many layers are created by drawing and erasing I can merge them into one flat one to reduce the processing needed.
I was thinking maybe I could do this though scanning the pixels on the clip contaning all the layers? I know I worked with saving images in Flash 8 before, but not sure how this works in AS3. I hear it's faster, hopefully fast enough to not have to wait 5 minutes every so many times you draw in my program.
And here's the code I have so far:
code:
var drawArray:Array=new Array();
var layerClip:MovieClip=new MovieClip();
var drawArea:Shape= new Shape();
this.addChild(layerClip);
layerClip.addChild(drawArea);
layerClip.blendMode=BlendMode.LAYER
drawArray.push(drawArea);
var drawLayer:int=0;
var prevX:int=0;
var prevY:int=0;
var erase:Boolean=false;
function runDraw(event:MouseEvent) {
drawArray[drawLayer].graphics.curveTo(prevX, prevY,(prevX+drawArray[drawLayer].mouseX)/2,(prevY+drawArray[drawLayer].mouseY)/2);
prevX=drawArray[drawLayer].mouseX;
prevY=drawArray[drawLayer].mouseY;
event.updateAfterEvent();
}
function startDraw(event:MouseEvent):void {
if (erase) {
drawArray[drawLayer].blendMode=BlendMode.ERASE
drawArray[drawLayer].graphics.lineStyle(6, 0x990000, .75);
}
else {
drawArray[drawLayer].graphics.lineStyle(2, 0x990000, .75);
}
drawArray[drawLayer].graphics.moveTo(drawArray[drawLayer].mouseX, drawArray[drawLayer].mouseY);
prevX=drawArea.mouseX;
prevY=drawArea.mouseY;
stage.addEventListener(MouseEvent.MOUSE_MOVE, runDraw);
}
function stopDraw(event:MouseEvent):void {
stage.removeEventListener(MouseEvent.MOUSE_MOVE, runDraw);
var drawArea:Shape= new Shape();
layerClip.addChild(drawArea);
drawArray.push(drawArea);
drawLayer++;
}
function toggleErase(event:MouseEvent):void {
if (erase) {
erase=false;
}
else {
erase=true;
}
}
stage.addEventListener(MouseEvent.MOUSE_DOWN, startDraw);
stage.addEventListener(MouseEvent.MOUSE_UP, stopDraw);
eraseBut.addEventListener(MouseEvent.CLICK, toggleErase);
Turn Selected Layers Into Guide Layers?
i had 3 layers selected... went to trash them and somehow the were turned into guide layers... this would be great if i could find out how it happened. rather than turning one at a time into a guide.
Anybody know how?
Importing AI Layers As Flash Layers
Is there a way to import Illustrator layers as Flash layers. Most of the time I export my Illustrator file as a swf then import it into flash. Then One by one I have copy an object...delete...then make a new layer and past it in place..
[F8] Layers ... Oh, GOOD LAWD, Layers
Greetings, Flash Gurus and Gurus-to-be,
i am mocking up a site, which can be found at HERE
The only links operational are Catering and King Cakes, and are only operational if you REFRESH the page. i know i am lacking a preloader, i have it built, but am not wasting time with it right now.
As you can see from the example, i have our little Butcher Guy off to the left, and for each "department" of our organization, i would like to dress him for the part. i want our butcher guy to fade in and out, and in the case of the King Cake page, i would like our logo and the Italian flag on the left to change into the traditional Mardi Gras colors in all their gaudy splendor.
My problem lies in the fact that my men seem to be piling up on one another, as does my Italian and Mardi Gras flags.
If i use "index.html" to load "Master.swf" (which is the initial, fade in page), and master.swf has inside of it, actionscript to load "MasterMardiGras.swf", (which is the King Cake page), how would i go about getting control and order in here?
Copies of the swf files are here:
http://img150.imageshack.us/my.php?image=loaderjw0.swf
http://img124.imageshack.us/my.php?image=masterqz4.swf
http://img145.imageshack.us/my.php?i...rdigrashh8.swf
http://img388.imageshack.us/my.php?i...ateringur4.swf
http://img125.imageshack.us/my.php?i...tercafety3.swf
Thanking you, i am, for your great, overflowing keg of knowledge!
Question About Controlling Layers From Other Layers
Is it possbile to create an action in a loaded movie in layer1 that will tell the movie in layer0 to go to a specific frame and start playing?
Another question I have is, can you load a movie into a container or layer and have it start, not at the begininning, but at a specific spot in the loaded movie's timeline?
Hidden Layers Vs Guide Layers
I often have things on a layer that I don't want to see while I'm working on another layer and frequently testing and tweaking and I used to just have those hidden in the timeline and they would publish. And if I didn't want a layer to publish, I'd make it a guide. In CS3 it seems that those hidden layers won't publish (though at times I've had them publish for me in certain files, but I don't know why).
Is there a setting I can choose to make hidden fields publish like they did prior to CS3?
Action Scripted Layers Always Act As Top Layers?
I used this snow effect from kirupa...
<A href="http://http://www.kirupa.com/developer/mx/snow.htm
However, the snow effect always acts like the top layer, ok what i mean is, i have 3 layers, (1)toplayer= a car, (2)middle= snow, (3)low= background.
I want to make the snow to be seen behind the car...i hope you understand what i mean , whenever i put the code from the link above it acts as the top layer and appears in front of everything.
Any help is appreciated...
Oh Layers..layers...I Hate Da Layers
HI!
so there is some hair on the floor, and some bald patches in my head...big deal!
anyways...at the moment my movie is kinda messy, but something is happening that really annoys me!
i have this mc that loads into a target..and then you click button2 and this loads mc2 into the target, ok fine!
BUT, what is buggin´me, is that when you click, say, button3, to load mc3...you see like whats underneat...on the very bottom layer...and i dont want that to happen....i want there to either be nothing...or atleast show the previously loaded mc...but not the very bottom.....
how can i solve this guys??
thanks very mucho! adios
Images Move Left To Right, Fast And Slow On Mouse Move...
I'm looking for a tutorial or example of the effect when you have images all next to each other horizontally and when you roll the mouse oneway they move in the opposite direction and when the mouse is centerd on screen they slow down... Anyone have an example or tutorial of this?
Images Move Left To Right, Fast And Slow On Mouse Move...
I'm looking for a tutorial or example of the effect when you have images all next to each other horizontally and when you roll the mouse oneway they move in the opposite direction and when the mouse is centerd on screen they slow down... Anyone have an example or tutorial of this?
Images Move Left To Right, Fast And Slow On Mouse Move...
I'm looking for a tutorial or example of the effect when you have images all next to each other horizontally and when you roll the mouse oneway they move in the opposite direction and when the mouse is centerd on screen they slow down... Anyone have an example or tutorial of this?
Allowing The User To Move Move An Object (graphic Asset)
I'm working on a Flash presentation that will be an instructional tutorial. I'm teaching users how to navigate a map and I'd like to have them move a ruler or legend to measure distances between two points. Can anyone direct me to a reference source that can help me set this up?
I'm a fairly new Flash user but very eager to learn this technique.
Thanks,
Jerry Marino
Images Move Left To Right, Fast And Slow On Mouse Move...
I'm looking for a tutorial or example of the effect when you have images all next to each other horizontally and when you roll the mouse oneway they move in the opposite direction and when the mouse is centerd on screen they slow down... Anyone have an example or tutorial of this?
Move Movie Clips On Mouse Move (opposite)
Hi.
Does anybody have idea how this thing work (the cirlcles moves)?
http://www.templatemonster.com/flash...tes/15650.html
As well as the button gets closer to mouse when near the buttons.
I cant seem to find here .
Thanks very much.
I Need To Know, Need To This Continue Please Help
Thank you for taking the time to read this, I really need your help. I need to know how to do this to conitune with my site that I want done by Jan 1st. I want to do this:
---------------
Button banner
--------------
where I want to send info
---------------
Banner
---------------
the button is inside the banner I want to know how to make it so that when I click that button, the information is sent to the middle. thanks a lot in advance!
Stop Everything, Continue Something Else
Okay, I started making a very basic site last night with flash... I want everything in the page to stop what they are doing, and I want the picture on the top to continue doing what it does infinintly. The page is http://pandora.wd1.net/~t2training/AndrewsPage/One.swf if you want to see what I am talkin about, thanks.
Help How Can You Pause And Continue?
Does anyone know how to pause the movie for a certain amount of time that I determine then continue?
I'm new to Flash so pardon my ignorance. Its easy to do in Director, so I figured it would be easy in Flash as well. Thanks!
Help How Do I Pause Then Continue?
Does anyone know how to pause the movie for a certain amount of time that I determine then continue?
I'm new to Flash so pardon my ignorance. Its easy to do in Director, so I figured it would be easy in Flash as well. Thanks!
How Do I Pause Then Continue?
Does anyone know how to pause the movie for a certain amount of time that I determine then continue?
I'm new to Flash so pardon my ignorance. Its easy to do in Director, so I figured it would be easy in Flash as well. Thanks!
Continue Movie?
i hope someone can help me with this:
i have my movie on the main stage it start with an animation of 52 frames, in frame 53 i have placed an mc (with 'stop' in its last frame) which it playes fine (i had to put an action "gotoand play next frame" in 52 otherwise it would just skip it)then on frame 54 on the main stage it continues with an animation.
problem: when i play this movie it goes as far as playing the mc on frame 53 but then it totally stops, it doesnt continue with frame 54 on the main stage. what action am i missing?????
if i dont put the stop action at the end frame of the mc it obviously plays that mc continuesly, yet it should continue with frame 54 on the main stage.
i hope i managed to explain this clearly.
i appreciate any suggestion!
thank you!
Preloader Wil Not Continue
After it loads, it stops.
I've used this code:
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes/1000);
totalkbytes = Math.ceil(totalbytes/1000);
perc = Math.round((_parent.getBytesLoaded()/_parent.getBytesTotal())*100);
xperc = perc/100;
barlength = 200;
if ((perc == 100) and (bar._width == barlength)) {
if (loadedbytes == totalbytes) {
gotoAndPlay (2);
}
} else {
nperc = perc+"%";
bar._width = barlength*xperc;
bar._x = -100+(bar._width/2);
}
Whats wrong with it?!
Continue A Movie
Hello,
Can anybody tell me how to let a movie continue when somebody clicks on a button?
I have made a movie width ( insert – new symbol – and the selection on movie clip )
Here I made the movie ( width some stop actions ) and dragged it onto my scene.
Now when someone clicks on a button in the scene I want the movie to continue to play to the next stop action frame.
I use flash 5
Continue Alpha
I have a series of duplicate movie clips that have the following code attached to the MC:
on (press) {
var Current_MC_Name
Current_MC_Name = this._name
_root.butpress(Current_MC_Name);
}
I have another script in frame 1 with the butpress function. This function does some checking and then fades the MC in or out based on the MC's current alpha value.
Because this is not a button it appears the checking is not looping until all conditions are met.
Here is the fade check code in frame 1:
fadeOut = true;
if (LGimage._alpha>10 && fadeOut) {
LGimage._alpha -= 10;
}
if (LGimage._alpha<10) {
loadMovie("images/"+Current_MC_Name+".jpg", "LGimage");
fadeOut = false;
fadeIn = true;
}
if (LGimage._alpha<100 && fadeIn && !fadeOut) {
LGimage._alpha += 10;
} else {
fadeIn = false;
}
It appears my movie clip with a press action doesn't work right.
Any help is appreciated.
Sound Continue?
I want to know if it is possible to have a music/sound file play when the movie changes scenes, kind of like a background music, and I need it to be in all of one movie, not making the sound in another movie then linking the swf to your main movie, I want it all to be in one swf file.
can it be done?
IASKWHY Please Continue To Help
You are right regarding the email form. Thats not the one I really want. I want something like this. Can you now tell me which part of php I should edit to fit my needs? I appreciate your patience.
Press Any Key To Continue
How is press any key to continue accomplished in flash?
I have a game, when someone dies they are taken to a screen where a random insult is displayed on the screen. I would like, at that point, for the end user to be able to press any key to return back to the game.
Any suggestions?
Thanks.
Movies That Continue...
Umm.... my technical jargon is out the window... but...
i've got some roll overs that play little movies when rolled over... how do i keep the movie running until it's completion even after the user has moved off the button??? also the movie should keep running even if the user rolls over another button... the effect being multiple movies potentially running all at the same time on the stage.
thanks to anyone who can help out.
navi.
I Need To Continue In A Scene After 'this' Happens...
greetings,
i'm using Flash MX 2004 Pro:
All in the first frame of my scene, I have 8 small movie clips (each on separate layers) that change their transparency from 100 to 0 when you roll over them with the cursor...
What I am trying code would sound like this in English: "only after all 8 instances of these small movie clips have been rolled over and disappear, the user can then roll over this large movie clip to continue"
I imagine I would do this with 'if'/'then' coding, but i haven't used it before, so how would i code that?
also, would i put this code in the instance of the large movie clip?
help would be greatly appreciated, thanks.
this is what i have coded in the instance of each of the 8 small movie clips:
code: on (rollOver) {
this._alpha = this._alpha -100;
}
Flash Won't Continue
Hello Guys I hope someone can help me out. I've made a flash presentation with these specifications:
Dimension: 720x480 pixels
Frame Rate: 30 fps
The presentation that I've made is really big, resulting in a 4.5MB windows projector file. It contains 38 scenes and most of the content are PNG files. For text effects I used Swish 1.51 and for the background music of the presentation I'm using the code LoadMovieNum ("name_of_movie_that_contains_the_background_music .swf", 9)
Everything is going well except at the 33rd scene. What happens is the scene will start except that when it is about to play the first text effect, the presentation doesn't move on to play the rest of the scene. It just stops there.
I have looked at that Scene and doubled-check if maybe some of the frames has the stop command, but there is no frame that has the stop command.
Can you please tell me what is happening?
Continue Sound Over Two Swf's
hi !
i got a problem with looping sound. i have 2 movies - lets say a.swf & b.swf. also, i have an external sound file music.swf. i m calling the sound file on the first frame of a.swf using loadmovie(). next, on the last frame of a.swf, i am calling the other movie b.swf, but the sound stops on the last frame of a.swf. can u help me in continuing the sound over these 2 movies.
it'll be very helpful.
thanks.
When Score = 100 Continue?
I have a snake game,
all i need is to make the link at the end....
i want the game to link to a new scene if the player dies with
a score greater than 100...
so far i have if (tscore > 100){
gotoAndPlay("Scene Name",1)
}
Dismiss All || Continue
is there anyway to turn of the warning window that pops up when things go wrong? It's the one with the options to dismiss all or continue...
i looked through the debug part of the manual, but i confess, perhaps not close enough
Need Guidence On How To Continue
ok, I'm creating this webapp in flash to make my co-worker's lifes easier.
What I'm trying to do is to display a chart with buildings listed on it, and it shows what current status the buildings are. (up and runing, down, maintance, etc.) Also, if the current status of the building is maintence, I want to be able to display what the problem is.
P.S. I made a general list of common problems that can occur.
This is where I am...
> I've created the layout for the chart and all the imformation needed.(not programming wise.)
> I've also created the admin part so the admin can update/edit the chart, thats all done.
Where I'm stuck...
> How can I update the chart using the admin part?
I have three sepreate files...
admin.swf
viewer.swf
data.as
> So I was thinking maybe I could update the chart(viewer.swf) by changing variables in the data.as file.
I.E. Making the changes in the admin.swf and after clicking submit, it sends the variables to the data.as and when you check the viewer.swf, It'll scan that data.as file and that makes all the nessecary changes to the movieclips in the viewer.swf.
-------
I was told that I could do this with xml, but I'm not really good with flash/xml.(and it also looks complicated with what I'm trying to do)
So yea, Can someone point something out, another way of doing this, because I don't know how to write the code so that the chart makes the changes based of the data.as file.
ANY help is appericated becuase I really need this done. I'm looking at it too much, I need a fresh eye on it.
Thanks for reading.. & sorry for the long post.. just trying to get percised.
Continue Un-interruppted
So I am making a website that is 20% flash an 80% other. My main logo is a sweet as3 code that i want to keep looping, and it does, The problem comes when I navigate around my site it starts the animation over again and it looks like crap. Is there a way to have the animation start where it left off?
Continue Next Frame
hello!
i'm trying to solve this gotoAndStop action. i'm trying to have first frame action to run through all frames until it reaches 51 frame. Even though all frames have stop(); action, but first frame with:
ActionScript Code:
stop ();
mc:Number = 51;
if (mc <= 51) {
gotoAndStop (this.nextFrame+1);
}
can anyone help?
thanks in advance
Continue After Video
In the middle of my timeline, I have an flv video. In order for it to play and not skip over it on the timeline, I have to put a stop(); after it on the timeline. If I don't do this, my finished movie skips it and plays the next items on the timeline.
So if this is expected behavior, (im new), how do I test for end-of-video, and insert something like, goToAndPlay("next_piece");
Again : Continue Reloading Var From PHP
Hi,I need to display vars from PHP file continuously, without opening/running PHP file, I have the following script :
Code:
Display = function () {
loadText = new LoadVars();
loadText.load("data.txt");
loadText.onLoad = function() {
MKA01CE901XQ01.text = this.MKA01CE901XQ01;
};
clearTimeout(ID);
};
ID = setInterval(Display, 2000);
My problem is, the data is only updated on swf when PHP is opened.
Is there any missing scripts ?
Thanks
Sule
|