ActionScript 1/2 :: Something Wrong With Comparison Result?

Aug 16, 2010

I have a problem that bugging me and hindering me from advancing to next part of the game. I'm very much behind schedule because of these weird behavior. (Well I blame my ignorance for not properly coding them)
 
I'm trying to do a simple click-and-match game where there are 18 items to flip but only 10 items (5 pairs) are the valid answer. The problem lies with this part:

[Code]...

View 3 Replies


Similar Posts:


Flash :: Comparison Of Authoring Tools?

Jun 22, 2010

Are there a good overview/comparison of Flash-authoring tools somewhere online?

By "Flash-authoring tools" I mean "Flash Builder vs. OpenLaszlo vs whatever", not Silverlight or JavaFX.

View 1 Replies

Actionscript 3 - Comparison Of Flash 3D Engines?

Oct 28, 2010

I am currently digging into the whole Flash 3D stuff and I am quite unsure which engine I should use. I really prefer haXe for development but ActionScript 3 is also fine.My current candidates are:

Papervision3D
Alternativa3D
Sandy 3D (only engine with native haXe version)
Away3D

View 1 Replies

Flash :: Javascript - Comparison Of Web Widgets

Nov 11, 2010

I want to create a photo browser web widget that can be embedded in a web page (e.g alice's blog) but I am not sure whether I should go the flash or javascript route. Flickr went with a flash based widget. Why would they do it in flash over javascript? why would you chose js based widget over flash.

View 1 Replies

Flex :: Comparison Unable To Compare?

Jan 26, 2011

Unable to get ll = -15 even when the Flex builder console show correct result. Which part could I go wrong?

//b-a = (3) && c-a = (6)
if((naArray[i+1]-naArray[i])<=3 && (naArray[i+2]-naArray[i])==6) {
ll=-15;
}

View 1 Replies

ActionScript 3.0 :: Array Comparison Isn't Working?

Jan 24, 2012

I try to compare two array

if (comparisonArray == restriction)
{
trace ("Its a match");

[code].....

View 4 Replies

ActionScript 2.0 :: Random Array And Comparison

Jan 21, 2008

Pattern_Array (created by a random function that pulls from Words_Array and stores the index)Now I want to create another array called Choices_Array that will compare Pattern_ Array to Words_Array and not repeat any of the Pattern_Array index's in the new array.

View 1 Replies

ActionScript 3.0 :: Warning: 1098: Illogical Comparison With NaN

Aug 18, 2010

I have a puzzle game, in which the user can define how many pieces will the puzzle have. There are some problems in the entry validation. I pass the data in a custom event, and then check if they are numbers, if they're not, then go with the default values.
I'm getting this warning: Warning: 1098: Illogical comparison with NaN. This statement always evaluates to false.
It turns out the warning is right, even despite the traces, which (when I input letters instead of numbers), show both variables as NaN.

Code:
private function initGame(e:MenuEvent):void
{
game = new Game();
game.addEventListener(GameEvent.OVER, onGameOver, false, 0, true);

[code]....

View 5 Replies

Actionscript 2.0 :: Input Text String Comparison

Sep 22, 2010

I've been trying to compare two strings. One from an input text field, input_txt, and the other a variable. For some reason, even though both trace out exactly the same, it's not seeing a match.

[Code]...

View 1 Replies

ActionScript 3.0 :: Numeric Comparison In Switch Statement

Oct 12, 2009

First time working with numeric comparison,[code]But, the code is not functioning. I don't want to use if .. else construct.

View 11 Replies

Javascript :: Any Recent Performance Comparison Among Silverlight And Flash

Sep 25, 2010

I googled it and found some old results like bubblemark.com, link text and link text. But is there any recent benchmarks as all the platforms have been updated. I like to measure the speed of silverlight 4 against the modern and faster javascript engines.

View 1 Replies

Actionscript 3.0 :: Optimization Of HUGE List Comparison: Dictionary?

Apr 8, 2010

I'm on the brink of finishing the first iteration of my first game ever o/ and of course the last item I need to complete is the hardest. I am making a simple word game, and all details aside, the task at hand is a conditional block to determine whether the word the user has entered is real, and in order to do this I need to somehow compare it to a dictionary list.

1 hour of research has quickly opened up an entire universe of data structures, open source xml documents, people willing to take my money for spell checkers, and of course RegExp which I have no experience using (but am willing, and wanting, to learn!). One of the main problems Google is giving me is the addition of the Dictionary class in AS3, which "lets you create a dynamic collection of properties, which uses strict equality (===) for key comparison on non-primitive object keys..." So finding previous literal dictionary uses is tough.

I soon found taking a dictionary txt file (118619 lines) and converting it line by line into an array takes 3 minutes on my beast of a laptop gaming rig (Asus W90), and while I knew this was a bad idea, it was a nice learning experience (to give me a gauge of processing abilities).

I am wondering whether using XML is an appropriate alternative, or if there is a way to externally access a dictionary somewhere online. Looking at the XMLList Class available I see text() and toString() methods; yet I still see heavy iterations in accessing the dictionary.

Which brings up the next point: easiest way to find a String match. I understand that comparing each word one by one would be tedious for the program, so maybe splitting up the list by letter (or maybe string length, looking at the file), or first and last letter.

View 2 Replies

ActionScript 2.0 :: Date Comparison - Different Format In XML And Flash File

Nov 5, 2008

I'm loading data from XML file, and in XML file Date will format like YYYY-MM-DD, e.g. 2008-05-05. So in flash when I'm using getDate() it will display date like 2008-5-5 so that in comparison of date it will not compare.... I'm not able to check 2008-05-05 to 2008-5-5.

I'm getting date from following code
var tdate= new Date();
var date_str:String = (tdate.getDate()+"-"+(tdate.getMonth()+1)+"-"+tdate.getFullYear());

View 1 Replies

ActionScript 3.0 :: Open-source Flash 3D Engine Comparison?

Mar 26, 2009

For some reason, I'm having a hard time finding a recent, side-by-side comparison of the various pros and cons of the different open-source flash 3D engines, such as Papervision3D, Away3D, and Sandy3D. Specifically, I'm looking for comparisons in the areas of

ease of use (and documentation) performance (framerate with lots of polygons) stability (bugs, glitches, graphical artifacts) currency (for lack of a better word - is the project gaining or losing team and community members?)

language(s) used (is it in as2, as3, flash-player-10 as3?) features (lighting and shadows, import models and animations of various formats, click detection, collision detection)

This is reasonable, right? I don't want to essentially pick one at random, only to find myself in trouble later on. Working with papervision3D, I'm already frustrated by the documentation, or the in-name-only nature thereof - most functions only have headers listed and no descriptions of what they do. Personally, I like to be able to pour through the documentation and figure out how to do whatever I want, and I feel like I'm fumbling around in the dark, having to read the source and try to understand all the implementation details. Who's used multiple open-source flash 3D platforms?

View 8 Replies

As3 :: Flash - Loader Library Comparison: Bulkloader - Loadermax - Queueloader

Mar 21, 2011

i've been using different loaders in the past, here are the most popular:.

[Code]...

which one is the best one and for which challenges?

View 1 Replies

ActionScript 3.0 :: Switch Function With Comparison Operators Inside Cases?

May 13, 2011

I'm having difficulties with my switch script. Below is the code:

Code:
public function resultValue():void {
switch (_calcSwitch) {
case 0:
break;

[Code]...

View 5 Replies

Actionscript 3 :: Comparison Between Mate Swiz And Robotlegs Frameworks For Flex Development

Jul 5, 2011

My company is willing to reffactor its biggest and heaviest project introducing some kind of framework. Are there good online source/issue/blogpost with comparison of these 3 frameworks - Robotlegs, Swiz and Mate?

View 4 Replies

ActionScript 3.0 :: Bitmap Data Instance Against Array Of Stored Object - Comparison

Jul 31, 2009

I'm looking for a good method to compare a single bitmap data instance against an array of stored bitmap data objects. I need to figure out how I can compare and arrive at the conclusion that the result either means that the images are of the same object/aka similar or if they are two totally different images. I tried checking threshold of the result of the compare() function but my efforts have failed so far.

View 5 Replies

ActionScript 2.0 :: "group" Value Sets For Comparison?

Apr 24, 2008

I want a simple if...then that basically says this: If it is Thursday, between the hours of 10:20am and 12:30PM, show this. If not, then show this. Here is how I've got it so far:

if (weekDay=="Thursday" && (hour >= 10 && minutes >= 20 && myAMPM==PM) && (hour == 12 && minutes <=30) ){
thisOn.is._visible=true;
} else{[code]...

but it is not correct.how to "group" value sets for comparison, I believe.The "hours" are pulled from a PHP file, and are in 24-hour format.How can I write it properly?

View 5 Replies

ActionScript 3.0 :: CurrentFrame - Error #1176: "Comparison Between A Value With A Static Type Int And A Possibly Unrelated Type String"

May 20, 2009

In my external .as file, I'm trying to say that "if my current frame has the frame label of "enterdone", then go to the frame with the label "enter". The movie clip is called _cedars, and all of my frame labels, variables, etc. are set up properly. Here is my code:

[Code]...

View 4 Replies

Get The Result Of .fla Movie?

Sep 10, 2009

get the better result of my .fla movie,
 
* my flash movie loader is'nt working after uploading it to website (online).

* The Replay option has gone and not showing after the movie ends

* I want the "skip button" to show while movie is loading.

* my movie should automatically start playing after loading and after clicking "Skip INTRO Button" the page should redirect to next page (URL is defined in skip button action script)

View 2 Replies

Actionscript 3 :: Cannot Get Same Result In C#?

Jul 6, 2011

I ams still experiencing some problems with ActionScript 3 and flash and I think it is because of variable scopes what I am trying to do is to make this code iterate exactly same number of times as flash does but the problem is again variable scopes here so please if you have time could you help me with converting it to c#?

[Code]...

View 1 Replies

Flex :: XML HTTPService Result And For Each

Mar 3, 2010

XML is cool in flex, but I have an annoying problem to solve, caused by what I can imagine is a feature. You see, when you have just one tag of something, it creates an object which is not an array. But when finds more than one, it puts it on an array structure.[code]I could check the format of resObj.specifictag (to check if it is has an array) and then duplicate the code (for each case). But -even if it's calling a function- I don't think it is an elegant solution.Well, I hope someone has a good idea on this matter. (I know from experience that SO has much more C++ experts than flex, but well...)The perfect thing would be that HTTPrequest handled every tag in a consistent way (using always arrays... though I'm guessing that that would also have its drawbacks).

View 3 Replies

Actionscript 3 :: XML Gives Undefined Result?

Sep 13, 2010

So good so far in ActionScript language I actually haven't fell in bad condition but still I have one good issue that I can't do!In order at the root timeline everything is Ok when I call the XML childNodes or write the XML class everything its true, but when I call the XML childNodes from root within a movieclip XML

View 2 Replies

Xml :: Getting Unpocessed Php From Httpservics As Result FB4?

Aug 19, 2011

using httpservice in flash builder 4 for a login system, but am getting the result as raw php unprocessed data from server, but when i run the same file in the browser i get a correct xml file am using MAMP, here is the php code :

<?php
define( "DATABASE_SERVER", "localhost:8888" );
define( "DATABASE_USERNAME", "root" );[code].......

View 1 Replies

Php :: Print The Result In A TextBox?

May 25, 2009

On ResultEvent through HTTPService, i need to print the result in a textBox.

private function google(evt:ResultEvent):void
{
Alert.show(evt.result.loginsuccess.person);

[Code]...

View 2 Replies

Make An SWF Read Result From A PHP?

Mar 26, 2012

I need to make a SWF that should show some data from the DB. The DB will be read using PHP.I was thinking that the SWF would get the data by accessing "data.php" and data.php will read from the DB. The SWF would read the XML/JSON/RAW DATA from that file and update it's variables.

View 1 Replies

ActionScript 3.0 :: Up Down And Switch The Result

Jul 25, 2009

I am trying to create a weekly calendar. I have a 'switch' statement that shows the week dates and the name of month the week relates too. I have three functions

1. takes the pc date and converts it into the day of the year. eg between 1 and 365

2. it takes the day from 1. and assoicates it to the week number eg 1 - 52

3. functions that are associated with a previous and next button that use the current week number based on the pc date and count up and down.

This is where I have come unstuck. This is the code for my 'next' button.

Code:
function onClickNext(event:MouseEvent)
{
if(currentWkNum != 53)

[Code].....

View 5 Replies

Skipping To Wrong Frames

Aug 3, 2009

I'm making a flash company profile in the style of a website, except it won't be uploaded online.and i made each button skip to a frame that i already named

some of the buttons are skipping to the wrong frames for some reason,the ones that are not working properly have some pretty big picture files on them,could this be the reason or is it just an action script mistake?

View 1 Replies

CS3 :: Playing In Wrong Order

Aug 26, 2010

I did a banner in flash CS3. I did 8 things and you see them one after the other one. The first time that it plays it goes on the right order but after it finished, when it normally has to start playing again, it plays in wrong order (the first then the third, the last, the second again the first, last and so on), it just does what he wants and not what I did.

View 1 Replies







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