Flex :: Difference - Compare Text Files?
May 3, 2011I am trying to find a way to compare two text files through Flex and show that diff in the UI. Is there a util or a way to do that?
View 1 RepliesI am trying to find a way to compare two text files through Flex and show that diff in the UI. Is there a util or a way to do that?
View 1 RepliesI need to compare two arrays to see if they are identical.
var _array1:Array = new Array();
var _array2:Array = new Array();
_array1.push(1,2,3,4,5);
[Code]....
So I have 2 dates
Current Date
Event Date
Which traces
Current Date: Mon Feb 9 14:45:43 GMT-0500 2009
Event Date: Mon Feb 9 15:32:51 GMT-0500 2009
Now what I am trying to do is compare those dates and output the difference.
How to compare two audio files to see the difference of them.
View 4 Replieswhat's the difference between classic text and TLF text
View 1 Replieshow to compare the text of dynamically generated textboxes with xml value. the instance name to the textboxes are assigned at runtime.
View 3 RepliesI have a text file called testa.txt,In it it reads simply var2=value1When I test the code the text file loads properly.I have two dynamic text boxes. (This is all in a single frame for the whole movie on one layer)One text box dyn_text displays what it should: value1The second text box dyn_texta is supposed to tell me if what the value of dyn_text = value1 or not (is true) (YES or NO)dyn_texta is always telling me NObut I can't get it to work.Could you please tell me how to fix this?Code here:
Code:
myData = new LoadVars();
myData.onLoad = function(){
[code]........
I'm trying to get the as3corelib to work as when I run my file at the moment it tells me: 5001: The name of package 'com.adobe.images' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. /Users/markbunyan/Websites/craftmagic.co.uk/JPG_encoder/JPGEncoder.as I thought I had imported the as3corelib fine but can't get this to work. Can I simply import the code from JPGEncoder.as???
View 3 Replieshow to compare one text field with another? I would like to compare the words or word count and compare their uniqueness, like, the sentence in one field "We love Flash", and a sentence in the other field "We like Flash" would return a 33% uniqueness.
View 2 RepliesUsing the MovieClipLoader class, what is the difference between loading the external files into a Loader Component or into an empty movie clip. Will one be quicker? They both worked for me, but I've read using the Loader Component is better. Can anyone confirm this? I would think that avoiding components would make things faster/less file size.
View 6 RepliesI want to compare two strings from two text boxes and see if one string in a text box matches the other. Been looking at RegExp but not having a lot of luck getting it to work.
View 2 RepliesI want to check whether string is empty or not when i create object=Shared.getLocal("abc"); it assigns undefinded to the object at the first time
if(object.data.name=="undefnied") {
// is this correct
}
With 5 variables consist of a value, I would need to check if any value between fa to fe has a gap of 6 in integer as in f1=1, f2=0, f3=0, f4=7, f5=10; and between f1 and f4, which has a gap of 6.
var f1:int
var f2:int
var f3:int
[code].....
Let's say I have created a class named Store. This class has several elements such as Name, PhoneNumber, Owner. I've created 2 instances of this class and want to know which values are different. So lets say that Store1 and Store2 are instances of this class.
Store1.Name = "John's Corner";
Store1.PhoneNumber = 111222333;
Store1.Owner = "John";
Store2.Name = "John's Corner";
Store2.PhoneNumber = 444555666;
Store2.Owner = "John";
[Code]...
Is there a way to automatically loop through all elements of a class instance and compare them to the same element in another class instance and return something when they differ?
This might be obvious but I can't figure it out.
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;
}
how to compare values of 2 dates using actionscript i executed this code in my program..
var time1:Date = new Date(Number(fromDate.substr(0,4)),Number(fromDate.substring(5,7))-1, Number(fromDate.substring(8,10)));
[Code]....
the string from the Autocad DXF file does not compare with the string in my AS3 file even though they are absolutely identical.
As a simple example
private function onComplete():void
{
myTextLoader.load(new URLRequest("Drawing1.dxf"));
myTextLoader.addEventListener(Event.COMPLETE, onLoaded);
[Code].....
The question seems to be simple, however it create problems for me. I have a dataGrid with two dataFields: peerID, name. The information in a grid updated dynamically when new user joined the group (I'm creating a chat). I need that information about user deleted from a grid after it's disconnect. So, on "NetGroup.Neighbor.Disconnect": event i want to compare "event.info.peerID" value with all peerID values in a grid and delete info about disconnected user.
I'm trying to use next construction:
for (var i:uint, len:uint = txtDataArray.length; i < len; i++)
{
if (txtDataArray.source[i] == event.info.peerID)
{
[code]....
But it doesn't work at all!
I'v noticed that construction txtDataArray.source[i] (or txtDataArray.getItemAt(i) ) returned [object GridColumn] insead of value. So, I have two questions:
1) How to get the value of exact cell?
2) How to organized info delete after user disconnect?
which tool should i use QTP, RIATest , Selenium for Flex Application Functional Automation Testing. please help me compare them with different advantages and disadvantages.
View 6 RepliesI have some components declared in MXML tags, with some properties and event handlers.For some of them there is the need to re-instantiated, so I came up with the following architecture.Array of components that will be re-instanciated at some poin:
<flint:forms>
<fx:Component>
<login:LoginForm loginClick="outerDocument.form_loginClick()" />
[code].....
The dictionary use strict equals(===) for key comparison, how to change the comparison, so I can use my standard for comparison, for example, I have a class named Student:
class Student{
var id:int;
var name:String;[code]....
I want Dictionary use id to compare if the two keys are equal, not use strict equal(===) to compare if the key is the same.
What is the difference between them and under what conditions is it better to use TLF text?
View 2 RepliesI am trying to get an answer from Input text Field and compare it to the correct answer.here is how my code look like:
//I have a confirm button here
confirm_button.addEventListener(MouseEvent.CLICK, ConfirmFunction);
//I have a correct answer as a String here
var correctans:String = "July";
[code]....
This will check if correct answer contains words in the answer from input text field.But that will result on if I key in "July is great", it will still link to the correct answer frame instead of wrong answer frame.I want the answer to be exact same as the correct answer.
Compare input text with imported XML data problem
View 1 Replieswhat is a difference between in flex Builder and Flex SDK?
View 5 RepliesJust want to clear a very basic doubt am having for quite some time.
Is LCDS and FDS the same
What differences are there betwee Flash CS4 and Flex, besides the GUI of Flash?
View 3 Replieswhat is the difference between skin and CSS??Why it is better to use skin over CSS in Flex.
View 2 Replieswhat the difference between height and measuredHeight is in flex?
After reading a few articles on the adobe site, I'm still non the wiser as to when to use which.
I'm new to Flex and wondering what the difference is between these two ActionScript implementations of the bit.ly API: [URL] One thing I noticed is that one comes in .as files and the other's an .swc file. Is one better than the other for learning Flex?
View 1 Replies