Count Lines Of Code In As Files?
Jun 26, 2009
Anyone know of a program or way to point a program or script at a directory and count the lines of text (code) in in and all sub directories? Just curious as we have completed a fairly big project.
View 2 Replies
Similar Posts:
Jul 30, 2009
Quick and easy way to count the lines of code in a project?
View 2 Replies
Aug 1, 2011
How to get the SLOC count for the Flex code in Eclipse?Is there a plug-in similar to "Metrics" for finding information about the Flex porject?
View 2 Replies
May 4, 2010
Is there a way to load a file and waiting for the event listener with out continuing executing other code.
I tried using a while loop with a flag that is set by the on Complete in order to exit the wait loop.
This generates a timeout error. private var loaded:Boolean = false;
function SpriteLoader(filepath:String){
trace("Attempting to Load File:" + filepath);
FileLoader = new Loader();
var FileRequest = new URLRequest(filepath);
[Code]...
View 2 Replies
Jun 15, 2010
So today I got an question: Is there anyway to count lines from an textbox?
View 0 Replies
Apr 11, 2005
I need to count the number of lines that exists in a txt file, from wich I load some content. I think I need to escape the content of the txt to be able to read the "/n", to count them and to have them displayed as variable (for example t_linenumber=...?)
View 5 Replies
Aug 13, 2009
I can't seem to figure out the .numLines property. I've tried calling it on a TextField that was created dynamically. The TextField has multiline set to true and wordWrap also set to true. Any clue why it would consistantly report the number 1? It's being called in a trace statement after the htmlText is set to a string from a xml file.
View 3 Replies
Sep 11, 2010
Is there a tool that calculates various LOC statistics? It would have to support popular languages like C++, C#, Python, PHP, JavaScript, ActionScript, etc and interpret code accordingly.
An example of the statistics I'm looking for:
350 Physical lines of code -- including braces
200 Logical lines of code -- actual code
190 Comment lines
68 Variables
28 Methods/Functions
5 Classes
3 Namespaces
View 3 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
Oct 28, 2006
im having a problem that seems to me that its skipping lines of action script
for (a=1; a<=8; a++) {
for (b=1; b<=18; b++) {
var A:String = let(a);
var B:String = b.toString();
[code]....
but when this is run, it wouldnt go into some of those if statements. So i debugged it to see what happened. and at some points, it just wouldnt go into the statement even though its conditions were true.
View 1 Replies
Jan 5, 2009
I've toyed with this script for some time now and I am having issues removing lines of code and still getting my script to work. Basically I want to keep how this code loads and centers the parts of that code that refer to "mc" but I want to take out anything that refers to "bkg". I have gone through the code step by step to comment out areas but when I get to the very bottom, if I comment out this line:
Code:
function loadBKG():Void {
loader.loadClip("sgbg.jpg", bkgHolder);
}
//Start Loading
loadBKG();
then my script breaks and nothing loads. My main goal is to remove everything that is loading in the background image as I want to replace with better/other code that handles loading a fullscreen image better.
Here is the entire code I am using:
Code:
stop();
Stage.scaleMode = "noscale";
Stage.align = "TL";
[code]....
View 1 Replies
Nov 6, 2009
I've got this Flash project where there are a number of different photo galleries that hold images. Now, I want Flash to be able to see how many pictures are available within a folder so it can create the right number of thumbnails.
At this time, you might think... well there are numerous topics about this issue and PHP is the answer. But I perhaps have a workaround and I was wondering whether it is an 'acceptable' one or if it poses to many problems.
How about I let flash create an 'experimental' loader that loads images rapidly, theoretically till infinity. This loader starts with 1.jpg, followed by 2.jpg, 3.jpg, etc... (also the names of the images inside the folder obviously). There is also an eventlistener added to the contentLoaderInfo stating:
ActionScript Code:
experimentalLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, checkFileEnd);
As soon as Flash is trying to open the file, let's say, 51.jpg and this file does not exist, the Event described above fires. This event will then tell Flash to stop counting since it apparently reached the end. The experimental loader will then be removed and the normal thumbnail loaders will be created up till 50.jpg.
View 0 Replies
Jul 15, 2009
I'm working on a project that apparently has too much going on at once (images, commands, etc). I've pinpointed it down to a single command (which is identical in function to several others right next to it with different variables) and as long as I /* comment */ it out, the program works fine.It doesn't seem to matter which lines I choose to comment out, as long as some of the code is turned off.What are some techniques I can use to make the thing compilesking first:creation of more multivariable functions to reduce overall file size of action scriptshrinking some of the "trace bitmap" images before importing and converting them for the Flashsplitting up the document into a group of small files with a compile program for later (no idea how to do this)setting up a preloader (never done this before and not sure it would work).
View 13 Replies
Jan 29, 2012
I need to extract separate code "lines", where line is a set of characters, finished by ";" + arbitrary number of spaces and tabs + "" and I can't figure the right RegExp to do the trick.
text to extract:
firstUpperCase(str) = concat(
uppercase(
[code].....
View 4 Replies
Jan 7, 2010
I am trying to automate the loading process of mp3's into the soundList array... I tried it this way and for some reason it is not working. But logically it appears that this should work. The goal is to use a for loop and load 24 mp3 files labeled Bds1.mp3, Bds2.mp3, etc... Bds24.mp3. When I do a trace on new_String it does populate Bds1.mp3-Bds24.mp3. Just does not load the mp3's into the array.
var soundList:Array = new Array();
for (var i:int = 0; i < 25; i++) {
var new_String:String = new String();[code]....
View 0 Replies
May 14, 2007
the symbol (or pair of symbols) to extend a line of code to multiple lines? For example, rather than this:
[Code]....
View 2 Replies
Oct 14, 2003
I may have posted this before, but I have searched the forums, and elswhere.Can anyone tell me a way to break up long lines of code, in VB it's possible to continue a line of code, on the next physical line with an _ (underscore).
View 3 Replies
May 11, 2006
how to count the number of image files in a folder?The swf is gonna be launched locally, not on a server... so i guess php is not gonna work... The photos are gonna be named according to the person in the photo, so i can't count using the naming method ( 1.jpg, 2.jpg ) also.
View 1 Replies
Feb 4, 2010
I am trying to reuse the lines of code and it worked fine the first time but when I tried to use the evtObj.target.name it gave me error 1120:Access undefined property evtObj.Here is the code I tried to use:When I test the movies it just runs automatically instaed of waiting for the click.
View 4 Replies
Jul 28, 2011
I'm making an animation wich draws a line after a moving object (circle on a guide line). this circle is a movieclip. and I have many lines to draw up, so i put many of them on separate scenes. I've created buttons from movieclips, and when pressed it draws a line. I got everything to work properly, but when one line is drawn, and you press the same button to get the same line drawn again I get the error code.. #1009 cannot access a property or method of a null object reference.I think that it's because the graphics is still there but i can't seem to clear it before it draws again.. Ive used graphics.clear (); but that just clears all, so when it "draws" again it doesn't show..only the movieclip-animation works. so what is the problem here?my code for the line drawing is:
import flash.display.Shape;
import flash.events.Event;
var shape = new Shape();
[code]....
View 1 Replies
Aug 10, 2011
I drew a line, and named it multiLinesHorizontal_mc (It's not on the Stage, but in the Library and exported to ActionScript3). Now I would like to use that multiLinesHorizontal_mc and bring it on stage (25 Horizontal Lines) with space between each row the gap should be 5.
View 9 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
May 10, 2010
I work as a Flash Developer. There are lines of code I use maybe hundreds of times a day that I have to type out each time. Is there any way to save these custom lines of code to the ActionScript tools library?Or would there be a way to save a custom component that enters the lines of code automatically?
View 1 Replies
Feb 21, 2006
what's the best way to combine these onrelease functions here so i dont have to repeat the same lines of code?
[Code]...
View 9 Replies
Jul 15, 2010
I made this music video, and now I'm trying to give is some UI controls. I have a play and replay button at the start and the end. But I want to have a pause/play button available to users all the time. I know how to do that for one object at a time, but I have around 80 layers. How do I make it so it will pause the whole video (including the music) without a billion lines of code?
View 9 Replies
Jan 19, 2011
I'm trying to make a volume button for my site and it looks something like this:
- ||||| +
i want the volume bar to start filled and when the user hits the minus button it lowers the volume and when it hit plus it takes the volume up well when I go down and up the volume bars start to get crazy...it just works when I go down the whole way and after it goes up the whole way, when I change direction on the midle of the path it jumps some bars...
Code:
volDown.addEventListener(MouseEvent.CLICK, menosVol);
volUp.addEventListener(MouseEvent.CLICK, maisVol);
var cliques:uint = 0
if (cliques == 7){
[code]....
View 1 Replies
Mar 10, 2007
I've found a simple count up script over on Actionscript.org
var count:Number = 0;
var maxNum:Number = 1250;
var num:Number = 1;
this.createTextField("txt", this.getNextHighestDepth(), 0, 0, 100, 50);
[code]....
This works great for my use, but now I am trying to figure out how to make it count down. I've tried changing everything to opposites like count=1250 and maxNum=0 (I think this would be the minNum instead), count+=num to count-=num, and count>=maxNum to count<=maxNum.
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
May 18, 2004
Is it possible to make a count up timer (from a specific date, birthday for exemple) from the count down timer ?
I've tried to change a few things (I'm very bad in programming) but I can't get the date properly.
If not, do somebody know a count up timer (.fla) that I can use ?
View 3 Replies