Actionscript 3 :: Configure FlashDevelop For Unit Test Builds?

Aug 16, 2011

I'm using AsUnit for unit-testing my current AS3 project. My Main() is basically:

if ( UnitTest )
runUnitTests();
else
runMainProgram();

where I change UnitTest before building depending on whether I want to run the program or run the unit tests. Is there a way that makes it easier to switch between the two modes?

Optimally, I'd use F5 for building with UnitTest=false and another hotkey for building with UnitTest=false. What is the closest I can get with FlashDevelop?

View 2 Replies


Similar Posts:


Php :: Configure FlashDevelop To Debug In Web Browser?

Feb 26, 2012

I'm following directions to set up a debugging in FlashDevelop in web browser.I'm getting confused on 'Configure your project' step. It says:

Open the Project properties and change the "Test Movie" option to "Open Document...". Click on the button which should appear, and enter bin/index.html (path to html page, relative to project root) in the prompt.

What is the bin/index.html file? Is it where my SWF is loaded? I currently have a SWF that loads from a PHP page. So I pointed it to my PHP project's index.php page build project. After build I get a generic Windows message that Windows cannot open the file with that extension.

Is it possible for me to debug my SWF from my PHP page which loads it?

View 1 Replies

Actionscript 3 :: Configure An RTMP Channel With FluorineFx In A FlashDevelop Project?

Aug 29, 2011

I am trying to get a RTMP messaging application working in FlashDevelop and FluorineFx. I am used to connecting with a NetConnection in FlexBuilder 3 with some hackery but I am drawing a blank getting this to work with FlashDevelop. I have a FluorineFx website with a configuration file WEB-INFflexservices-config

[Code]....

View 1 Replies

Flexunit - Unit Test Flex Applications?

Jul 26, 2010

Flex is a client-side language and based on events. How can such events be mocked to allow unit testing?

View 2 Replies

Actionscript 3 :: FlexUnit: Unit Test File Upload?

Mar 27, 2012

Can I use FlexUnit to unit test a File Upload and delete? Are those actions good examples of unit testing? I'm a little new to unit testing and trying to figure out what parts of my UI are suitable for unit tests.

View 1 Replies

IPhone Slow Ad Hoc Builds

Oct 19, 2010

Does anyone else experience publishing ad hoc builds for the iPhone (from flash cs5) taking a long time (10 minutes +) ? Whereas it would only take a couple for a (non ad hoc) test build. I suspect it might be stuck in a loop somewhere.Or is it simply a matter of waiting patiently whilst the provision is being approved (or whever it's waiting on)

View 1 Replies

Actionscript 3 :: {FlashDevelop} Building IOS With AIR And FlashDevelop

Aug 3, 2011

I'm having trouble using the following tutorial and flashdevelop template to build a flash project for iOS. [URL] Whenever I compile my project (using FlashDevelop 3.3.4) I get an error from adl.exe saying "Error loading initial content". Using the iOS applicationpackager.bat, I get an error saying: application.xml: error 305: Intial window content SWF version 11 exceeds namespace version [URL]I'm using air 2.7 and Flex 4.5.1 on Windows XP.

View 1 Replies

Actionscript 3 :: Flex SDK 3.5 Builds Bigger Swfs?

Mar 5, 2010

I have an application which is almost entirely in actionscript. When I build it using Flex SDK 3.5 its size is roughly 378 KB, While Flex SDK 3.0 outputs a swf with roughly 355 KB. What could the reason be?

View 1 Replies

Actionscript 3 :: CI-friendly Automated Builds For As3/flex Projects

Jan 27, 2012

We're currently developing a flex web app and our build situation is far from ideal. At present we're (as in individual developers) just building using FlashBuilder and deploying manually. The programmers are currently screaming bloody murder for two reasons, though:The lack of CI is like going back to the stone ageWe don't much care for FlashBuilder(Note: We're only using FlashBuilder because it was the easiest way to set up a flex project in conjunction with Away3d and get it building / rendering correctly -- it's a stopgap solution).As a predominately .NET development shop, we're used to doing continuous integration as well as continuous deployment. Ideally, we'd like to get something comparable to this for our flash projects without tying ourselves to a particular IDE.

Requirements:

The build process must be:

.. runnable via the commandline
.. runnable on both developer and CI build machines (and certainly not requiring an IDE!)
.. preferably as IDE-independent as possible (pragmatism will kick in though; if this causes a lot of friction we'll just pick one).
.. able to run on Windows (we develop using Windows)

We don't mind a touch of duplication or a few manual steps (e.g. tarting up the build scripts if we add a new project via an IDE, or generating one configuration from another if tools exist), but the less duplication / maintenance required the better.

View 3 Replies

Flex :: Test Spark Components In FlexUnits Visual Test Environment

Sep 17, 2011

I'm trying to test a custom Flex 4 skinnable component, using the FlexUnit UIImpersonator class. If I run my tests from a FlashBuilder Spark only project everything works fine. If I try to test from a project with the mx component set on the classpath I get a "getElementIndex not available in non Flex 4 projects" error.Can I unit test spark components in FlexUnits visual test environment while still having the mx component set on the classpath?

UIImpersonator delegates it's method calls to a "testEnvironment".The implementation used for this "testEnvironment" is decided by the VisualTest EnvironmentBuilder class and the FlexEnvironmentBuilder class. If the FlexEnvironmentBuilder class can find the "mx.core.Container" on the classpath it returns a MX environment, else a Spark environment. Only the spark environment has valid implementations for Flex 4 relevant method calls on the UIImpersonator - like the addElement method.

View 1 Replies

Professional :: Buttons Don't Work When Test Movie/Test Scene?

Aug 4, 2011

My buttons only work when I click on them on the stage while having the "enable simple buttons" option on. They do not work if I try to "test movie," "test scene" and publish it to a SWF. Nothing responds whenever I am in these modes. I am using Adobe Flash Professional CS5 Actionscript 2.0.
 
This is the code that I put in for the buttons:
 
[Code].....

View 5 Replies

ActionScript 3.0 :: Movie Works In Flash Test But Not Html Test?

Aug 30, 2009

i have a movie that has worked fine in past during Html test but ive been doing some dubugging using the flash test latly and it runs fine here but when i go back and try to test in Html mode no errors come just the movie never fully starts (starts up about as much as if there was an error).

View 5 Replies

Add 1 Unit Every 0.83 Seconds?

Apr 20, 2010

I need to do a heartbeat counter. This is a simple counter that should add 1 unit every 0.83 seconds.Its a simple web page with a 10 digit number counting the heartbeat of aparticular person (50 years old).

View 4 Replies

ActionScript 2.0 :: Test Movie Works But Test Scene Does Not

Mar 19, 2009

I have two scenes in my flash file and in scene 1, first button takes you to frame 2 where movie clip is -works

on (release) {
gotoAndStop("scene1",2);
}
second button takes you to frame 3

but on scene 2 that performs same function as scene 1, the first button

on(press){
gotoAndStop("scene2",2);
}

instead of going to frame 2 goes to frame 3. and the second button goes correctly to frame 3.that happens when i test scene! when i test movie all buttons work properly.

View 1 Replies

IDE :: Unit Is XML Motion Measured In?

Sep 19, 2009

I output a motion to an XML file using the Export Motion XML command. Then I applied it to a new graphic, and it came out wrong. After 323 frames of motion, the graphic is now at the wrong position, about 15 pixels to the left of where it should be.

When creating the animation, I had "snap to pixels" turned on, so every position of the source graphic is at a round number. When I look at the values in the generated XML file, it's full of sequences like this:

[Code]...

View 1 Replies

ActionScript 3.0 :: Comparing Unit Or Int To Number?

Mar 21, 2011

Is it bad to compare a unit or int to a number? Should they always be kept apart?
PHP Code:
var i:int=10;var n:Number=20;if(n>i){}

View 1 Replies

Flex :: Access The Test Name Of A FlexUnit 4 Test?

Jan 21, 2010

In FlexUnit 1 it is possible to access the name of the currently-running test using the TestCase.getName() method because all tests subclass TestCase. In FlexUnit 4, however, there's no base class for tests; the tests are identified by annotations. So, how can I replicate the getName() functionality in FlexUnit 4?

View 2 Replies

ActionScript 1/2 :: Unit Moves Smoothly To The Destination?

Jun 10, 2011

I got this code and i whant to make it so unit moves smoothly to the destination i got told to seach key words like LiteTween and built in tween
 
unit.onRelease = function(){ _root.onMouseUp = function(){ unit._x = _xmouse; unit._y = _ymouse; delete _root.onMouseUp; }}

View 7 Replies

ActionScript 1/2 :: Add Unit Function - Array Class?

Aug 5, 2011

Is there a way to add the unit what gets attached to the array as unit4 and has an instance of unit4 and then if u press it again as unit5 with instance of unit5 and so on. This is my array.

var unitA:Array=[unit,unit1,unit2];
var unit = 0;
function addunit() {
if (cash>=50) {
var unit = attachMovie("unit", "unit"+units, _level0.getNextHighestDepth(), {_x:100, _y:100});
unit += 1;
cash -= 140;
}} unit_btn.onRelease = addunit;

View 7 Replies

Flex :: Unit Testing Event Handlers

Jul 24, 2009

What methods do you use to unit test event handlers, particularly if they require information from the event (such as mouse coordinates, or the target of the event)? Is the most common practice to just refactor the behavior into a method that does the lifting while the handler just extracts information from the event, or are there effective ways to simulate event dispatch in FlexUnit or Fluint?

View 1 Replies

Flex :: Include Unit Tests In A Library?

Nov 24, 2009

I'm working on a general code library for ActionScript 3.0 called as3lib which includes several extensions to the core API and some useful functions. I've written several unit tests (using FlexUnit) to make sure everything is working correctly.

What is the best way to organize these tests in the library? Currently, I have all my code in src/ and my tests in test/ but I've set up a secondary Flex project to run the unit tests. I am also manually adding and removing the test files from the library when I want to run the tests.

Preferably one where the compiled library doesn't include the test files but I don't need two separate projects to test them.

View 4 Replies

Flash :: Unit Testing Frameworks Or Libraries?

Feb 5, 2011

What are the best unit testing frameworks or libraries for AS3 programming? Specifically for projects that do not involve Flex, only Flash.

View 1 Replies

Actionscript 3 :: Write Unit Tests For Dictionary

Jan 20, 2012

This is kinda related to my other question: flex dictionary bug? The HashMap has a method getValues() which returns an array of values:

[cODE]....

the loop for (var key:* in map) iterates the keys of the dictionary map, but it seems its implementation does it in some random way. What is the best way to write a test since I don't know what the array returned by getValues method will contain? I thought I could do it by calling the sort method, and compare the values, is there a better way to do it?assertEquals(map.getValues().sort(), "value A,value B,value C,value X,value Y,value Z");

View 1 Replies

ActionScript 3.0 :: Layers - Move All Those Objects Together As A One Unit By Some Pixels?

Oct 11, 2011

if there is an option to refer to a layer as a named object. so if I have a layer named 'myLayer' I can to control about the alpha amount, for instance, of all the objects (symbols, movieclips etc.) that inside this layer or to move all those objects together as a one unit by some pixels.

View 5 Replies

ActionScrip :: Unit Testing :: Reliable Mocking Framework T?

Jul 4, 2009

I'm looking for a reliable mocking framework for ActionScript. I've been using mock-as3, but I'm annoyed with what I feel is a hack-ish solution for triggering events. There are other a few other reasons why I'd like to have some options, but not sure if I necessarily need to go into them. I've also looked into Mock4AS, but the interface appears to be cumbersome.

View 3 Replies

Flex :: Unit Testing Puremvc Based Application?

Jul 10, 2010

I have a flex application written using PureMVC framework.Now,I want to write tests.We are using FlashBuilder 4.Is FlexUnit sufficient for testing? Are there any issues you have faced while writing tests?

View 1 Replies

Actionscript 3 :: Unit Testing With A Singleton Using Inversion Of Control

Jan 26, 2011

I am developing an AS3 application which uses a Singleton class to store Metrics in Arrays. It's a Singleton because I only ever want one instance of this class to be created and it needs to be created from any part of the app. The difficulty comes when I want to unit test this class. I thought adding public getters and setters would enable me to unit test this properly and would be useful for my app. I have read that changing to a Factory pattern will enable unit testing or using Inversion of control. This would of course make it more flexible too. I would like to know of people's thoughts on this matter as there are SO many conflicting opinions on this!

View 1 Replies

ActionScript 3.0 :: Convert XML String To Hexadecimal Unit Color

Apr 14, 2008

I have an xml file containing color values to be applied in a series of shapes in my swf. However, when I try to assign the values, it doesn't work, it recognizes only a string and assigns the value 0 to the colors.

Code:
//my_color.xml
<color_list>
<color_1>0xFFBB00</color_1>
<color_n>0xAA33FF</color_n>
</color_list>

The xml is then parsed into a variable called xmlColor.
//.fla
var c1:uint = xmlColor.color_1;
trace (xmlColor.color_1) //0xFFBB00
trace (c1) //0

View 7 Replies

ActionScript 3.0 :: Animation - Unit Vector To Draw The Line Little By Little

Nov 3, 2010

in the script that i have made...i use unit vector to draw the line little by little

[Code]...

is there other way to make the animation line like that?? i just learning AS3.

View 1 Replies

ActionScript 3.0 :: Make Sure The Unit Type Does Round Fractions Correctly?

Feb 28, 2011

how can I make sure the unit type does round fractions correctly?
 
var test:uint test=10.75;
trace(String(test)); // 10
 
I'd like to obtain 11 instead.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved