How Do I Make This Movie Clip A Loop In The Mask Layer
Hi, please show me how to make this movie clip a loop using actionscript in the mask layer. Sorry the attachment is not working so I can't attach the flash file.
Basically I have two layers for main timeline; the first layer is for background and the second layer is for mask. Inside the mask layer there are two layers. I put 6 different images side by side inside the movie clip and the movie clip is masked. I used this actionscript for the movie clip. I get to see the image slides to the left. When it reaches to the 6th image, it cuts off but I want this continues as a loop. How do I achieve this?
Quote:
onClipEvent(enterFrame) { speed = -2; this.x += speed; }
Thank you.
ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 08-16-2004, 09:19 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Movie Clip Not Appearing On Mask Layer
Hey.. I have a number of text boxes and button instances that are susposed to load onto mask layers - but they're no where in sight.. does anyone have any insight?
Layer Mask For Dynamic Movie Clip?
I'm using action script to create a empty movie clip. The movie clip than gets a movie clip loaded into it via attachMovie(). My problem is that the attached movie shows the entire movie included space that I'd rather was hidden behind a mask. How o you use layerMask() to create a dynamic layer mask to hide the "off stage" goings on of this movie clip?
Thanks
How To Make One Layer Loop And One Layer Static?
I have an interactive Flash application that prompts users and moves them backwards and forwards to different frames.
While this is happening can another layer loop? At a high level can someone please explain what I should be doing to achieve this?
~ Humour
Make A Layer On Main Timeline A Movie Clip? Having Trouble
When I highlight a layer on the main time line that has a tween, etc and hit F8, I have a choice to make it a movie clip, button, graphic. When I choose Movie Clip, it does create it, but when I view the movie clip there is only one frame? Where did my tweening go?
How can I do this?
Thanks,
Andrea
How Do I Make A Moving Mask Layer?
I've looked everywhere for instructions on how to make a mask layer move during a flash movie, and I can't find a dang thing in reference!
All I want to do is basically make a scope with crosshairs move across a field where it finally settles on a target, and fires...but I cant find out how to make a mask layer that's mobile. I have 'Flash 5 for Dummies' and they have a spot in there for it, but its so small, its not understandable...
Can anyone help?
Thanks!
Changing A Clip In A Mask Layer
Hello,
I've got a MovieClip that's only a shape. I've placed an instance of it called "mask" in a layer mask. Suppose the shape is at the begining a square, but after un event it changes to a triangle. Is it possible. I know an animation can be placed in a mask layer, why then I can't get it to work?
Perhaps, I'm not using the right method, I've tried attachMovie and duplicateMovieClip.
In case it isn't possible in a mask layer, how would you change a clip for another in a normal layer, loadMovie is only for external .swf, isn't it? So not possible to use loadMovie in my case.
Thanks!
Motion Clip On Mask Layer Problem
I'm using a motion clip on a mask layer, but only the bottom layer of the clip is visible. Is there a way to correct this? I have several layers with a motion tween on each layer, so I can't paste them all into a single layer. Appreciate any advice...
here's the source if anyone wants to take a look:mc_mask.fla
New Key Frame In Mask Layer Restarts Masked Clip.
I have a very frustrating problem in FlashMX, first version.
I have a mask layer with several movie clips underneath being masked. The mask needs to grow and shrink using shape tweening, so I have multiple keyframes on the mask layer. Every time a new keyframe in the mask layer loads, it resets the movies below (being masked) to frame one, starting the movies over.
I've quadruple checked my code and there's nothing calling the clips to restart.
If I move the mask keyframes down the timeline and off of the affected movies, the clips don't restart. It's only when a new keyframe on the mask layer loads.
Any thoughts? Is this a known bug or just how flash masks work?
Thanks much.
Movie Inside Mask Layer
how do I load a movie inside a mask layer?
I use _root.attachMovie in a frame in a layer under the mask
but it's not working
Advanced Movie Control Under Layer Mask
I have a somewhat complex issue I need to resolve. Let me start by explaning the whole process I want, and hopefully someone can give me what I need to get it done.
I am going to have an image as a background. As the animation plays, blades of grass are going to crop up all around the image. Each blade of grass is going to be a layer mask. What I mean is that I want just the outline of the grass blade to determine the shape, and have an image behind the grass to fill it in. That is problem #1.
The second part to that is that I want the blades of grass (the outline, not the image behind) to move back in forth in a looped motion.
After that, the image behind the grass's layer mask is actually going to be a movie. So the action is, in theory, is that as you mouse over the moving layer mask of the blade of grass, the image behind will cycle through (as a movie I suppose) until you mouse out. On the mouse out, I want it to PAUSE, not revert back to frame 1 of the movie below the layer mask. This is so when you mouse back over, the movie behind continues until it ends and loops back through.
The last part of this that becomes an issue for me is that I want the blades to be multiple in number, in fact, 100s of them. I want to know how to multiply all that I just described above in an easy fashion as well.
Thanks for any help I can get on this complex issue.
Flash Help - Mask Layer Not Working When Movie Is Exported
hey, i created a movie which works fine when played in Flash MX under Control-Play. But when i click test movie, or export it, it plays all apart from a masked layer in the middle (showing a spotlight movie).
If anyone wants to help, or has any idea what is wrong please reply or let me know your email and ill send the .fla file.
Loop The Layer, Not The Movie?
hello,
i suppose this is a basic question but.. i dont know the answer so here goes:
i want to continually loop one layer of my movie while the others stop. and the movie itself reaches an end.
is there an easy way to do this with action script or whatever???
thanx in advance
Alexoras
Make A Button Within A Movie Clip Make The Main Movie Clip Play?
hi, is it possible to make a button within a movie clip make the main movie clip play?
at the moment i have it set to play(); on release put this plays the movie clip rather than the main movie, is there any way to make it play the acutal main movie insteat?
Make One Element Loop Without Making Enitre Movie Loop?
i'm trying to make one element continue looping without making the entire movie loop... here's what i mean..
i have a layer that i've name actions which i've asigned a stop(); to at the end of the animation. but i want the red pulsating dot to continue looping/ animating ... to give you an even better idea, here's the swf file...
http://www.push1.com/roster_art_gal.swf
cheers!
Guide Layer, And Mask Layer Problem
I have a small problem, and it might be possible i just been looking at things the wrong way.
I currently have a symbol on a guided layer, that follows a path when my movie is played. The symbol starts off small, and grows as it reaches the end of the path.
The problem i'm having is, the symbol is overlapping the outside border of my background layer. I'm trying to make the symbol look like its behind the border of my background layer.
I know this can achieved using a mask, but as the symbol is already on a guided layer..Flash won't let me apply it to a layer mask.
Is there any other way around this?
Thank you in advance for your replies.
Movie Clip= Layer?
I am making a analog clock. I am using this tutorial.
http://www.flashkit.com/tutorials/Ac...87/index.shtml
When they are speaking of a movie clip. Do they mean to make diferant layers for each item?
Thanks
More Than One Movie Clip On The Same Layer?
hi can anyone tell me if it is possible to put more than one movieclip on the same layer? what i have is a series of buttons that are attatched using a class. but when i run the swift i get a pop up window saying that "script in the swift is causing flash to run slow abort running the script?"
i was thinking this is because there are to many layers as when i comment some out it stops.
PHP Code:
public function triangle2() {
_root.attachMovie("triangle", "tri2", 0);
_root.tri2._rotation = 180;
_root.tri2._x = 540;
_root.tri2._y = 400;
}
public function triangle() {
_root.attachMovie("triangle", "tri", 1);
_root.tri._x = 0;
_root.tri._y = 0;
}
//places buttons on stage and postions them
public function buttons() {
//var allbuttons:
var butX = 520;
var butY = 90;
_root.attachMovie("button", "but1", 2);
_root.but1._x = butX;
_root.but1._y = butY;
butY = butY += 30;
_root.attachMovie("button", "but2", 3);
_root.but2._x = butX;
_root.but2._y = butY += 15;
butY = butY += 30;
_root.attachMovie("button", "but3", 4);
_root.but3._x = butX;
_root.but3._y = butY += 15;
butY = butY += 30;
_root.attachMovie("button", "but4", 5);
_root.but4._x = butX;
_root.but4._y = butY += 15;
butY = butY += 30;
_root.attachMovie("button", "but5", 6);
_root.but5._x = butX;
_root.but5._y = butY += 15;
butY = butY += 30;
_root.attachMovie("button", "but6", 7);
_root.but6._x = butX;
_root.but6._y = butY += 15;
Thanks for any help
Movie Clip Help (behind Layer)
im having trouble with two buttons . when i press 1st button it should load a swf--(contains-photos) .from external source , same as button2 . all are i did it. But when i load the movie . its automaticly plays the movie how do i stop it.and how can i call the swf to behind the particular layer. please hepl me....
Guide Layer Under A Mask Layer
I can't seem to get a guide layer to exist under a mask layer.
I'm sure there's some workaround, or I'm just screwing up. Does anyone know what I'm talking about?
Thanks in advance for any help.
Mat
Guided Layer AND Mask Layer?
Is it possible to have a guided layer also be a mask layer?
I have a "trail" that I would like to appear so I want to have the mask guided so it will show the trail.
Any comments, suggestions, or tips are appreciated.
- Stephanie
One Masked Layer And More Than One Mask Layer?
Hi all,
is there a way to get a layer masked by more than one mask layer?
I'm creating an animation where a mask will discover step-by-step the
bottom layer.
But the bottom layer is really complex so I created 5 more layer and
applyed the 'mask' property to them.
The problem is that only the first mask layer is applied on the movie,
while other mask layer are ignored.
Is there a solution to this problem?
TIA
tony
Duplicate Movie Clip In It's Layer
Yo!
I have two layers, on upper layer is a black square, on lower red square.
If i duplicate that red one, it will appear above black, even though it is on lower layer. Why is that? Can i stack dupliacted clips on their own layer?
Pleeeease
Changing Movie Clip Layer?
I'm duplicating movie clips and it seems like no matter what layer the orginal movie clip was on the duplicated clips come out on the top. Does somebody know a way to move them down layers?
Loading A Movie Clip Into A New Layer
Hi guys
I always thought I knew how to do this but now it seems I’ve been doing things incorrectly. Can anybody please tell me how to load a movie clip (part of my site) into a new layer.
Any help would be much appreciated
How To Disable A Particular Layer In A Movie Clip
Hi Guys,
What do I put If I want to disable and hide a bunch of buttons which are sitting inside a frame on a movie clip in my flash. I want to do this via a simple button that will do this action.
Here is my code.
on (release) {
_root.control_prompt = "Click here for help.";
}
Any Help will be much appreciated.
Thanks
Simon
Layer Replacement In Movie Clip?
No such thing as a stupid question, eh? Well, I intend to put that to the test.
I am an extreme newbie at Flash. I have created an animation with layers. there is an element in this animation on one layer that I have added keyframes to, for movement etc. However, what I would like to do is take that animation, and duplicate it (which I have done) but replace that element on that layer with a different element, but still retain all the information of the element being replaced.
I don't know if anyone is familiar with After Effects, but if you have an animation all together you can option drag a new asset onto a layer and it will replace the previous asset, but retain all the effects keyframes, etc. of the layer.
Is this possible in Flash (8)?
Movie Clip Swap Layer
I have several movie clips on several layers. I need to be able to bring any one of these move clips to the front when the user clicks.
Does anyone know the proper action for this?
Loading An Swf Into A Movie Clip Layer
Hi,
I have finally finished my coursework assignments of an animation and a portfolio.
Now I have come across a new problem of combining them!
I have exported the animation. It is of size 439.2 x 329.5.
The portfolio is 550x400 and has a few scenes(pages).
What I need to do is load the animation swf in one of the pages.
I have tried using create empty movie clip but it isn't appropriate as far as I can see. because I need to be able to mask around the imoported movie to keep it 439.2 x 329.5. If I use create empty movieclip then I can see all the graphics outside of the animations canvas size.
Therefore my idea was as follows.
On the scene in the portfolio i have got a movie clip layer the cortrect size of the movie, and i have masked this off with a mask layer, so there is a 439.2 x 329.5 window which will be visible.
What I need to do is be able to load the BendItLikeBush.swf from the library into the movieclip (which is called movie).
PLEASE help if you can! I've spent about 60-70 hours on this damn project and i just want to get it finished!
Thanks in advance!
Mike
Duplicate Movie Clip Layer?
Hi I have 2 questions,
1: I am trying to use the duplicateMovieClip(); but why does it always show on top of my non duplicated stuff? cant I thrown it to say the bottom layer?
also my other question
2: does the duplicatemovieclip(); command save space or give better runtime speed? because I didnt really see a difference when I used it.
thanks
Brian
Loading An Empty Movie Clip On A Different Layer?
G'day All!
ok I have a button, when I rollover it, it brings up a movie clip which is basically just an image fading in. when you roll off it fades away....
I have got an empty movie clip on the stage which I am loading into..
But it keeps loading ontop of all my layers, so how do I make it load say on layer 2???????????????
Im using the following code..
__________________________________________________ _________________
on (rollover) {
_root.attachMovie("rollover2","rolloverClip2",2);
_root["rolloverClip2"]._x = 391;
_root["rolloverClip2"]._y = 278;
}
on (rollOut) {
_root.attachMovie("rollover2_off","rolloverClip2", 2);
_root["rolloverClip2"]._x = 391;
_root["rolloverClip2"]._y = 278;
}
__________________________________________________ _________________
Accessing A Movie Clip On A Guide Layer
I've added a movie clip (MC_B)to the timeline of a movie clip (MC_B)that is on a guide layer. I'm having no luck getting actionscript to tell MC_B to do anything. I can add MC_B to the timeline of other MCs that aren't on guide layers, and actionscript can tell it do anything I want.
I've also tried using attachMovie(MovieClip), also with no luck.
Any ideas? I'm using Flash MX.
Thanks...
John
Create An Empty Movie Clip On A Certain Layer?
Just wondering if it's possible to specify what layer a new empty movie clip can be made on?
I have this code:
code:
function randomPoint(mc, r, x, y) {
var rotn = Math.random()*(Math.PI*2);
var size = random(r)
px = x+(Math.sin(rotn)*size);
py = y+(Math.cos(rotn)*size);
mc.moveTo(px-1,py-1);
mc.lineTo(px+1,py+1);
mc.moveTo(px+1,py-1);
mc.lineTo(px-1,py+1);
}
_root.createEmptyMovieClip("myEmptyMovieClip",1000 0);
myEmptyMovieClip.lineStyle(5,0x00FF00,100);
onEnterFrame = function() {
if (!prevTextVar) {
prevTextVar = text.text
}
if (int(text.text)-prevTextVar >=70) {
randomPoint(myEmptyMovieClip, 225, 299.4, 272.5);
}
prevTextVar = text.text
}
I want it do draw the points on a lower level, so then i can place images on top, then when they move, the dots appear!
Thanks alot,
Dave.
Duplication Of A Movie Clip On A Lower Layer
Okay, I'm new. no duh. So I'm not going to say 'go easy', cuz I know the rules of forums. You wanna call me a loser or idiot or whatever, I surrender myself to the flames lest I missed something obvious.
I am using the candle effect in Flashkit's movie archives as the flames for a jetpack, as a school project. I experimented and halfway worked-out the Duplication effect that replicates the movie clip. However, the replicates appear on the front layer, and I don't know how to have them replicated to a lower layer.
Here's the actionscript for the first frame...yes, the movie clip being duplicated is named 'fl'.
i = 0;
setProperty ("fl", _visible, 0);
xx = getProperty("fl",_x);
here's the second frame's actions:
if(i < 35)
{
duplicateMovieClip ("fl", "fl" add i, i);
setProperty ( "fl" add i, _alpha,i*8);
setProperty ( "fl" add i, _x,random(3) + xx);
i = i + 1;
}
Maybe I am an idiot, not knowing how to do this. I'm not exactly the flash guru, but any help would be appreciated. Thanks again for tolerating a new guys' post.
Drag A Movie Clip On A Guide Layer?
Im fairly new to actionscript 3.0 and i was curious, do you know if you can make a movie clip drag along a guide layer. Mainly what im trying to do is make a crosshair for a targeting system in a game. While i was in the process of doing that i wondered if you could make a movie clip that drags along a guide layer.
Flash Movie Clip And 'layer' (ActionScript)
Hi,
I'm very new to flash, so forgive if the terms are not right.
I have my main stage, that is one frame(This is going to be a website)
Now I put two movie clips on the stage, and all is good(They are two balls bouncing, just for testing.)
However, one ball is in front of the other. Sometimes they cross paths, and the blue ball is in front of the red ball. Thats fine, but sometimes I want the red ball in front. How can I adress this with ActionScript? (I have a fair understanding, I can make the movie clips blink in and out, move them, play them frame by frame, ets, just can't change the dominance.)
Basically, I want to controll the flash equivilent of css z-index using ActionScript 2.0. Any pointers?
Thanks,
CJB
Changing Movie Clip 'layer' Order Command?
Hey all,
my problemo is: I have 10 movieclips placed on the main timeline. Each of these clips has an swf loaded into it using the loadmovie into target command.
When 1 of the 10 is selected I need it to 'come to the front' of all the other clips, as the others are made inactive and a second-level nav appears for the active clip.
Is there a command like (in designer speak) bringmoviecliptofront?
Help much appreciated..save me re-coding alot of work!
Disable The Action In The Underlaying Movie Clip Layer
Please point your browser to this address
http://www.h-y-p-h-e-n-s.net/v6/main.html
go to menu number 2 ( the fairy layout ) , then click on domain and go to past layout. then click on the version 1 graphic in the scrollpane component....
. A new movie will load but you notice, when you mouseover to the area whee the version 1 graphic was and click it... the action replay again...
so my question is....
is there anyway to disable the action in the underlaying movie clip layer??
thanx in advance.
Loading An Internal Movie Clip Into A Specific Layer
I think I might have asked a similar question before - but this is very specific, so I'll ask away.
How would I load a movieclip within my main swf, into say Layer2 - and have any actionscript that specifies level2, affect that movie clip?
at the moment, i have a number of external swfs that are loaded into layer2 by a loadmovie scipt. and these can be reset to their first frame by a scipt I have on another button.
I would like to have these all as internal movie clip instead of external swfs (it will bring the overall size DOWN. currently each clip has to have helvetica and hiragino, a full japanese font, loaded - bringing them all into the main movie means only once - knocking 20-25k off per clip) and still be able to affect them by specifying level2. (ie. bringing in a second clip, overwrites the first one - and telling level2 to go to frame 1 makes whatever clip is visible return to frame 1)(I would prefer to keep it specifying level 2, which is general, than having to individualy specify each clip - as there's about 15 of them, which may grow in the future as I increase the content)
I've tried everything under my capabilities and i've been tearing my hair out. So some advice would be fantastic. thanks in advance
Play Movie Clip On Correct Level/layer ?
Can anyone please help?
I am attempting to make a sound sequencer, which also plays animations. At present I am stuck with an animation, of Russian origin, that I have downloaded and modified. I don?t really understand the code.
The problem is quite basic and is that when I play the whole flash movie back the animation plays on top of my interface, no matter which layer I place in on. The interface has been imported as a GIF with a transparent area in the centre.
I'm guessing that there is something in the code which is controlling the level where the animation plays but cannot solve the problem myself.
You should understand what i'm going on about if you look at the example flash file i've posted.
Any help would be greatly appreciated.
Thanks.
Every Other Movie Clip On A Masking Layer...strange Problem
Hey folks, I've got a weird one here...
I'm creating a grid of square "tile" movie clips, each of which contains a simple square button instance (and the scripting to handle those buttons). The movie clips are being loaded into a Masking layer, to incrementally reveal a portion of an underlying image
Behold exhibit A. When you roll over the tiles of revealed image, there's a popup balloon. NOTICE: the balloon only pops on every other tile.
Behold exhibit B. The only thing I changed was to make the layer into a standard layer. All scripting and button events seem to work flawlessly.
Could someone please explain to me why only every other button works on a masking layer? Or at least posit a theory?
|