Flash :: Clear The Old Lines Off The Screen?
Nov 16, 2011
I'm translating a program from AS2 to AS3. I've got a simple animation drawing lines between balls which are moving on the screen, but I can't figure out how to use the clear() to remove the old ones. This is what I'm getting:
[Code]...
View 2 Replies
Similar Posts:
Jun 22, 2010
i've been working with flash for a long time, but there's still something that i don't quite think i'm understanding fully. i see many of these sophisticated photography sites programmed so that the photo fills the whole screen (such asand the photo is crisp and clear on any sized monitor.i know how to set the site to be programmed to fill 100% of the screen, and i know how to "trace bitmap" inside of flash so that the photos work a little better. they then act more like vector images than bitmaps which tend to pixelate when proportions are enlarged. but when i use the "trace bitmap" feature, the flash file often becomes very large size in terms of KB, even when some detailed smaller images are traced.
View 1 Replies
Apr 23, 2008
I have a project i'm doing for school making a game with a tile back ground and duplicate movie clips for the dudes. and when i go to a new empty fram the crap is still on there i need it off i know the remove movie clip thing but the back ground it is made like
[Code]...
View 2 Replies
Jan 27, 2008
i wrote actionscript so that on the screen, when you click, it creates lines going in random way.but when i click somewhere else, the lines i did before disapears and it creats other line where i've clicked.is there any way to save the lines so it keeps them on the screen and to create others somexhere else without deleting the one before?
View 5 Replies
Dec 8, 2011
I got my game to work from the game screen to gameover screen. However, I cannot clear off the objects from "game screen" in "gameover screen"
Here's the code:
package {
import com.greensock.*;
import flash.display.*;
[Code]....
View 2 Replies
Oct 2, 2009
If i have a set of xyz coordinates,
[Code]...
how do i draw them to screen seeing as they will not be straight lines?
View 2 Replies
Jul 30, 2011
I'm working on a game whose background has many layers that each scroll at different speeds.
Inside each layer I have a Sprite, I've started using graphics.beginBitmapFill, but what I've found is that the graphics.clear() function doesn't actually clear the contents set by the previous call to graphics.begin.BitmapFill. Each frame, I adjust the matrix to shift the layer as needed. Then, I call graphics.clear() and graphics.beginBitmapFill() with the adjusted matrix. Since my layers have alphas in the bitmap, I can see the contents that was drawn the previous frame.
View 3 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
Jan 1, 2012
[Code]...
doesnt clear the line when mc1 moved ? How solve tihs problem?
View 1 Replies
Jul 17, 2011
I have an AIR application that will go full screen when the application starts:
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE; The stage size is 2560 x 1024. And I have 2 moniters (1280 x 1024 , 1280 x 1024) When I start the application, it shows my application on one of my moniter only.
I need the left side of the stage to be shown in moniter 1 and right side of the stage to be shown in moniter 2. Currently, both sides are shown in moniter 1, and in moniter 2, it shows nothing but my default desktop. *The blue color line is a divider for better visual purpose. How do I make the left side of the stage to appear in moniter 1 and right side of the stage to appear in moniter 2 when the application starts in full screen mode?
View 10 Replies
Oct 27, 2009
Is a command for AS2 to make my movie file play fullscreen (stretch, fit to screen, anything).
goFullScreen(); is great but it leaves white bars left and right. What's odd is that I'm using Adobe Flash Media Live Encoder and it seems to display a perfect widescreen that I want as an input and output but once compiled in flash, it's more square leaving me with white bars left and right. The frame for the video in flash is also widescreen looking.
edit: I ended up stretching the width of the frame but if there is a better way through a command that would make my life easier so I don't have to adjust to every monitor that I run this on.
View 0 Replies
Feb 11, 2009
My question is what needs to be done in order to make a .swf file go into full screen without falling to a black screen when a movie is played? I have tried coding it, however I come up with the following error.
[Code]....
What should I do to fix this? This is not going to be an HTML file, however, so the initial thought of changing the publish settings does not seem to work this time.
View 9 Replies
Apr 24, 2006
I'm creating a flash site. I want the flash movie to fill the entire browser window. What size should I make the canvas, I've been experimenting with sizes and a canvas size of 750*370 fills my browser well on a resolution of 800*600
How do you accomodate different resolution settings? What's the most commonly used canvas size for this type of project.
View 2 Replies
Jul 29, 2010
I use xp with windows 2000 and firefox.This is used for facebook games and have been advised to clear the Flash cache. Found the page with the information on it but it doesn't make sense where to start the process.
View 1 Replies
Jul 23, 2010
Is there a way to clear a textfield when all else fails? This is from a very long document I can't post. The textfield is on stage and worked fine until this call. There's no error, I just can change text
public function cx(e:MouseEvent):void{
//VARIABLE THAT EFFECT THESE TEXTFIELDS
V1 = 0;
V2 = 0;
[code].....
Tried: FocusEvent, but it didn't work
View 1 Replies
Sep 22, 2010
I have added some movie clips to the stage using addChild method on Some Mouse Events.Now on an event say Mouse Double Click I want to clean the stage.I checked the Stage class from reference it does not have any method called clear.Neither I have stored the references of the objects, so that i can clear them using removeChild()
View 1 Replies
May 4, 2011
I have a question how can I clear/free memory in flash? For example I am finishing game and I want to start from beginning and if I will just jump to the first frame all the objects there are still in this memory, is any possibility to force cleaning memory? Can I free memory for an object? for example I removeChild(something) - and I want to free memory for an object as I will reuse it? How the engine works?
View 3 Replies
Aug 9, 2011
Is there a way to clear shared object when I close Flash player.
stage.addEventListener(Event.UNLOAD, Close);
function Close(event:Event):void
{
mySO.clear();
}
View 1 Replies
Jul 14, 2009
I have a swf with four frames. The first frame loads an external class that acts as traffic controller - looks at the root flashvars being passed in and redirects to frame 2, 3, or 4.
Frame 2 is a basic login screen. There's 5 layers - 2 background layers, the login screen, and a dummy text field. I also have trace statements on every layer, which I have speaking with javascript and writing out to the Firebug console. Since the swf requires database access to know what to do, it only works on a server.
The issue I'm having is that, occasionally, not all the layers on frame 2 load. All the actionscript on every layer fires successfully. What I'll do is clear my cache, and roughly 1 out of every 3 times, the only layer that's loaded is the bottom layer, or the bottom two layers.
I've removed the login movie clip and replaced it with dummy text - nothing. I put a preloader on the first frame - nothing. I created a loader swf to, in turn, load this problematic swf - nothing. I thought it might have something to do with order of rendering so I made those bottom layers semi-transparent - nothing.
Does anyone have any ideas of how to further diagnose this problem? While it's intermittent, it happens often enough to demand a fix.
View 2 Replies
Jan 17, 2011
I am using Flash builder 4 to both build and manage (via cvs) projects. In recent days my designer has been having trouble committing to CVS, leaving a project blocked. I have troubleshooted troubleshot tested CVS and it is working fine (others can commit and retrieve without a hitch).
in an effort to start from scratch - I have removed the flash builder application (dragging it to the trash, its a Mac) as well as using the uninstaller (which does not work as well as I would have thought), but on reinstall - all preferences are still there - CVS connection and all.
is there a file or set of files I can delete to reset all of the prefs for Flash Builder (built on eclipse if that helps)?
View 1 Replies
May 23, 2009
i want flash enquiry form send and clear button script.
View 1 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
Apr 13, 2012
I am trying to delete a single line using graphics.clear() method but it clears all the instance of lines created by lineTo() method. I want to remove a single line upon click from bunch of its multiple instance.
View 2 Replies
May 17, 2011
I have a huge code execution with many loops and pre-rendering processes and I was wondering if there is a way to tell the flash player to take a little pause on the code side and do a render.
Basically I have my execusion that takes a while, and on each step I make a call to a screen and then modify the scale of a loading bar. Now the problem is that the user only sees the progress at the end, I know this is due to the fact that flash does code execution and then render, i tried to make calls to stage.invalidate to force a render but it wouldnt work until the whole execusion if finished either. Is there a way to force flash to render between two lines of code?
View 3 Replies
Apr 17, 2009
I'm trying to design an application where you can draw lines. This is my code.
Code:
onMouseDown = function (){
original_x = _root._xmouse
original_y = _root._ymouse
[Code].....
value_obtained is true when you click the mouse, and is made false when the mouse is released. original_x and original_y are the coordinates for the point of the first click.
How can I make it so that each created line stays on the screen and is not remade?
View 1 Replies
Jun 21, 2010
How can I draw smooth lines with actionscript 3 (using flex 4)?
[Code]...
View 1 Replies
Nov 17, 2011
[url]...
I received a Flash project from an outside source. In it I found that some library items had these grey, dashed guide lines. It seems like they are used for assigning resize boundaries or something. Anyways, i can't reproduce them in my own library elements nor can I find any information on them.
View 1 Replies
Jul 22, 2003
Can anybody tell me how to draw the lines at runtime in flash.
View 1 Replies
Dec 10, 2010
I am creating a full screen projector with flash CS4. In the projector I have more videos, starting from an swf player-
The problem I encounter is this:
The projector starts correctly FULLSCREEN (using AS). The video plays 900x506 correctly. If I click on the player, to get the video full screen, it works. But when I press ESC, not only the video, but also the PROJECTOR looses full screen.
This is a bit annoying. Is there a way to apply the "back to normal size" only to the video? I do not want to prevent the app to be exited from full screen, it's not a problem if the user wants to exit the projector full screen. But not when the user exits the video from fullscreen mode.
How to target only the video?
View 1 Replies