ActionScript 3.0 :: Finding Which MC Is On Top Of Layers?
Jun 21, 2010
I have to resolve a problem I encounter to find the equivalence between menu links and displayed pictures. (in order to highligh the good menu name) how I can find and trace which MC is on top of a defined layer. All these MC were created dynamically from an Array.
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.
Is it possible to add layers, re-order layers, move movieclips from layer to layer or specify which layer a duplicate movieclip appears on at runtime with AS3?I am aware of the depth properties and the functions associated with that but it would be easier to have a concept of a layer because I am dealing with masks.I have a nasty feeling I'm gonna be told that layers don't really exist within an swf and that depths and setmask are all there is to work with.
Whenever I add a new layer, it seems to be linked to my 1st layer.If I delete something on the stage on the new layer, it's also deleted from the 1st layer. If I try locking the 1st layer, anything on the new layer-although not locked itself -can't be selected.
I've made my site with photoshop and all images are in *.*png, saved with transparency and in the same resolution 1000x750. I exported them into my working file in Flash. No problems here.I've started to put each of the images in separate layers and in stacking order I wish, still no problems.Now, I am about in 20th layers I am inserting the image, again in separate layer and what happened? The layer will cover over the layer which is almost at the bottom. Meaning...only the trasparency which is very strange.
I am trying to make an animation in which different layers (=images) come into the stage, then stay in place and other layers move in and stay as well. I have done 2 of the layers so far, converted them into movie clips, tweened them etc. When I run the cursor along the timeline, I see the desired result on the stage, ie everything comes in at the right time and stays in place. However, when I export it to view the film, only the first layer comes in, moves into place and stays there, and then nothing happens, ie the second layer never comes in.
I've tried everything I can think of, moving the layers around etc, and have deleted and redone the whole thing many times in an attempt to fix this, but I simply don't know what is wrong.
I need to covert multple layers with multiple frames in one scene into a movie clip. I then need to dump this movie clip into another scene. I need to do this many, many times. What is the easiest, fastest way?
I'm animating a brick path forming brick by brick.I used a single brick symbol and repeated it over and over until it formed a path.The file was a lot larger than I expected it to be since I used really only one brick. Does the fact that I have a slew of layers explain why my file is on the heavier side?Would the file be smaller if I used a single image of a complete brick path and animated a mask to reveal one brick at a time?
I have created a layer in Adobe Golive CS2 and inserted a SWF file to play on the webpage. There is also text boxes that are either display always or transition in on a time event. When I preview in the web browser the swf file shows but nothing else does. I have tried to arrange the layers by assigning a number to the "Z" index for the layers that contain the text but it does not work. How do I arrange the layer that contains the SWF file so it is in the back and the other layers are visible??
My testing on the Mac side is pointing toward the Behaviors palette as to the culprit in this issue. As soon as I open that palette in my workspace, the ability to double click on a layer name in the Timeline palette stops. I have to right click and select Properties from the popup menu. Resetting my custom workspace does resolve the problem.
I'm trying to create a menu for my game, it is a tile-based game, and it draws my tile game ontop of everything. So how can I make my menu layer be above the tile game?
I have successfully stopped a loop in one of my layers but it also affects other layers I don't want it to. I have a layer of moving clouds I would like to continue to animate during the playback.
Is there a way to have a stop(); apply only to one (or more) layer(s)?
I have just entered Falsh and for some strange reason none of my layers are named. Not only that, when I draw a circle for instance and I want to move that circle. I have to move the line and the fill seperate... I think this has something to do with the layers not being named. I will be posting a print screen. Click the link. [URL]
whenever I try to make an animation I cannot because it only shows the layer of the timeline and it stretches all the way across the screen. Whenever I put in a keyframe it doesn't show up. How do I fix this? [URL]..
has anybody a solution to this "Distribute to layers" - Bug. Every time i try to use this feature, flash is prompting a failure. As an animator, i am used to use this all the time. if i dont get this fixed, cs4 is worthless to me.
i have common trouble with buttons. I have the map of county, divided to a regions. And if i rool over on the button (region) with AS2 calling animation some region. Problem begin if i need one animation on stage with information strip on top level and i need hide this strip if roll over on all stage. But not played animation in the regions.
I have a flash CS3 AS 2.0 that is composed of 7 layers. I am trying to draw on a specific layer but I can't figure out how.One layer is named Carm and this is where my button controls are;
[code]...
This works to draw a line but it looks like it is on a layer behind all of the others. How can I draw on differnet layers I guess is the question I have?
I was wondering is it possible to move layers into another layer. Can I copy movie clip from one layer and paste them into another layer some where else?
Currently the buttons are on layers ABOVE the mask layer. I've tried just moving them to be under it and on top of the background and they still don't scroll with it. I tried them being ontop of the actual background in the background layer but they still don't scroll.
I've tried tweaking the code (which I will paste below) to add the buttons in and somehow make them scroll too but I know nothing about ActionScript. I can read it and understand it but as far as writing it myself, I'm totally lost.
ActionScript Code: // Keeps animation from playing automatically stop(); // Scrollbar code
Is there any way to refer to a certain layers x value, or visibility, or any of those? And if not, what is usually done to preform an action on a whole layer? Should I just make a new symbol out it?
I have a cascading/collapse flash menu.There are about 7 layers, each one of them a different page that slides and covers the other layers.for some reason, all the buttons on the bottom layer (layer 1 for instance) can be clicked on even when the 6 other layers are ontop of it with their own links and buttons. How can I make it so all my buttons don't shine through all the other layers. I can't slide the layer away to get ride of the buttons because it is still partially viewed when the other layers are ontop of it. I can't figure out why the buttons in layer one can be clicked in layer 2 when its on top of layer 1, or layer 3,4,5,6,7 when they are on top of layer 1-i assumed these layers would block out the buttons and links in the first layer(which is on the way bottom)
I am doing an animation. Before I start I draw a scheme of the final presentation. When I test I have the scheme layer always showing. Can I stop a specific layer to be exported to SWF?
Is there any way to refer to a certain layers x value, or visibility, or any of those? And if not, what is usually done to preform an action on a whole layer? Should I just make a new symbol out it? And what effect does groups have in actionscript?
I am creating a Flash project that involves loading 4 external .swf files (from a library of files), via MovieClipLoader, into one frame of the root timeline, creating a finished layout. Each of these external files sits on its own layer (1 to 4). I want to be able to print ALL 4 layers from this one frame, at once, on one piece of papercan this be done?if so could someone give me example of what the script might look likeI can print just one of the layers using:
I'm illustrating a growing corn plant and want to start close up to the seed, then "zoom out" as the plant grows to 7'. Is there a way to link multiple layers, re-size multiple layers, or something else to achieve this result??
Right now I have the typical timeline where I have several layers but the problem is all the content doesnot display permanently after its run through the timeline.For example layer 1 will play then disappear and then layer 2 will play through and disappear.Is there an ActionScript that I can have for example layer 1 play through and display permanently then layer 2 plays and does the same thing, layer 3... so on and so forth one after the other until all the images are shown?