ActionScript 1/2 :: Drawing On Different Layers
Oct 19, 2010
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?
View 1 Replies
Similar Posts:
Aug 10, 2011
Is it possible to draw a sprite, on a movieclip, on a specific layer? I have a MC I created in the Flash designer, and it has 3 layers on it, background, some layout stuff, and then some text. In actionscript i've created a Sprite object in code, drawn a rectangle on it, and added it to the stage with addChild (called from within the MC). The problem is, the sprite is always being drawn above all the layout stuff I added in the designer. Is there any way to add the sprite to the MC at a specific layer? In this case the background layer. I tried changing the z on the sprite and no effect.
View 3 Replies
Sep 10, 2005
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.
View 4 Replies
Oct 22, 2008
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.
View 4 Replies
Nov 9, 2010
i've tried to simulate a pencil tool, for drawing above a imagem, but the drawing is below the picture. How fix it?
[Code]....
View 3 Replies
Jul 22, 2009
Basically I've got a reasonably complex drawing object in a fla and I want to reproduce it in a class definition using the drawing api. However obviously this is a tedious task, so is there some trick or automated method of doing this?
Last time I needed to do this it was a drawing of an arrow and I ended up writing down x,y,width,height values for everything but this one has curves in it which I don't have experience with drawing anyway.
View 2 Replies
Sep 28, 2009
I cannot get this to work. Without the "var drawing", "var drawing being true or false" and the "if statement", it works fine. But I need to add the "var drawing" so that you can only draw if you turn it on by pressing the "draw_btn" button. Note, I do not get an error, the script "apparently" contains no errors. Here is the code:
ActionScript Code:
var drawing = false
_root.createEmptyMovieClip("myLine", 0);
[Code].....
View 3 Replies
Jan 13, 2012
I've created a drawing tool which allows the user to draw on the canvas, the problem is that if I try to draw over a movieclip nothing happens. Is there a way I can allow for the user to draw over movieclips? For example if I had a background of paper?
Here's the code I'm using for it:
// This code is for drawing the lines on the page
//1.
var drawingLine:MovieClip = new MovieClip();
addChildAt(drawingLine,0);
[code]....
View 8 Replies
Feb 18, 2009
I need to draw on stage about 40,000 4x4 squares each a different color. The color is determined by an xml file. I have this working in as2 and have converted it to as3 the problem is the amount of time it takes to draw is causing cs4 to time out. I have extended the script time out to 60 seconds. In cs3 as2 it would draw the squares in about 15 seconds. I was hoping as3 cs4 would improve performance but seems to be the opposite. I have tried several methods such as adding children and various drawing variations. the bellow seems to work the best, but is still causing flash to crash.
ActionScript Code:
import flash.display.DisplayObject;
import flash.display.Graphics;
import flash.display.Shape;
[Code]...
View 9 Replies
Jun 9, 2009
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.
View 2 Replies
Mar 22, 2011
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.
View 3 Replies
Mar 13, 2009
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.
View 4 Replies
Jan 11, 2010
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?
View 1 Replies
Jun 8, 2009
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?
View 2 Replies
Jun 22, 2009
Can we change the layer's opacity in flash CS4? Such as change the photoshop's layer's opactiy.
View 3 Replies
Jun 28, 2009
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??
View 1 Replies
Aug 24, 2009
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.
View 3 Replies
Oct 3, 2009
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?
View 3 Replies
Oct 15, 2009
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)?
View 3 Replies
Oct 18, 2009
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]
View 3 Replies
Jan 1, 2010
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]..
View 5 Replies
Feb 1, 2010
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.
View 3 Replies
Feb 1, 2010
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.
View 4 Replies
Aug 27, 2009
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?
View 2 Replies
Jan 28, 2010
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
[code]....
View 0 Replies
Dec 4, 2003
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?
View 2 Replies
Oct 19, 2004
Is there any way to set layers programmatically? If there is please please how?
View 5 Replies
Aug 11, 2009
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)
View 2 Replies
Jan 19, 2010
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?
View 2 Replies
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.
View 2 Replies