ActionScript 2.0 :: Create One Box With 4 Lines And Without Fill?
Dec 20, 2004
im newbie here and in AS, and dont speak english very well :$ ..
i want create one box with 4 lines and without fill.... i have no idea to do this...
using line tool to do this, the lines rise when i apply the resize script..
View 7 Replies
Similar Posts:
Dec 20, 2004
i want create one box with 4 lines and without fill. using line tool to do this, the lines rise when i apply the resize script..
View 8 Replies
Oct 30, 2009
I know that this could be solved a bunch of different ways, but I feel like I'm on the wrong track. [code]...
View 3 Replies
Aug 29, 2009
I what to make a function that is drawing a square without the fill only the lines in refresh(sometime fast, sometime slow). And I don't have a clue about the starting point of this function.
View 1 Replies
May 11, 2009
how to take a display shape, and have the lines & fill randomly change colors? I'm sure this can be done
View 1 Replies
Jan 24, 2011
I'm trying to create a very simple flash:An input text field, in which the viewer is to enter a simple word (in this case, let's say the word is "earth.") Beneath this text field is a button.When the button is clicked, flash should detect whether the user entered the word "earth"- if they entered "earth", they get sent to frame 2 of this movie. If they typed something else, then they get sent to frame 3.Now, this should be pretty simple, but every attempt I've made has failed, and every search for a simple tutorial/example of how to compose the script meets with no results. Currently, this is the script I put on the button (The input text field has been given the instance name of "answer_1"):[code]
View 2 Replies
Mar 2, 2011
how can i implement a bucket fill tool in paint application in flex?
case FILL:
var b:BitmapData = new BitmapData(width, height);
b.draw(this);
b.lock();
[Code].....
View 1 Replies
Apr 26, 2007
Is it possible to create 2-3 drawn lines in actionscript?Wanted to make a dynamic chart, but so far when I add coding for the second line, the first no longer works.
Trying to nest the lines in movie clips didn't work.Is this a restriction of the createEmptyMovieClip?I'm using....
_root.createEmptyMovieClip("lineFirst",0);
lineFirst.lineStyle(12,0x000000,100);
lineFirst.moveTo(0,0);
View 2 Replies
Feb 7, 2010
if it were possible to apply a tiled image fill to text to create a texture.
View 3 Replies
Jul 19, 2011
I am trying to create a banner with one background and four lines of text.I need to make a 4 line animation where one line of text is displayed, then it fades out, then the other line of text fades in, and out again,then the 3 rd one and finally the last one and then it loops. The first 2 lines are working fine but not the rest.I am new to flash and trying to learn it thru tutorials.. I am stuck here.. Do we want to write any script for this or any other way to do it..? I couldnot find any tutorial for this.
View 6 Replies
May 2, 2009
I can easily make a dynamic image with one or two lines of symmetry.
My normal approach is to take a square image and mirror it once too make one line of symmetry like this:
and then to make two lines of symmetry I can just mirror that image with one line of symmetry as well, making something like this:
images with 2 lines of symmetry work really well for 2D tessellations, but for 3D tessellations I need 4 lines of symmetry.
this is a problem since the way you'd normally do this is to basically fold the square in half both ways diagonally, which gives you triangles instead of rectangles.
this makes it harder to use rotation matrices to mirror the source image.
has anyone come up with a good way to give a source image that you can loop through every pixel quickly and mirror it in such a way that it has 4 lines of symmetry?
i have this completed so far, but i need the texture map to have 4 lines of symmetry, not 2 like it currently does.
[URL]
View 1 Replies
Feb 21, 2007
I have a movie clip that is dropped onto my main scene, and I have the AS below as the frame's AS.
The concept is simple: Create dynamic empty movieclips, position them, fill them, make them clickable. The code under "//////////////////////////////////////Code below here doesn't work" isn't working. The code worked fine when attempting to do this on my main scene, but I ran across some interface issues that caused me to put them into anorther MC. I understand that I only included the code for the first button, right now I would like to get at least one working.
Code:
for(var i=0; i<=43; i++){
iDepth = i + 200;
this["z_Brickmc_"+i] = this.createEmptyMovieClip("zBrick"+i+"_mc", iDepth);[code].....
View 6 Replies
Jun 30, 2011
I start to work on new web 3d engine. I call it IGood engine.As can be seen from the video, it is already possible to create a simple application of visualization without lines of code.Base on for alternative 3d.I am waiting your opinions.
View 1 Replies
Mar 4, 2005
I found this flash tutorial about old scratchy movie: [URL]. Tells me to create a movie clip "line" and "actions" and create a line as big as the movie: 400. Then tells me to put this on the action panel of "actions".
Code:
onClipEvent(enterFrame){
_root.line._x=random(400);
}
I did that and it tells me to test the movie so I did but I get this error:
Code:
**Error** Symbol=actions, layer=Layer 1, frame=1: Line 1:
Clip events are permitted only for movie clip instances
onClipEvent(enterFrame){
Total ActionScript Errors: 1 Reported Errors: 1
View 3 Replies
Oct 23, 2010
I am new to flash, trying to do some animation character. I have 2 queries
1. What is lock fill; whenever I am trying to fill a color, it shows lock fill....
2. If I am creating a non regular figure like say with pencil, if I draw some part of it & do other part by later; these will be assumed different objects & I am not able to fill the whole figure with a selected color.
View 2 Replies
Jul 9, 2009
i'm creating a very linear game which will be dialogue-heavy. In fact, there will be little action involved at all. Think a game storybook. I'm using ActionScript 2 because AS3 is just too complicate for the type of newbie that I am. But all I'm trying to do is set up dialogue between two characters in my game with an image of the speaking character to the left of the textbox. Something very much like this:I considered creating arrays for the dialogue but my problem is that if I create an array for every time two characters exchange three lines of dialogue, I would end up with over 300 arrays. Not my cup of tea.
So, instead, I focused on this. I created a function called speak. Speak pulls two parameters: charNum and charText. CharNum is a number which specifies which frame of the charPic instance should be displayed, showing which character is currently speaking. CharText is simply the dialogue the character will speak, which will be displayed in the dynamic textbox with variable name 'dialogue'.The following code is an example of what I have at home. I'm at work trying to get help, so I don't have the actual coding. Therefore, small errors may be present. I'm looking more at the overall functions guiding my code.
[Code]...
You see, AS2 sees these as I believe what is called synchronous functions, meaning they run at the same time. Therefore, the second speak function overwrites the first one before the user presses the space bar to go to the next one. See the issue?I've tried to seek help on this issue (and other before), and I keep getting told about arrays and setInterval. But my problem is that I've tried it all. I don't see a good array tutorial about this type of thing, and setInterval doesn't function like I'd want as well. Instead, it seems that from what I've read and tried, setInterval is for setting a delay up for a certain amount of time. I don't want that. I want a delay to occur until a button (namely the space bar) is pressed.
Like I said, this seems like a fairly common thing to do (stringing together dialogue in a flash movie/game), but I have seen no tutorial nor other help through all my Google and forum searching. A little push in the right direction would be appreciated. Like I said, I've figured out everything else my game needs from preloaders to game inventory to animation effects.
View 1 Replies
Aug 17, 2011
I have been working on a map viewer based blitting technique. As part of the map I need to draw approximately 50000 lines and performance is currently really poor.
Code: Select allvar movie:Shape = new Shape();
for( ... )
{
movie.graphics.clear();[code].....
View 2 Replies
Nov 15, 2009
My code is on the main timeline.I call a function loop to draw lines between them.The lines are drawing between the right x, y values BUT between those values on the main stage, not those values within the kite.For example, dot1_mc is at x100, y0 inside kite. the line that should go from its center, draws from stage x100, 0.How do I draw the lines inside kite so that they draw between the dots?Heres my code that draws the linesPHP Code:
function loop():void{ lineDrawing.graphics.clear(); var a:Point = new Point(kite_mc.dot1_mc.x, kite_mc.dot1_mc.y); var b:Point = new Point(kite_mc.dot2_mc.x, kite_mc.dot2_mc.y); var c:Point = new
[code].....
View 4 Replies
Mar 12, 2010
I have a scratch card. Basically I'm masking a movie clip with an empty shape. I can draw on that mask and thus my movieclip will become visible. I have also attached the fla.
Now what I would like to achieve is that when you fill a percentage of that mask, let's say 70%, I automatically fill the whole layer so that all of my movieclip becomes visible (as mask is fully filled).
View 2 Replies
Dec 26, 2011
I'm trying to create spinning rays in actionscript to use in my website.Below is the rough idea of what i'm trying to create.Is it possible to create absolutely with 0 images.Following is the actionscript code in which i couldn't figure out how to add gradient, transperant background and little radial gradient to create glow effect.
Code:
function CreateRays():Shape {
var ray:Shape = new Shape();
ray.graphics.beginFill(0xFF9900,.5);
ray.graphics.lineStyle(1,0xFF9900,.5);
[code]....
If you paste above code in 1st frame of your scene with nothing on your scene, it will give you sweet rotating rays!
View 2 Replies
Oct 9, 2009
I need to create a simple multiplication grid where children will fill the grid. Its an empty grid at the begining, when they start the time start as well.Its a grid of 10 x 10. when they enter the last number, the grid should show what they did wrong and the time they spend. It's an idea of how it could work but if anyone has something that looks like this.
View 6 Replies
Jul 13, 2009
1. I selected the Rectangle tool, and made sure Object Drawing Mode was not selected.
2. I picked colors for stroke and fill, and drew a rectangle.
3. I clicked the Selection tool, then dragged around the rectangle to select all of it.
4. In the Property Inspector I clicked the fill color icon. I clicked the square with the slash, to designate no fill. The fill disappears.
Everything has worked so far. But now I decide I want a fill color after all. I select the shape again. But clicking the fill color icon in the Property Inspector and the Tool panel has no effect on bringing a fill color back to the shape. I can't figure out how to do that.
Actually, I could restore the original fill color using Undo, or the History Panel. But it seems there must be a way using the Property Inspector.
View 2 Replies
Jul 21, 2010
I am trying to create a mindmap where the user can drag points about the screen. I have gotten as far as drawing the line via actionscript, and drag+drop the points (defined as movie clips on stage). This is the existing script - I don't know how to get the lines to follow the points. Something to do with ENTER_FRAME or updateAfterEvent?
var line:MovieClip = new MovieClip();
line.graphics.lineStyle(1,1);
line.graphics.moveTo(ptOne.x,ptOne.y);
[code]....
View 1 Replies
Aug 23, 2009
I have a main SWF that loads an external SWF with addChild. the external SWF loads fine but when i click the combobox in the external SWF I get 2 errors:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::DisplayObjectContainer/removeChild()
at fl.controls::ComboBox/close()
[code].....
View 5 Replies
Nov 15, 2007
How the hell do you pull this off? [URL]
Those Flash banner ads that expand to fill the screen when rolled over?
View 7 Replies
May 29, 2009
The following are two screenshots of something I'd like to create:
Notice how each 'blank' is a drop-down menu. If a user selects the correct one the text in the drop-down becomes green and a box appears at the bottom that tells them they got it right. As soon as they go to select a new one the box disappears and re-appears with a message saying either they got the next one right or wrong. If they get it wrong it turns red. There is no backend data that needs to be processed; it's just the interaction I want to create.
how I might go about doing this in Flash/ActionScript?
I know how to create the interface itself I believe with the drop-down component but I have no idea how to program this.
View 7 Replies
Jul 28, 2009
Half a year ago I started working on this game. One of the aspects of it involves clicking a point on the screen and a path made of 32x32 squares will be drawn from its current point to the clicked point. Well at the time I jsut needed to do a quick prototype so I did something like this.[code]That worked perfectly then and simply filled the path with that color. However now I want to break away from a solid color and fill the path with 32x32 .png tiles. If it helps to better visualize picture it similar to an RPG world maker or an RTS level editor.It's been a few months since I've looked at actionscript.
View 1 Replies
Apr 17, 2009
I have created a thermometer.How to fill the thermometer upto a certain point.
View 6 Replies
Mar 13, 2010
CS4 - Colour fill for on clicking?
View 2 Replies
Apr 26, 2010
I am doing a site for my senior project in college and I was wondering what the best way to use a background image in flash is? I'd like the background image to fill the browser all the time, so resizing the browser will resize the background. Basically, is there a way to make the stage size the background? I'd like to be able to shift the background via AS tweening, but I want to make sure that what's on the stage is what's in the browser and can't see beyond that.
View 1 Replies