ActionScript 2.0 :: Count Lines Of Code In A Project?
Jul 30, 2009Quick and easy way to count the lines of code in a project?
View 2 RepliesQuick and easy way to count the lines of code in a project?
View 2 RepliesAnyone 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 RepliesHow 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 RepliesSo today I got an question: Is there anyway to count lines from an textbox?
View 0 RepliesI 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 RepliesI 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 RepliesIs 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
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?
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.
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]....
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 RepliesI 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].....
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]....
the symbol (or pair of symbols) to extend a line of code to multiple lines? For example, rather than this:
[Code]....
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 RepliesI 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 RepliesI'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]....
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 RepliesI 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 RepliesI 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 Replieswhat's the best way to combine these onrelease functions here so i dont have to repeat the same lines of code?
[Code]...
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 RepliesIs 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]...
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]....
I've got some legacy code that I really don't have time to rewrite. Is there any way to mark a code block so that flash player reads it as actionscript 1?
View 1 RepliesPlease is there any open source solution that can help me to secure the source code of a project that is developed by too many developers from being copied of stolen by the team member?My Boss asked me to find a solution that put all the project in the server and allow all the developers to develop on the server from their computers, is this possible?
View 1 Repliesconvert this code from AS2 to AS3?
Code:
Timer = function () {
};
[code].....
How can I use this Code Snippet in my Project File to see the result?
[URL]
Code:
private function tint (clip:Object, newColor:Number):void
{
var colorTransform:ColorTransform=clip.transform.colorTransform;
colorTransform.color=newColor;
clip.transform.colorTransform=colorTransform;
}
I would like to tak emy existing AS3 or Flex project and compile it to run on native C++ code. Is there a way to do this? What sort of solutions exist? I do not want to change my AS3 code.
View 3 RepliesI recently started working in FDT (used to work with FlashDevelop) and I encountered a very strange problem. When I make a new project everything is fine, I can code without problem in as3 and also using the flixel engine is no problem. However, as soon as I checkout a project from subversion, the code assist breaks. The code still works, the program executes without errors. But instead of giving me a few option when I type "FlxG." it just gives me a lot of options regarding 'metadata'. I have looked at a lot of places but I can not find the answer anywhere.
View 1 Replies