MX Hit Tests Won't Always Work?

Dec 28, 2009

Macromedia Flash MX 2004 I posted this somewhere else - but then realized no one actually uses that forum except to post ads...

Quote:
onClipEvent(enterFrame){
if(this.hitTest(_root.blaze))
_root.floor.speed = -20;
else{

[Code]...

I won't post the file because I'm using someone else's character and it's fine with them, but I doubt it should be here - this is the only code that's a problem, though.

View 12 Replies


Similar Posts:


ActionScript 3.0 :: Making Hit Tests Work With Multiple Instances Of A Movieclip?

May 18, 2011

I seem to have a bit of a problem with getting the collision detection working in harmony with the rest of my code. Basically i have an array that creates multiple instances of a movieclip named mcPlatformStandard with the following piece of code...

Code:
//this variable holds all of the platforms
var platformHolder:MovieClip = new MovieClip();
//adds the platform to stage

[Code]....

View 1 Replies

Setting Up Functional Tests In Flex?

Apr 23, 2010

I'm setting up a functional test suite for an application that loads an external configuration file. Right now, I'm using flexunit's addAsync function to load it and then again to test if the contents point to services that exist and can be accessed.

The trouble with this is that having this kind of two (or more) stage method means that I'm running all of my tests in the context of one test with dozens of asserts, which seems like a kind of degenerate way to use the framework, and makes bugs harder to find. Is there a way to have something like an asynchronous setup? Is there another testing framework that handles this better?

View 3 Replies

Organizing FlexUnit 4 Tests In FlexBuilder 3?

Jan 24, 2011

I've recently started practising test driven development - thus far I've been working on a library project, so I've organised my FlexUnit tests in a separate FlexBuilder 3 project, linking against my library's swc.Now I'm working on a web app and wondering how best to organise the tests for this. At the moment I've put them in a src/test package in the project I'm testing, with the test runner application at the same level as the default application. Is this the best way to do it, or should I have a separate test project and link in the source for the application I'm testing?

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

Actionscript :: Programming Tests For Flash Developers?

Feb 19, 2010

What programming tests do company's give Flash developers?

I would like to level the playing field for developers and recruiters.

I've heard companies give debugging tests with broken documents you have to fix. Flash developers could include Flash IDE users and actionscript programmers.

Everyone would like to know what to expect and understand some of the blind spots we face. A rundown on "what to be prepared for" may be a right answer. Best anecdote or inside scoop on major companies is good too (don't have to use real names, it's up to you). Perhaps you have an opinion of what is fair or reasonable, I'd like to know.

View 6 Replies

Flex :: Writing Integration Tests For App Using SqLite?

Jun 28, 2010

I want to write integration tests for a Flex application using pureMVC architecture.The back-end is sqlite.

View 1 Replies

Actionscript :: Creating A Function That Tests If An Array Contains Something?

Jun 19, 2011

openList = Array([1,1], [2,3], [4,5]);
containss = function (input, arrayData, tellID) {
for (i = 0; i < arrayData.length; i++) {
if (arrayData[i] == input) {

[code]....

This code returns false when openList contains 2,3. When I add trace(arrayData[i]), I get 1,1 2,3 4,5 and when I do trace(input) I get 2,3.

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 :: Boolean Tests Combination Of Values

Nov 12, 2011

The objective is when user clicks on any combination of 2 buttons you would then gotoAndPlay a new page based onthe two specific buttons you have selected? Ideally user would be able to intermix the button combinations. Code below only works for two specific buttons, but doesn't allow to intermix button clicks.

[Code]...

View 5 Replies

ActionScript 3.0 :: Positioning Works In Tests But Not In Browser?

Oct 25, 2010

I wrote an app that uses the stage.stageWidth and stage.stageHeight to position various elements. It works beautifully when I run the swf in the standalone player, but when I upload it to a site and view it in the browser the positioning is all wrong!

View 2 Replies

ActionScript 3.0 :: Boolean That Tests Combination Of Values?

Nov 11, 2011

The objective is when user clicks on any combination of 2 buttons you would then gotoAndPlay a new page based onthe two specific buttons you have selected? Ideally user would be able to intermix the button combinations.

I've attached a simple diagram that visually explains objective of actionscript.

Code below only works for two specific buttons, but doesn't allow to intermix button clicks.

[Code]...

View 4 Replies

Reset Database To Known State Between FlexUnit4 Integration Tests?

Oct 24, 2010

I have a Flex web app that communicates with a Java back-end via BlazeDS. The Flex client is composed of a flex-client module, which holds the views and presentation models and a separate flex-service module which holds the models (value objects) and service objects.

I am in the process of writing asynchronous integration tests for the flex-service module's RemoteObjects using FlexUnit4. In some of the tests, I modify the test data and query it back to see if everything works (a technique shown here: [url]...

How do I go about resetting the database to a known state before each FlexUnit4 test method (or test method chain)? In my Java server integration tests, I did this via a combination of DBUnit and Spring Test's transactions -- which rollback after each test method. But these Flexunit integration span multiple requests and thus multiple transactions.

View 3 Replies

Flex :: Configure Eclipse To Run FlexUnit Tests Automatically?

Jun 8, 2009

I'd like to set up my projects in Eclipse to run FlexUnit tests everytime I save my work.

I found an example with JUnit here : [URL]

How would you do it? Is it possible to run FlexUnit tests without Flash Player?

View 3 Replies

Flash :: Selenium (or Other Record / Playback Tool For Authoring Tests)?

Nov 1, 2010

is there something like Selenium for Flash? Or any other record/playback tool for authoring tests for Flash?

View 3 Replies

ActionScript 3.0 :: Getting Good Collisions Between Balls And Also Using Hit Tests To Trigger Sound

Apr 29, 2010

im building a sound toy that has four balls that can be thrown around and will bounce of each other. when each ball collides i have a chord to be played through a hit test for each pair. im having a problem with getting good collisions between balls and also using hit tests to trigger sound.

View 1 Replies

ActionScript 3.0 :: Collision - Sweep Tests For Fast Moving Objects

Feb 7, 2010

has anyone found an AS3 source/Maths-lib etc that covers not just simple collision tests but swept collision tests (at least swept AABB/circle tests) for fast moving objects? I had a quick look at flixel but even that does not seem to have sweep tests for fast moving objects.

View 2 Replies

Flex :: Flash Builder: Change Default Suite For Unit Tests?

Dec 7, 2010

What are the steps to change your default suite when running unit tests in Flash Builder 4 with PureMVC?

View 2 Replies

Flex :: Continuous Integration - Run Unit Tests From The Command Line On Linux?

Mar 12, 2011

I am setting up a FlexBuilder build under Hudson/Jenkins on a Linux system. I want to execute our unit tests, but do it without using the standard GUI-based test runner.

View 1 Replies

ActionScript 2.0 :: Textarea Tests Fine But When Uploaded It Doesn't Load .txt File

Nov 16, 2005

i've created two textarea fields that pull data from a textfile in the same directory and formats it with CSS. it tests fine on my computer, but when i upload it, it doesn't show the txt file contents. It's just blank. I've been looking around everywhere to try and find a solution, but i can't seem to find anything. Also, the scrollbar on the side of the textarea doesn't load in IE but loads in firefox.

[Code]....

View 8 Replies

Data Integration :: Create Tests Using A Data File For Questions?

Mar 15, 2007

Is it possible to pull questions from a data file into flash without having to create new frames for every question. This would be a multiple choice test. We currently hand type the questions into multiple frames and grade at the end.

View 1 Replies

ActionScript 3.0 :: Dynamic Fonts Don't Work... But Arial And Verdana Work?

Mar 19, 2012

I am trying to defeat my psychological block with dynamically loaded fonts in AS3, and I have an annoying problem. I am creating a clock with a textfield and I am loading fonts from a SWF library: the available classes/linkages are "Arial", "ArialBold", "MyriadPro", "MyriadProBold" and "Verdana".This is the line where I get the class from the SWF, and it extracts the class correctly

Code:
clock = new Clock( { fontClass: assetsLoader.getFontClass("skin", "Arial") } );
The constructor...

[code]......

View 7 Replies

IDE :: Swf Files Work Fine Separately, Don't Work When On Same Page?

Feb 22, 2010

I have run across a strange problem. When I load products2.swf by itself, I can call the two "copy" files and everything works. When I open 0342.swf (the index page), I can switch between the home and products2 pages, but I can't view the "copy" pages.I'm guessing there may be some sort of conflict with variable names, but I have been messing with it for most of today.I have uploaded all of the FLA files to here:[url]....

If you make an swf file out of each of the attached items, and open the 0342 file, you will see what is supposed to be happening.

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "home";[code].....

View 3 Replies

ActionScript 3.0 :: Width Doesn't Work - How To Make It Work

Apr 21, 2010

I have a button object that I need to scale to align with the variable width of an array of images.However, when I set the width in code, the button does not actually become that width. Tracing out the width gives me the correct value, but on screen.. it's off.

I've proved it to myself by scaling the same button object manually in the properties pane and visually comparing. Both of the buttons below have a width of 410.

Code:
navigatorDown_btn.width = 410;
navigatorDown_btn.x = (stage.stageWidth/2)-(navigatorDown_btn.width/2);
trace(navigatorDown_btn.width); // output: 410

View 4 Replies

ActionScript 1/2 :: 2 Buttons Won't Work That Were Created Exactly Like Many Others That Work

Jun 1, 2011

I am using Flash CS4 with actionscript 2 to create an interacitve portfolio.I have 2 text buttons that work when I test them with "enable simple buttons." When I publish to IE these buttons won't work.  I have created over 50 buttons using the same methods, they all work.

View 8 Replies

ActionScript 1/2 :: FLVs Not Work From A HD Like They Work On DVD?

Oct 15, 2010

I have a completed project (AS2) that contains a lot of FLVs.  I burned it onto DVD and it works great on Mac (guide.app) and PC (guide.exe).Here's the web version of the project.http:[url]....Now, months later, I have to provide the project with source files (FLA's) and some other stuff  - so I got an external HD, copied the files from the working DVD onto it.  Running the guide.exe off of the external (connected to WinXP SP3) works just like running it off the DVD  -  EXCEPT for the FLVs which simply to not appear.
 
http:[url]...Everything up to that step works:  When I click on "guide.exe", the "splash screen" opens showing the title and 4 buttons.  These buttons are to choose a language and they work.When I select a language and click its button the GUI for the language with menus appear and they work.  When I click on a topic from the menu, the topic's skin appears but the video inside the skin doesn't play.  Everything works but the FLVs.
 
Even weirder - If I use VLC Player to open an FLV directly - the FLV will play.  That tells me there is some path issue but how can a path change when it's compiled into the SWF?  Besides - the paths from swf to flv has not changed when I copied all the files to the external.why the FLVs will not play on the external the same way they play when on the DVD?

View 9 Replies

Can't Get Links To Work

Mar 23, 2009

i have a flash that I have tried to add my html link to the aboutus.htlm, billboard.html, and contac.html and it is not working? I am still new but would like to email the flash file for someone to tell me why its not working- I added the link for aboutus.html but its not working.

View 6 Replies

Links From Swf Will Not Work

Apr 14, 2009

alright, here is the deal: i have published a .swf AND a macintosh projector file and the only thing the movie contains is one button with a link to a web page. here is my actionscript:

on(release) {
getURL("http://www.google.com");
}

i click on the button and absolutely nothing happens. has anyone ever come across something like this? is this a settings problem?

View 6 Replies

MX My Audio Won't Work

May 14, 2009

Whenever I try to import any .wav, .mp3, or any other kind of file, it always says that there was a problem reading them.

View 2 Replies

Swf Into Fla Doesn't Work?

Jul 23, 2009

I have a swf that is pretty complicated, you can interact with the page and go to different keyframes and it stops and/or starts depending on buttons, but I want to put it in a fla or something so I can put other swfs next to it and build it up and put several of them together as one.

I don't care about making it too complicated, I just want one interactive swf to go to the next compiled swf when that movie ends, but when I try importing it or loading it it just runs straight through without stopping or paying any attention to the scripting.

View 16 Replies







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