ActionScript 2.0 :: Does Flash Have Hashset / Hashmap Implementation?
Dec 31, 2005
Does Flash have a way of emulating Hashsets or Hashmaps? If it doesn't, what is the best way of storing and quickly retrieving 10-100 thousand entries of data?
View 14 Replies
Similar Posts:
Nov 14, 2011
I am currently pulling data from an s3 storage account. S3 has a flat file structure but gives the impression that the files are stored in directories. how do I convert this String[]
[
"/company_1/user_1/1.txt",
"/company_1/user_1/2.txt",
"/company_1/user_1/3.txt",
[code]....
I am using grails to render the data as JSON for a flex application using an Advanced Datagrid and need a tree like structure, as if you were browsing files on your desktop.
View 1 Replies
Jul 17, 2010
This is working, but is this a good example of polymorphism?[code]...
View 1 Replies
Nov 14, 2010
I'm implementing the RTMP-protocol for my bachelor thesis. I got through the handshake and application connect process and received the play-command from my client which is actually a jw player.But I now stuck with the audio and video-messages. I can't find something about the exactly built-up of these messages neither in the specification nor somewhere else.What should i do with the metadata and header of the flv-file? Can I send the whole tag and audio-/video-data from my file in the RTMP-audio- and video-messages?
View 1 Replies
Nov 11, 2009
I am trying to convert our all-flash website to HTML 5.But since so many users still use IE and other browsers that do not support HTML 5 yet,I am looking for some flash media players that can replace <audio> and <video>. My google skill does not yield good results.The flash media player should dispatch events specified at https:[url]..._audio_and_video_in_FireFox (or at least talk to javascript some how for those events).Do you know a flash media player that can easily be embedded inside <audio> or <video> and talks to javascript for events?
View 2 Replies
Jun 13, 2011
I'm optimizing a PNG encoder for use within Flash SWFs (but I'm writing it in HaXe).I've so far managed to speed things up a fair bit, mostly by using speedy memory read/writes.While profiling my code, I noticed that about 75% of the time is spent in a single call to Flash's built-in compress() method, which uses the zlib algorithm (which uses DEFLATE in turn).I'm not too fussy about compression ratio, but faster compression would be awesome. So, I was wondering if it's worthwhile to try to implement zlib/DEFLATE myself. A little searching has turned up the zlibC.implementation source, but it's not exactly light reading (or easy to port!).Are there any simple implementations of zlib/DEFLATE that I could use as a starting point? I'd rather not have to wade through the two specs, especially since I don't know whether an implementation running in AVM2 could even perform as fast as the native Flash one in the first place.
View 3 Replies
Jul 14, 2011
Does anyone know if there is a (preferably efficient :-) ) implementation of elliptic curve cryptography for ActionScript? The only library I know of is as3crypto, which offers great implementations for symmetric cryptography, hashing and several other cryptography-related operations, but it has only RSA for public key cryptography.
View 2 Replies
Aug 2, 2011
I just upgraded out Flex project to use SDK version 4.5.1.21328 and the Flash Builder to version 4.5
All of the sudden, I'm getting several red tags on the Flash Builder: "could not resolve s:State/fx:Script/whatever to a component implementation"
However, the project builds fine with Maven, and seems to work well too.
Does anyone have any information on how to remove these "problems"?
View 3 Replies
Aug 3, 2011
I've been wondering if it's possible to change the backend of the LLVM implementation from ARM to something else for instance C or C++? Currently Adobe uses a Actionscript3 frontend (which I can't currently find - closed source?) for the LLVM to produce iOS applications. I'm wondering why there isn't more options for other backends? Of course there are limitations to going this route, no loading of external swf files at runtime (to name just one), but the iOS applications seem to manage really well with this feat. I did find this pdf which talks about the AS3 LLVM frontend, but no guidance to where the code is or how to investigate... I just think it's a missed opportunity that Adobe are missing and wondered how much work it would be to do such a feat?
View 1 Replies
Oct 8, 2010
Writing RTMP Streaming Server for streaming AVC+AAC video. And it works fine with rtmpdump. But I can't force it to work in flowplayer and other flash video players.The message sequence after handshake is similar to FMS / RED5 / erlyvideo / haxevideo servers: I've tried a lot of variations.
From Chrome debug console I can see, what all negotiating messages passed to the flowplayer. The last one is onMetaData. And after this the working sample (rtmp://flash.tvwmedia.net/LiveVideo//Live300) gets NetStream.Buffer.Full. And streaming from my server don't get it.
I'm starting with AVC Header message, containing sps/pps. After it first AVC picture passed. After - AAC header and AAC sample. And then AVC/AAC samples. This dumped OK by rtmpdump - I have working flv on exit. But flowplayer and others does not work.
[Code]...
View 2 Replies
Oct 28, 2010
Is there an open source implementation of rtmfp?Is there FMS hosting that support rtmfp?
View 2 Replies
Jun 18, 2010
I want to put an IRC client in my webpage. I know there are many clients but not opensource ones (I didn't find any). So, do you know some free and open source projects to implement an irc client on a webpage? I mean is it a good idea to have one made in flash?, one made in html5?, one made in javascript/php?.
View 4 Replies
Nov 10, 2011
All the program does is you click a button and it tells you how many times you clicked the button in a textfield. Document Class: This is the entry point of the code.
[Code]...
View 3 Replies
Aug 14, 2009
Is something like this possible in Actionscript?
Java:
URLFetcherFactory.setCreator(
new IURLFetcherCreator() {
public IURLFetcher create() {
return new URLFetcher();
[code].....
View 2 Replies
Mar 1, 2011
I have been trying to implement the Round Up Power Of 2 algorithm outlined in the following link in AS3.
[Code]...
The algorithm works great for most of the values I've tested. It is mentioned that this will return 0 when given an input value of 0 which is technically incorrect but I'm ok with that output. What I'm not ok with is when given an input of 1 I get and output of 1. I'm thinking that this must be a caveat of AS3 and its wonky uint implementation but I can't seem to figure it out. I have also tried using the >>> logical shift operator to the same result. My C is a little rusty, but I'm not sure how this would even return 2 in C. Can someone explain to me whats going wrong here? I assume if an input of 1 was a special case it would have been mentioned in the above link.
View 1 Replies
Sep 11, 2011
I have created the following classes for sharing images. They implement an interface, but I need a way of switching between them with user interaction. I've done it the following way:As you can see, service 1 and service 2 implement iSharingServices, and inherit from PolimorphSharing.PolimorphSharing is simply and an abstract class that implements the methods I want public from Service 1 and Service 2. Those methods will then be overridden on the Service 1 and Service 2. Because I need a way to switch the service in runtime, I've created a gateway class that inherits from PolimorphSharing. I can then call it the following way:
private var sharingService:PolimorphSharing = new SharingServicesGW('svc1').createService();
This all works flawlessly, and I can now switch between services with no problem whatsoever. However, I feel there's something wrong about it, so I would like to ask you guys for some advice on how to better implement this.
UPDATE:
Just adding some more insight to this. Basically the idea here is for my client to be able to upload images with various different public sharing services such as imageshack, imgur etc. I want my client to be able to select the service in which the image is to be published to (hence the "switching between them with user interaction" bit of the question.
The method that does the uploading bit, is requestShareImage(), processResults() simply turns whatever gets returned to a unique format, so my client can read off it always the same way. getObject() is my accessor, and onIOError will handle exceptions with any of the public API's
View 1 Replies
Oct 23, 2009
as we know, the Timer class flash gives us does not support any pause/unpause functionality. if you stop and then start a timer, it resarts at the beginning of it's interval period, advancing the repeat counter once. sometimes you want to pause the timer mid-interval, and resume from where you left off I have seen one attempt at a custom timer subclass that supports pause/unpause, but it was pretty shaky anyone actually nailed this?
View 4 Replies
Jun 2, 2009
Testing this function and running it 11k times on a shape where I use:
shape.opaqueBackground = true; shape.cacheAsBitmap = true;
Is extremely slow.. It seems to take 4 to 5 seconds to check a 101 x 101 tectangular area.I'm wondering how it is implemented...I know the code for the SDK is available?I can 'getPixel' from a bitmap to get the very exact color of that pixel in 1/1000 that time.If I happen to have the bitmap data.But with a shape that is already 'treated as a bitmap' (see above) using hitTestPoint can stop your system. It should not be vastly inferior to work with Shapes than it is with bmp data..
View 3 Replies
Sep 8, 2009
I'm trying to implement class ImageViewer in AS2 (Actionscript 2).Here is the full source attached:
[URL]
I receive an error.I'm not sure if container_mc is the instance name of the image that is converted in movieclip symbol.
View 1 Replies
Sep 16, 2009
is there any way to build html WYSIWYG in flex like Microsoft front page? i didn't found any thing on the web like this? second question is : is there any good rich text editor that support text completion function like ( like code IDE 's )
View 1 Replies
Nov 4, 2009
How do I do this in Flex 4?
<mx:RemoteObject id="srv" destination="product" channelSet="{channelSet}"
fault="faultHandler(event)">
<mx:method name="getProducts" result="getProducts_resultHandler(event)"/>
</mx:RemoteObject>
I got
Could not resolve <s:Method> to a component implementation.
When trying to do this
<s:RemoteObject id="roMajor"
destination="MajorSrv"
fault="Alert.show('Remote Object Error')" >
<s:Method name="AddMajor" result="roMajorResult(event)"/>
</s:RemoteObject>
View 1 Replies
Jan 15, 2010
In my flex application I am using httpService to connect to the server, for the response from server I wanted it to convert the http response to flex object, Is there any remote implementation availabe for the above purpose
View 2 Replies
Jan 15, 2010
I have a Flex frontend connecting via RemoteObject to Zend Framework's Zend Amf. This is my only means to transport data between client layer (Flex) and the application and persistence layers (LAMP with Zend Framework).Some ways I can address security are as follows:
I can address TLS by using mx.messaging.channels.SecureAMFChannel in my services-config.xml file and ensuring Flash player is loaded into a HTTPS wrapper and is in fact using HTTPS since the AMF protocol is layered on top of HTTP RemoteObject has a setCredentials method with which I can pass AMF authentication headers to protect user related data. Assuming TLS was actually secure I can expose methods on the endpoint after authenticating the User.I can protect against cross-site scripting and other FLASH vulnerabilities with a properly set up crossdomain.xml how to I protect my endpoint against another AMF consumer? For instance, if there were another AMF consumer (not Flash so not bound by crossdomain.xml and Flash sandbox security) other than my Flex client that knew my endpoint, what would stop it from using methods that the endpoint exposes?
As far as I know I essentially need a way to authenticate my Flex application against my Zend Amf endpoint. After AMF consumer authentication, I have some of the security mechanisms I mentioned above to protect certain pieces of data (like User authentication). I can not embed some sort of authentication mechanism into my Flex swf because the swf is vulnerable to decompilation (the swf can not be trusted). While sensitive data is protected via User authentication the unprotected data is hardly public but as far as I can tell is totally open for public consumption.
View 2 Replies
Oct 15, 2010
We have a lot of objects for which we like to implement a simple toString to output attributes of the object. Some of these attributes may be complex objects themselves. Is there any standard, or simply just a best practice for a style? I'm thinking something like:
[SimpleClassName] { prop1:value, prop2:value }
In which case a nested value would look like:
[SimpleClassName] { prop1:value, prop2:[NestedObject] { prop3:value}}
We are using Java but I find myself asking the same question in most languages!
View 7 Replies
Mar 5, 2011
i created project with flexmojos maven archtype..i used flexmojos:flexbuilder and compile/run with FlashBuilder 4 everything is okay but when i try to compile project with flexmojos i got following error: ERROR] Z:....srcmainflexMain.mxml:[6,-1] Could not resolve < fx:Script > to a component implementation.INFO] BUILD FAILURE
my mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
[code].....
View 1 Replies
Jun 20, 2011
I am just looking design patterns used in Flex. Any value object design pattern and how is it implemented in Flex.
View 3 Replies
Sep 28, 2011
In C#, it's possible implementing interface methods without making implementing method as public. For example,
void ITest.SomeMethod()
{
// ...
}
Is there equivalent for ActionScript3?
View 2 Replies
Jan 24, 2012
I've got a custom CalloutButton component in a package called uiComponents. This custom CallOutButton is needed because I need some more properties in it. This CalloutButton gets added to my MXML like usual;
<uiComponents:MyCustomCalloutButton someproperties here >
</uiComponents:My...>
Now, the enclosed s:calloutContent gets a compilation error, the (almost standard) could not resolve... Naturally, the namespace has been imported.
View 1 Replies
Jul 5, 2011
i need to reconstruct image with this. but not with MOUSE_OVER event but automatic, maybe Timer...And need to do it random...I ,ve got a headache from this...
Code:
//Import TweenLite
import com.greensock.*;
import com.greensock.easing.*;
import flash.utils.*
[code].....
View 32 Replies
Mar 19, 2011
I've come across a potential issue that I think I will be able to solve, although it seems to be to be something that may already have a solution, so I thought it best to save time and check.
I'm basically looking to create a menu where the labels are highly detailed and visually pleasing. The problem is that each and every label needs to be dynamically generated so that the menu is shown in the correct language.
My issue is this: is their a method in flash of defining letters for use as a font that aren't just flat colours? Imagine taking each letter into an image editing program, applying some effects to it, then important them all into flash as graphics/bitmap data. Could those graphics then be defined as letters in a font so that, when the swf is handed the string, it can create the dynamic label from my lovely looking alphabet?
I have a few ideas on how to implement a system using arrays and swapping the dynamic textfields for dynamically created movies, but that would mean building it from the ground up, something which may not be necessary if something similar already exists.
Anyway, I look forward to your replies; this forums has unknowingly solved a large number of my problems in the past, and acted as a safety rope as I learnt AS3. Now that I am on this forum I will likely try and take some time to give something back and help out other beginners, at least I will do when my thesis is finished
View 4 Replies