Actionscript 3 :: Algorithms : Implementing Custom Hash Table Based Dict?

Aug 19, 2011

I am learning programming abstract data types. Trying to build custom hash table based dict.SO far I've created a class place holder.

public class HashMapDict implements IDict
{
private var _map:Array;[code].....

What I am thinking about is to use cryptography libs for hash generation. But I am a bit confused with how it should work. e.g. Tried to look on several libs like as3crypto (http:/url]....) and it seems to produce hash in a way I don't really think can be used for indexes in arrays.

View 3 Replies


Similar Posts:


Actionscript 3 :: Custom Sorting Algorithms' Speed

Sep 22, 2011

I'm doing a project where I manually create sorting algorithms.After several tests I found out that my heapsort is way quicker than quicksort (I think it should be the other way around), my selection sort is also faster than insertion sort.I'm testing using integers from -100 to 100, randomly generated, 5000 values in an array (I modified this number several times, still the same problems).My quicksort isn't in-place.I thought that maybe flash's recursive functions are slow? my heapsort uses loops, unlike quicksort. That's just a hypothesis though. I start a timer, run the class's exec() function, stop the timer and calculate the elapsed time.[code]

View 3 Replies

ActionScript 3.0 :: Rename All Variables, Functions, And Custom Classes To Some Random Hash?

Sep 28, 2011

does one protect this? I mean, Flash Cs5 ide has this little "protect from import" option but I don't think that's enough.I mean, the only thing I can think of is a scrambler.Something that would rename all variables, functions, and custom classes to some random hash. So something like myVar would be renamed to x41dDefh5kjFCe. It would be like a big "lol have fun" to someone who might manage to go that far.Still, that isn't enough. I mean, anyone else know of any good ideas or programs? Just trying to protect my work

View 9 Replies

Media Server :: Start With FMS For Implementing Web Conferencing In A Web Based Application

Jun 7, 2010

I have requirement of web conferencing for my website. for implementing that I have gone through google.Many suggested that go for FMS. I have never worked with FMS earlier.And requirement is urgent.Some people write that u hv to coding in Action Script 3 and I dnt knw Action Script. currently i need one to one conferencing...one to many can be done in later phase.
 
I m working as a developer from last 4 yrs on Microsoft Technologies. how to go about and is it right decision to start with FMS or any other alternative is there. What tools and which edition of FMS will be required?

View 1 Replies

Java :: Implementing Role Based Authorization For Existing App In Flex

Jul 9, 2011

I have an application that is coded using Flex 3 on UI side and java @ the service layer, along with BlazeDS. Now we need to authorize the users accessing the system based on the roles that are defined for them in the database, e.g. : say a user with role guest should not be able to access Admin tab on ui and also should not be able to do any operations other than viewing the data displayed on dashboard. Also the point to note here is that roles can be created dynamically by Super users from UI. I came across this link which describes how to perform Role Based Authentication & Authorization. With this approach I need to define the roles in service-config.xml but since my roles are not pre-defined I cannot go with this.

View 1 Replies

ActionScript 3.0 :: Custom Components - Implementing Live Preview?

Oct 6, 2010

I want to develop custom components (that show up in the Components panel) which a Flash designer can drag onto the stage and use the Component Inspector to customize it to their liking (inspectable parameters, I believe they are called). I'd also ideally like to implement a Live Preview so they can see their adjustments live on the design stage.

Does anyone know a good resource for learning the correct way to do this? I've found one that used to work in CS3 but now that I am on CS5 it isn't happening for me: [URL]. There's also the "official" Adobe blog post, I think the previously mentioned article gives it an appropriate shout-out for being "long and cumbersome". It seems that this should be a pretty popular technique.

View 4 Replies

Flex :: Want To Make A Custom Table?

Jun 21, 2011

i want to make a table using action script 3.The description of the table is that table should have three parts one is headersecond bodythird footer.Every part of the table mean header footer body also tables which can contain more than one row.

View 3 Replies

ActionScript 3.0 :: Table With Points - Sort Dynamic Texts Based On The Variable

Feb 10, 2010

Updated question: Is there a way to sort dynamic texts based on the variable (or simple value) they represent? Old dribble: I'm looking for some pointers for a problem with making a table. It may be that I have started off in the wrong direction - anyways, I'm stuck now. The .png displays my objects, and how they are connected/grouped. The highlighted (red) shows the variable containing the points.

The pink with the most points should be displayed higher than the rest, and 2nd most points should ofc be 2nd highest. I have tried taking the red variable out of the pink, but I could not think of a way of moving the red variable based on its own value. I'm going to edit the red variables (as the world cup goes on), and there is no need for cookies and such. And if there is a simpler way of doing the setup, let me know. I'm using SwishMax3 (SM2 up till a few days ago, so I'm more used to as2..)

View 5 Replies

ActionScript 3.0 :: Pass A Collection A Variables And Return A Result Based On The Filtered Results Of A Mysql Table

Nov 28, 2010

I'm trying to develop a simple as3 flash program that passes a collection a variables and returns a result based on the filtered results of a mysql table. Here is my as3 file:

[Code]...

No value is returned. If I replace with '$test4' and '$test5' with numbers such as 1 and 17, a value is returned. Where am I making a mistake?

View 1 Replies

Actionscript 3 :: Dict[obj] Pulling Wrong Info At 35-36 Xml Node?

Feb 27, 2010

I'm not sure how to explain this, but why isn't this code pulling the correct image and icon file? It continues to pull the wrong info at the line 35, which makes all other data one node behind. Even when I delete the three locations below, it still gets the xml wrong. Why would it be doing this? I verified the xml data and made sure all the files were in the correct folder. For example, this is a result from a trace:

[Code]...

View 1 Replies

Flex :: Algorithms Use For Audio Volume Level?

Jul 22, 2009

Let's say I have a slider that can go between 0 and 1.The SoundTransform.volume also ranges between 0 (silent) and 1 (full volume),but if I use a linear function,let's say SoundTransform. volume = slider.volume, the result is rather not pleasing.I really haven't studied the human ear,but I overheard once that human perception is logarithmic, or something similar. What algorithms should I use for setting the SoundTransform.volume?

View 7 Replies

Actionscript 3 :: Vector Graphics Flood Fill Algorithms?

May 1, 2011

I am working on a simple drawing application, and i need an algorithm to make flood fills.The user workflow will look like this (similar to Flash CS, just more simpler):the user draws straight lines on the workspace. These are treated as vectors, and can be selected and moved after they are drawn.user selects the fill tool, and clicks on the drawing area. If the area is surrounded by lines in every direction a fill is applied to the area.if the lines are moved after the fill is applied, the area of fill is changed accordingly.Anyone has a nice idea, how to implement such algorithm? The main task is basically to determine the line segments surrounding a point. (and storing this information somehow, incase the lines are moved)[code]

View 3 Replies

Actionscript 3 :: Javascript Implement Math Functions Using Its Own Algorithms Or Outsource To Cpu/processor?

Nov 20, 2011

ActionScript3 states the following:

Note: The Math functions acos, asin, atan, atan2, cos, exp, log, pow, sin, and sqrt may result in slightly different values depending on the algorithms used by the CPU or operating system. Flash runtimes call on the CPU (or operating system if the CPU doesn't support floating point calculations) when performing the calculations for the listed functions, and results have shown slight variations depending upon the CPU or operating system in use.

My web application works with very large and small numbers that I suspect may see a difference depending on which machine is running it (especially with mobile devices whose processors aren't as powerful as desktop machines'). My question is, is this behavior a function of the language?

That is, I assume some languages implement their own algorithms for the above functions, and so may be more consistent (except for differences in round-off errors introduced by the choice of processor/CPU that would exist for all languages).

Anyone know if Javascript has it's own algorithms, or does it outsource them to the CPU/processor like ActionScript?

View 1 Replies

IDE :: Make A Table In Flash And Enable The Column Headers On The Table To Sort Column On Click?

May 4, 2009

How to make a table in Flash and enable the column headers on the table to sort column on click?I have seen some tutorials with mySQL but I'd like to start with something basic. Is a sortable table possible using just Flash and AS 2.0?

View 1 Replies

Flex :: Event-based Interaction Between Two Custom Classes?

May 25, 2010

I have 2 custom components, which have their own nesting hierarchy ... One is container for another. I have to "familiarize them" with each other. The way I'm trying to achieve that is using global events (one side is firing and the other one is catching):

Application.application.addEventListener("Hello", function (data:Event):void{
// .. some actions
});

[Code]...

Then should be created the connection between container and it's child.

BUT, the only thing I could acheive is passing a reference to the Container in the DynamicEvent. Is there any chance that I could access the child at the event-handler function.

View 3 Replies

Flex :: Cannot Move Custom Component Based On HGroup

Oct 30, 2011

I have created a custom component based on spark.components.HGroup and it works mostly as needed, but I have this minor problem: I can not move it.

Maybe someone will look at my simplified test case below and spot my error?

Here is the screenshot of my 3 custom components, representing chat bubbles:

Here my custom component Bubble.mxml drawing black text on green background:

<?xml version="1.0" encoding="utf-8"?>
<s:HGroup
xmlns:fx="http://ns.adobe.com/mxml/2009"

[Code]....

View 1 Replies

Flex :: Custom Component Based On A Group Disappears

Nov 28, 2011

I have a problem with a custom component based on a Group. Actually, I want to create a section component (a container with a border and a title). I created a path so that the border doesn't hide the label (title):

[Code]...

View 1 Replies

ActionScript 2.0 :: Custom Component Based On Class With Labels

Oct 17, 2003

I am trying to build a component based on a class where when you enter a label at design time (in the properties panel), it displays on the component on the stage. This is done in all the FUI Components that have labels and I was wondering if any one knows which part of the code does this.

View 6 Replies

Wordpress Based Site That Stores Information About An Image In A Database Field Called "background" In A Table Called "wp_postmeta"?

Jul 22, 2009

I have a wordpress based site that stores information about an image in a database field called "background" in a table called "wp_postmeta".The 'loader' gets an url such as "/thisImage/background.swf"The "background.swf" should somehow display "background.jpg" instead but since I've changed the field name in the database (from background to temp_background) it doesn't work.I pass variables to the "loader" swf and they are correct based on the new field name but it still isn't working.I need to know if there is anything in the .fla's (and therefore the .swfs) that is pointing to somewhere in the database hard-coded. Basically I need someone to look at them and tell me how they are working.

View 2 Replies

Actionscript 3 :: Flex Custom TreeItemRenderer That Changes Based On Type Of Object?

Oct 7, 2011

I have a Flex tree control that holds a tree full of various types of objects. I'd like to change the label of the item based on this type (and other properties). I'd prefer to do this in a custom TreeItemRenderer rather than via label or labelfunction.It seems that whatever I do, I cannot typecheck nor cast the objects and thus I get [Object object] in the nodes of my tree. Here is my renderer:

public class MyCustomTreeItemRenderer extends TreeItemRenderer {
// Overriding to set the text for each tree node.
override protected function updateDisplayList(unscaledWidth:Number,

[code]....

View 2 Replies

ActionScript 3.0 :: Custom Sorting Based On Values In Item Render?

Nov 10, 2009

I have a question on coustom sort..I have a datagrid for which one coloum has a itemrenderer. I need to sort a coloum based on the value in the item renderer. In the dataprovider for the datagrid i have a numeric value. Based on the numeric value in dataprovider i have a String associated with that value which is shown in UI. I need to sort based on the statusLabel associated with the numeric value.

[Code]...

View 3 Replies

ActionScript 3.0 :: Grid-based Interface (custom Rendering Fonts)

Aug 9, 2010

I am trying to build a experimental interface (menu, text etc) which is based on a fine grid of points, on which i try to render custom fonts and shapes, by connecting the dots. I would store coordinates for characters (O consists of 4 lines for instance) and render them in an animation line by line, character by character.(this non interactive version is my first step)My question is, what would be the best way to store such a font collection, and execute the above. Any Thoughts? all ideas are welcome

View 1 Replies

Flex :: Xampp / Wamp Based Apache Server Custom Reply?

Feb 20, 2012

How can I send a custom response upon a custom request on a xampp/wamp based Apache server upon a connection to a specific port?I'm trying to reply to the � a flash app is requesting in order to allow a crossdomain http GET request.The flash policy request, is made to port 843 by default and i'd like to keep it that way.The port should get a � (ending with a null char,� is just for the reference) and replying with something like:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only"/>

[code]....

As far as i know, the request should be return as a plain text, although Content-type, might be needed as well.I've tried using the following:[URL] and although it listens to the port and accepts connections, it doesn't reply with the specified xml upon request.I wrote a simple C# web server which listens to port 843, and serves the aforementioned policy - it worked out just fine, however, when using a SecureSocket connection for a secure connection (i.e opening a socket to a HTTPS/SSL protocol) - the request that is sent is encrypted using the hosts certificate. As far as i know, there's no way of listening or acquiring the servers certificate and decrypting the data via an external app hence, the only way is to somehow 'teach' Apache to respond with the crossdomain policy after a proper request is sent via an appropriate port.

Another idea i have is to read the server's certificate file stored in the Apache directory regardless of what happens on the server itself, though imo it's an overkill.

View 1 Replies

Flash :: Embed A Custom SWF Based Audio Player Into Facebook Wall Posts?

Nov 12, 2010

How to embed a custom SWF based audio player into facebook wall posts? I want to start posting mp3 links on my and other walls and at one point I saw someone do this and a mp3 player was embeded in facebook to play the audio. When I post a link all I get is the link people can click. How do I: 1. make a flash playable on the FB wall via the clickable play thumbnail. 2. Make a mp3 playanle on the FB wall via the mp3 player fb uses.

View 1 Replies

Flex :: Make PopUpManager Correctly Show Custom Component Based On Spark TitleWindow?

Jan 28, 2011

I use this code to create and show a MessageWindow:

var newTitleWindow:MessageWindow = PopUpManager.createPopUp(contextView,MessageWindow, true) as MessageWindow;
newTitleWindow.text = message;
PopUpManager.centerPopUp(newTitleWindow);

[Code]....

There is no nested components displayed when I run my app.

The debugger shows they are created and visible.

To my "amusement" the components are shown when I replace s:TitleWindow with mx:TitleWindow.

I really want to use spark TitleWindow.

View 1 Replies

Actionscript :: Create A Hash Of A String?

Feb 10, 2010

Is there a built in method in Actionscript 3 that allows you to create a hash of a string. Like MD5 and SHA1.

View 2 Replies

ActionScript 2.0 :: MD5 Hash Decryption In Flash?

Feb 28, 2007

See %subj%. Does anybody know how to make it or could you point me on some web or example

View 8 Replies

Flex :: Stop TabNavigator From Adding HASH To URL

Dec 21, 2009

I have a TabNavigator component that keeps added a hash (#) to the URL. I need to prevent this. I have it set to historyManagementEnabled="false" but it is still adding the # to the URL when it initializes. The reason why adding this hash is such a problem is because, I am using .htaccess to give my URL a pretty URL like domain.com/designer/category/product/id when the page is really located at domain.com/product.php?pid=id So in order for my assets to load correctly I had to add a base tag like this:
<base href="[URL]" />
But since I have this base tag set, whenever my flex app adds the # to the URL, the page is now automatically redirected to the homepage. Any way to stop the TabNavigator from adding the # to the URL.

View 2 Replies

Actionscript 3 :: Find All Hash Tags Within A Text?

Jun 2, 2011

I need to find all hash tags in this text using ActionScript 3 (AS3):

Lorem ipsum dolor #sit_amet, consetetur
sadipscing, sed #diam-nonumy
eirmod tempor #invidunt ut labore #et

What's a good method to do this?

View 3 Replies

Flex :: Mobile Data Security - Hash Key?

Jul 20, 2011

I am developing a flex application for mobile devices. This application will sync customer data down from an api to the mobile device. But once on the device I plan to hold it in sqlLite DB. How can I secure this data? I know that I could hash it but I guess that that someone would be able to decompile the application and get the hash key. I am new to flex and mobile development.

View 2 Replies







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