Making Lines In Other Layer
Right now this code works for making lines..._root.createEmptyMovieClip("lines", 1000);_root.lines.lineStyle(3, "0x00FF00",100); _root.lines.attachmovie("Label","CLabel",1); _root.lines.Clabel._x=200; _root.lines.Clabel._y=200; _root.lines.Clabel._width=1000; _root.lines.Clabel._height=1000; _root.lines.Clabel.text="Hello"; _root.lines.moveTo(50,115) _root.lines.lineTo(700,115); for(i=0;i<=15;i++) { drawX(100+i*40,115); }function drawX(x,y){ with (_root.lines) {// _root.lines.lineStyle(constlinethickness, "0x"+_root.datacolor[curr],100); _root.lines.lineStyle(3, "0x00FF00",100); _root.lines.moveTo(x,y-10) _root.lines.lineTo(x,y+10);}}/*with (_root.lines) {// _root.lines.lineStyle(constlinethickness, "0x"+_root.datacolor[curr],100); _root.lines.lineStyle(3, "0x000000",100);*/What I want is that it should only be visible in that layer.Right now it is visible in all the layersI am in Scene1->graph->Layer10Please help
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 10-19-2005, 04:03 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Drawing API.. Lines Stay On Bottom Layer..
when i draw a line with AS it's always on the bottom layer of my flash movie..
example
the square is on my bottom layer in the timeline.. and the rest is all above..
but for some reason.. the lines stays on bottom..
who knows what i'm doing wrong?
thx..
Making Lines Appear
Hello, I am new to the forum and flash.
I am trying to make a flash movie to embed on my website where words appear (like fading in) and then cracks appear in the words. I am familiar with motion in flash and I am pretty sure I can learn how to make the words appear (although any help is appreciated). However, I have been having a lot of trouble trying to figure out how to make lines appear from no where. Please send me some help.
Thank You.
MAKING LINES NOT CONNECT?
..ok, i know this is no problem for u advanced flashers, so please please respond to this post. ok, heres my problem: all i want to make is a stick figure picking up a spraypaint can. so when i make him touch the ground, his arms have to go past his legs, but in the next keyframe when i want his hands to go back up to his waist, half his arm is connected to his leg...i hope guys understand what i mean =. so what i simply want is to make it not connect like that. i already un-checked the "Snap To Object" thing, or whatever...but its still snapping together. so please, any help on my stupid post would be greatly appreciated. thank you to all in advance.
Making Lines Bend
At http://www.heavy-rotation.net (the third box at the bottom) I saw the line dynamically formed between two points. I know how to do that, but how is the line bending when a circle is moved? Anyone...Anyone?
Making Lines Grow
I'm new to flash, and I've been working on a presentation for school. What I'm trying to do is make a line draw itself from one circle to another. I'm kinda stumped on what to do since I'm new to flash and I'm just learning as I go along.
All I can make the line do right now is a motion tween that moves a tiny line from one circle to another and then snap to the two circles, which looks really bad. I can't get it to grow from one circle to the next. I'm using Flash Pro 8 if that will make a difference.
Making A Motion Guid With Lines
Hello,
I am trying to make interface window, when the user clicks a button a window opens(a wire frame on a motion tween) ya know. I have been trying to scale a line from short to long and then go in a horizontal direction, I will post back with and example. Post if you know what I am talking about, it is commonly used in alot of flash sites
thanks pcride
Making Odd Vibrating Lines Like Old Movie?
There's a fantastic Flash site that has this movie:
http://cmart.design.ru/desperanzza/index.html
Each of the little cameo pics have a curving line attached to it that vibrates much like a hair trapped in a film projector or lines in an OLD movie.
Surely, he didn't animate movie clips for the lines to vibrate and move like they do from scratch, did he?
Is there some trick or applet that will do that?
Thanks for any pointers! =)
Liam
GREAT Flash site, BTW, check it out! http://cmart.design.ru/
Making Lines Longer As A Tween
I'm trying to work out how to make a line that's 1 cm long, become 2cm long. However I want to do this as an animation.
Is there any way to tween this or do I have to mask different areas?
Making The Shiny White Lines?
Can someone explain how to make those shiny white lines go through your img like they do in fancy banners and stuff, i dont know how to make a low opacity polygon with a white to transparent gradient in flash
Help With Making Straight Brush Lines
I've seen all of these stick movies and stuff, and I want to make my own. But what I notice is that the brush always makes the line look weird. In the movies that I've seen, the stick people's limb's look perfectly straight!
Line!?!?!
Making A Cascade Of Diagonal Lines
Okay. So, I'm not really a script guy, but I'm plugging along learning the tricks of the trade. I'm fairly comfortable with JS and getting there with AS, but I'm having some problems with the syntax in certain areas.
I need to create a set of diagonal lines for a piece of a design I'm working on right now.
To do this, I have tried using the following code for duplicating the original diagonal movie clip, entitled: 'diag":
// Duplicate Movie Code
onClipEvent (load) {
var oldY = this._y;
}
onClipEvent (enterFrame) {
amount = 47;
while(amount>0) {
duplicateMovieClip (_root.maincontent.diagonals, "diag" + i, i);
i = i + 1;
amount = amount-1;
oldY = oldY + 5;
}
}
I have done the math to figure how many times the diagonal needs to be duplicated, but I'm guessing that even THAT is a hack to some degree. How far off am I? Is this TOTALLY wrong?
Any help would be greatly appreciated,
Thanks,
Greg Huntoon
Making My Lines Form A Box With Actionscript
I have four lines that sit on the stage forming a cross. When the user clicks on a link the lines move and form a box. It happens quickly. I want the lines to form a box moving at a slower rate. Here is my code for the lines that form the box. How can i adapt actionscript to tell it to go slower when forming?
on (release){
_root.upperline._y=56.3
_root.lowerline._y=374.9
_root.rightline._x=500.5
_root.leftline._x=31.3
}
Thank you.
The secret in education lies in respecting the student. {Ralph Waldo Emerson}.
Making A Layer Visible
hey,
how can i make a layer visible once i click a button so that no matter where i am in the time line, once the button is clicked, the hidden layer with my graphic on it will become visible.
thanks.
Making A Layer Invisible
Hello
I'm making a matching pairs game using 12 cards/buttons. I want to be able to remove the card/buttons after the pair has been found is there a script where i can make this button disapear when i return to the main interface? I am a novie but have a basic concept of scripting been pulling my hair out!
thankyou
Liam
[F8] Making A Layer Invisible?
Hey...
Is it possible to make an entire layer invisible using actionscript as it is to make instances invisible?
Thanks!
i.e.
Thelayer._visible = false;
Making A Layer Continuos?
ok here is a newb question...
I am buliding a header for a website that will be the intro for the site. the header will build itself and then i will have constant motion (abstract waves) on one part of the header while other things on the header will remain constant without moving but will remain visable (logo). Can you guys help me out. what i am asking is how do i freeze a layer that is animated while the other animations loop. this may be a stupid question but for some reason i can't figure it out!!!
thanks in advance guys.
Making A Array Of Lines -move At Random
Hello Flash Kit!
This is my frist time visiting this site. What a great ideal.
I am trying to build a interface or intro design for a flash presentation. I would like to use mulit-line moving across page at random speed and transparency.
Can someone tell me where I can find codes to do this?
Thank you
Making One Layer Not Loop While Another Loops?
Download my file: http://www.rdi1.com/personal/banner.fla
If you look at my file you will see what I mean.
The guide animation (top layer) is supposed to loop (and it does). The 'IRA' layer I only want to play once, then stop. I have the objects option set to "Play Once", but obviously I don't know what I'm doing so it doesn't just play once.
Thanks for the help,
Matt
Making A Button Not Work When It Is Behind A Layer
Heres the story...I have button that becomes exposed my moving from behind the timeline layer above it. Now, my problem is that you can still activate the button (which I dont want) when it is hidden behind the above layer. Is there a simple way to be able to make it unoperable when it is not exposed?
Making A Layer Continuos After Animation?
ok here is a newb question...
I am buliding a header for a website that will be the intro for the site. the header will build itself and then i will have constant motion (abstract waves) on one part of the header while other things on the header will remain constant without moving but will remain visable (logo). Can you guys help me out. what i am asking is how do i freeze a layer that is animated while the other animations loop. this may be a stupid question but for some reason i can't figure it out!!!
thanks in advance guys.
[CS3] HELP Making A Boundary Layer For RPG Game
Hello, i am making an RPG game and i am making different layers to amke the world
like right now i have a layer that goes over top of the player for roofs and stuff and then i have one that goes under for floors, and now i just need one for walls. is there any way i can make a layer a boundary layer? so that anything i draw on that layer my character cannot walk through?
if anyone can help me that would be really great! thanx
Making A Layer Continuos After Animation?
ok here is a newb question...
I am buliding a header for a website that will be the intro for the site. the header will build itself and then i will have constant motion (abstract waves) on one part of the header while other things on the header will remain constant without moving but will remain visable (logo). Can you guys help me out. what i am asking is how do i freeze a layer that is animated while the other animations loop. this may be a stupid question but for some reason i can't figure it out!!!
thanks in advance guys.
Making A Layer Continuos After Animation?
ok here is a newb question...
I am buliding a header for a website that will be the intro for the site. the header will build itself and then i will have constant motion (abstract waves) on one part of the header while other things on the header will remain constant without moving but will remain visable (logo). Can you guys help me out. what i am asking is how do i freeze a layer that is animated while the other animations loop. this may be a stupid question but for some reason i can't figure it out!!!
thanks in advance guys.
Making Something In A Movieclip Show Above Its Layer
i have a thing in a movie clip that i want to come up infront of something on my main thingy
layer lay out:
Layer 1:what i want the thing to become infront of
Layer 2:Area Of MC
the thign i want on above layer1 is on a separate layer in my MC
any ideas?
Making Boxs And Lines Appear.. Masking, Tweening, Actionscript, Or All?
I am new to Flash and use Flash MX. I saw a site online that I really enjoyed and would like to make a similar one to it, though I'm not sure what is the best way to do it. The site is
http://www.morimotorestaurant.com/main.html I like how the lines and boxes appear and then the text. My question is, what is the best way to do this? I've seen lines and boxes appear and move around on a variety of flash sites, so HOW IS IT DONE? Is it better to create the entire document and have certain sections reveal with a mask or is it better to use tweening to make it look like the lines/boxes are getting longer/bigger? I have no idea. Any advice is really helpful! If you've done this sort of thing on your site, what was the best way for you?
[CS3] Making A Hidden Layer Visible (During The Movie)
Hello, I started doing flash on Sunday :3, I want to make a small fangame for the popular DS game "Phoenix Wright/Gyakuten Saiban"
Anyways, my goal is to create a small menu that is activated by a button near the center of the screen. I only want this menu to occupy half the screen, so that the player can see the top half.
My approach is to make a layer with the half sized menu, and make it hidden. Then have a button that when pressed, makes this layer visible, and have a corresponding button that makes it hidden again, is this possible? Or should I try another approach?
Thank you very much.
[CS3] Making A Hidden Layer Visible (During The Movie)
Hello, I started doing flash on Sunday :3, I want to make a small fangame for the popular DS game "Phoenix Wright/Gyakuten Saiban"
Anyways, my goal is to create a small menu that is activated by a button near the center of the screen. I only want this menu to occupy half the screen, so that the player can see the top half.
My approach is to make a layer with the half sized menu, and make it hidden. Then have a button that when pressed, makes this layer visible, and have a corresponding button that makes it hidden again, is this possible? Or should I try another approach?
Thank you very much.
Making Photoshop Display Layer Coordinates
Not so much an AS issue, but is definitely AS related. Does anyone know how to make photoshop display layer information, so I can grab a layer's XY position, and size? (so I can use it directly in AS) Or is that impossible
Making Buttons Work That Are Not On Scene Layer
Hello,
Pardon me if this lingo sounds funny but I am new at this. I am trying to create a web page were there are buttons on a symbol off of the Scene. I want to move the time line when that button is pushed. However I can figure out the script to direct the button that is not on the Main Scene to do the movement on the Scene timeline.
If this makes any sense it's a miracle but I thank you if you can help me with the scripting lingo.
Bernie
Making Buttons On A Lower Layer MC Inactive When Another MC Is Playing.
Hi there,
On my stage I have two movie clips. One is a navigation and the other is a blank movie clip that loads the results of the navigation.
When something in the navigation is clicked the blank movie clip loads a movie which then covers the navigation and you have to click 'close' within that clip to get back to the navigation... however when the blank movie clip is loaded you can still see the mouse change eto a hand when it's over where navigation links are below (hope you're still following)...
Is there a way for me to make those buttons INACTIVE when the blank movie clip is loaded overtop?
Making Object Turn Color As It Goes Over Item In Layer Behind It
I'm quite new to the Flash environment, so there might be an easy answer to this question. I have a white vector object moving over a black background. It moves across the screen this way until it goes over a small white box on a layer. Is there a way to make the moving object turn black as it enters the white area? In other words, so the highest contrast is maintained dependent on what color is behind it?
Your help would be greatly appreciated. If you want to see what I'm talking about e-mail me (vervelde@dordt.edu) and I can send you an flv file.
Frustrated in Iowa
How To Find Number Of Lines Of Dynamic Text...and How Many Lines In Textfield
is there any way of finding out how many characters will fit in a dynamic textfield?
I have a textfield that is dynamically loaded with text. Sometimes the text is long and i need scroll buttons, but when the text is short i would like not display the scroll buttons.
How can i figure out if text is short enough not to display the scroll buttons?
oh..to make it even more complicated; the font of the text is not always the same. I use textformatting to display header-like lines in the textfield.
Bad Images - Straight Lines Are Jagged Lines - Why?
Hello -
Wondering if anyone had a solution --- I have some images for a portfolio - almost all of them have a diagonal line that's supposed to look straight, and in flash it's looking jagged and wiggly.
I began with 300 dpi images - saved them to the proper size, no compression, saved PNG's, then imported to Flash with lossless (jpg,png) setting, created Graphic Symbol with all graphic information in the upper left quadrant, and it is in an even space on the stage (no 113.4, but 113.0)....
I did a lot of research to make sure I got the best quality images & have taken all of these steps and it's still coming out crappy....
Any ideas? Much appreciated...
Erasing The Top Layer With A Line To Show The Layer Beneath It
I was curious if anyone would be able to help me out. I have a layer that is a menu with some buttons. When a button is hit, I'd like to do this: A line from above the menu will go down the page, and as it goes down it apperas to erase the menu layer and show the layer beneath it. So as it goes down, what is beneath the line is still the menu page but above the line is the information (movie clip) that should be shown to that corresponding button. Any one have any ideas?
Thanks
Have a Happy New Year
Ty
Creating A Delay/Pause, Frome Layer To Layer.
Hello,
I'v been having trouble with my newest project, i'm trying to create a pause from it going from 1 layer to the next without using frames.
If i use the frames my project just messes up, so im trying to create a pause of going from frame 1 to frame 2 to frame 3 up to 20.
If someone could help me i'll be really great full.
Layering Problem: McText (layer 1) Over McText2 (layer 2)
Hi,
Quickie: Have 12 layers. Base layer has some text (mcWelcome) and a popup on layer
8 with some text plays over it. When I do a a href link to bring up the next mcTextfield combination
on top of the layer 8 the new layer goes under all other layers even though its on layer 10 (it has an arrow and a textfield).
In Design mode it is on top but when it plays it (layer 10 mc) plays under even the first layer.
What am I doing wrong? No matter where I drag the layer containing that new movie clip it goes underneath. Made
a new layer and it does the same thing adding text with ActionScript.
I've even done the "bring to front" and it has no effect. Why is the new mcText alway below the other layers?
Any ideas?
Thanks,
Thanks,
Control Audio In Layer 0 From Movie In Layer 2
I have a sound (mySound) playing from a movie in layer0 (default movie). this movie has loaded another movie into layer 2 using loadmovienum.
I want to stop the sound from playing while in the layer 2 movie. I have tried using _layer and _root but I can't reference the sound.
Can someone tell me how to reference the sound and either stop it or set the volume to 0 from within layer 2 if the sound object is in layer 0?
thanks in advance
Can You Put A Guide Layer Inside A Masked Layer?
Here's the situation: I've got a flash animation in which one character is dreaming. I put a balloon over his head. I want to put a bicycle inside this balloon which comes into the balloon, circles around once and then exits the balloon. I've masked the ballloon so that the bike isn't seen before it enters the balloon, but now I want to put a guide layer above the bike layer so that the bike can circle around a bit before it exits.
I don't see any info on this in any of my Flash books. Is there any way to put a layer, with its guide layer above it, inside a masked layer?
Thanks for the help.
Behavior In One Layer Automatically Carries On To Any Layer
I hate to be a pain, but I am really trying to learn a lot by following tutorials and this problem is reoccuring with every tut I try...
I am following this tutorial: [L=http://www.entheosweb.com/Flash/preloader2.asp]
I am stuck on this (have redone it at least 17 times following verbatum but something isn't right):
Now come back to your bar layer, Push the rectangle to the left as shown below
Go to Frame 40, keeping playhead on frame 40, pull the rectangle onto the other side as shown below
My problem is that when I move it in frame one, it also moves in frame 40... and when I move it to the other side in frame 40 and go back to frame 1 it is no longer in the original position... I can't get my head around this!!! I am using Flash 8 Professional if that's any help!
I am inserting frames and not keyframes, just like the tutorial says...
_root.layer.layer? Simple Question
so im having some problems getting the right item targeted and feel that im writing the as wrong.. so here is what i have.. the stage. with a mc .. then inside that a button.. so wouldnt it be like this?
_root.mc.button
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.
Moving Background On 1st Layer Static On 2nd Layer
Hello I'm a beginner in flash, can someone please show an example code of how to have a smooth slow moving background (image), and then on top of that have a static image (that makes the border of the movie, like a picture frame) with the middle being transparent so you can see through the moving background.
Can this be done with the flash rectangle tool so I don't have to use an image for the border?
I managed to make the 1st layer have the moving picture in a loop with motion tween, but in the 2nd layer my "picture frame" does not even show when I test the movie.
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
|