Javascript :: Porting SHA512 Implemention ?

Aug 12, 2009

porting a SHA-512 implemention in Javascript to Actionscript.Since both Javascript and Actionscript share the same origin, I think porting it will be easy for people who are used to Actionscript.The code for sha512 in javascript can be found here: http:[url].......

View 2 Replies


Similar Posts:


Javascript :: Porting An HTML5 Canvas WebGL Game To Flash

Sep 23, 2011

I had created an HTML5 Canvas WebGL game in January for the Mozilla Game On 2010 competition (pretty late, I know - I never released it until yesterday). Now I want to port it to Flash ActionScript 3.0 for a college assignment.I'm well versed with both static languages like C/C++ and Java; and dynamic languages like Python and JavaScript. However I don't know ActionScript, but since it's a subset of ECMAScript it should be pretty easy to understand.I want to learn programming in ActionScript 3.0 so that I may be able to port my game in Flash. To be more specific, I want to know more about:How is ActionScript different from Browser and Server-Side JavaScript, and basics.OpenGL programming in ActionScript (including loading textures, shaders, etc).How to create a HUD in Flash using a 2D HTML5 Canvas like API (in my game I have 2 canvases, one for the 3D game and another overlaying it for the heads-up display).Support for vector and matrix calculations in ActionScript.How to load assets like audio and sprites in Flash.It would be even more helpful if you would check my source code in JavaScript and suggest the best possible way for me to tackle this problem.The code for the main game engine and the game itself may be found in my Github repository.

View 2 Replies

Actionscript :: HMAC-SHA-512 Implemention?

Aug 11, 2009

As mentioned by the title, I would like to find an implementation for HMAC-SHA-512 written for ActionScript.I was able to find a library that provide HMAC-SHA-256 with other functions, however, I am looking for HMAC-SHA-512 specifically.Edit:

Or, since actionscript and javascript have the same origin, can some one port this javascript version into actionscript?[URL]..

View 3 Replies

C# :: Porting Silverlight App To Flex?

Mar 30, 2011

Perhaps a dumb question, but if you write a relative simple 2D game in .NET (e.g. for Silverlight) C# and you want to port it to Flex - just because you know C# and don't want to bother with other language, are there any means to facilitate this porting process?

Let's suppose that we are using FRAME BASED development (as Flash is, opposed to TimeLine in Silverlight) using the CompositionTarget.Rendering event.

I pose this question because I would like to try to create a fully functional app in .NET and then port it to Flex.

View 2 Replies

LibFLAC Porting Using Adobe Alchemy?

May 16, 2011

I'm trying to port FLAC encoder using Adobe Alchemy for use in flash but can't figure out where the problem is. I'm using Alchemy for Cygwin on Windows. It is properly installed and configured. The following are the steps that I have followed in order to port FLAC encoder:

[Code]...

View 2 Replies

ActionScript 3.0 :: Porting IOIO For Android Library?

Jun 10, 2011

porting a java/C library to AS3?If so there is a library for something called a IOIO board for Android - http://www.sparkfun.com/products/10585 which would be amazing if it worked with AS3.It would mean that we could create Android apps within Flash that can interact with real world hardware over USB.

View 2 Replies

Flash :: Porting SWFs To Android Devices?

Jun 24, 2011

we have a number of SWFs we want to repurpose as Android apps, but are having trouble finding some information.

I realise that Android is spread across a lot of different Hardware but are there any standardised resolutions? If not how would you go about resizing the Stage depending on the screen?

Secondly can SWFs be uploaded to the Android store and if not what is the best way to mantain the SWF functionality whilst converting it to a format that can?

View 1 Replies

ActionScript 2.0 :: Porting Fluid Layout Code?

Nov 23, 2010

I have been given a site to update/improve, which uses many AS1 and AS2 elements, and my team likes a piece of AS3 I've found for a fluid layout which tweens the site container to the centre of the browser's window, and we want to keep it.But at the moment, I have to load the AS1 site into an AS3 container in order to make this work, and this means we lose the deep linking, and it's really cumbersome loading 1 thing into another which is loaded into another...

Sooo, I was hoping someone knows how to translate this AS3 code into AS1/2. Is this possible? Does AS1/2 have the appropriate tween/ease classes? Here's what the container page looks (please ignore the commented out sections).siteLoader is the MC i'm loading the main site's SWF into. AS1 would also make this much simpler with loadMovie command.

ActionScript Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;[code].......

View 3 Replies

ActionScript 3.0 :: Porting Gallery Code From Flash To Separate Class

Mar 26, 2010

I have an xml gallery sort of that works fine when I have the code not as a class, in first frame in Flash. So I decided I wanted to port it into a class and the problem I get is at:
thumb = new Thumbnail(xmlList[i].image);
It expects 0 arguments. How come that line of code works in first frame in flash but not as a class? There is a movieclip in the library called thumb with linkage of Thumbnail.

Below if the code when used in first frame:
PHP Code:
var urlRequest:URLRequest = new URLRequest("pics.xml");
var urlLoader:URLLoader = new URLLoader();
var xml:XML;
var xmlList:XMLList;
urlLoader.load(urlRequest);
[Code] .....

View 4 Replies

Iphone :: C - IPhone To Flash Porting?

Aug 7, 2010

I need to port an existing game written for the iPhone to Flash. The iPhone game is mainly written in pure C rather than Objective C.

I'm wondering if there are any good tools for converting the C code to Actionscript directly, or in general if anyone has some advice on how to do this porting in an efficient way given its C based source code?

Since the game will keep getting updated with bugfixes etc, a method allowing rapid conversion of the updated game code to Flash so that only one code base would need to be maintained would be optimal.

View 1 Replies

Javascript :: Javascript - Target Multiple Objects With A Single Operation Using ECMAScript's `with` Statement?

May 2, 2011

The following doesn't work (although it gives no explicit error), but why not?nd... Is there really no way around it, strictly using the with statement? Forget using for / foreach.

with (object1, object2) {
attribute = value;
method();
}

Why the code above gives no syntax error, doesn't work but is accepted by with?If it's possible, how could we change multiple objects with same attribute using with?

var object1 = { attribute: 3 };
var object2 = { attribute: 2, method: function() { alert('blah'); } };
var object3 = { method: function() {alert('bleh'); } };

[code]....

View 2 Replies

Javascript :: Insert Javascript Functions To An HTML Document From The Child Flash Swf File?

Jan 29, 2012

I need to execute some javascript string code from flash swf file using actionscript 3.
I read that it could be done by passing the javascript code to the parent html document , using externalinterface.call function. Then I assume it will be faster if I can declare functions in the javascript code in the HTML document in the first use of externalinterface.call funtion ; if flash code calls the javascript code repeatedly. So let me ask you how to do that. For details , any javascript to be loaded is unknown in design time and I can not prepare a javascript file to be loaded.

View 2 Replies

Javascript :: Unable To Communicate With Javascript From Flex After Dymanically Loading A Swf?

Aug 1, 2009

for some reason, whenever I dynamically load a swf on a $(document).ready() by writing to a div, I am unable to make javascript calls to the browser. Specifically, all calls to the browser return "null". This does not occur when embedding the swf normally on the page load, but I would like to prevent loading of the swf until a specified point in time.

What the heck is going on here? Is there something special about dynamically embedding a swf that prevents the swf from talking to the browser? The methods ARE called (I've proven such by showing alerts), but all return values to any function, regardless of type returned, shows as null when it gets to flash.

View 3 Replies

Javascript :: Passing File Paths From Flash To JavaScript For Upload?

Sep 29, 2010

Is it possible to pass file names from a running Flash application, which only purpose is to enable multiple-file-selection, to a JavaScript application which handles upload of all files to the server?I have examined various Flash upload solutions (like SWFUpload, Uploadify, etc.) and none of them meets my needs. I want an easy to implement solution (like Uploadify) which also lets me specify various parts of the HTTP request.

The reason I need this is because my upload form uses session cookies (for user authentication) and an CSRF token both passed to the server when uploading files.Is it technically possible to pass filenames (+ paths) to a JavaScript application which then handles the upload?

View 1 Replies

Javascript 3 :: Can A JavaScript Function Detect Which Flash DOM Object Called It

May 20, 2011

Here's the challenge: I have a Flash movie which will be embedded in a page using an unknown DOM ID that I want to be able to identify/store for callback in a JS function. My ideal user flow would be: User clicks button in Flash. Flash pauses any animations / video / sounds / etc. Flash calls an injected JS function to display a page-covering overlay experience. When user closes overlay experience, a callback method on the Flash object is called. Flash resumes playback.

The problem is, when AS3 uses the ExternalInterface.call("functionName", args...) method, there doesn't seem to be a DOM event triggered, and thus it is impossible to tell which object called a JS function, so having a "registerMe()" function doesn't seem to work. Basically, the injected JS function has no way to determine which DOM object to call, because the ID of the Flash object is unknown.

[Code]...

View 3 Replies

Javascript :: Call An External Javascript On Frame Action/change?

Aug 26, 2011

i have a flash movie with 2 frames. and i would like to call an external javasscript function on frame action.

[Code]...

View 2 Replies

Javascript :: Flash - Call A Javascript Function From An Embedded .swf File

Apr 16, 2009

I'd like to call a javascript function from an embedded .swf file. Specifically, I'd like to call a function in one of my externally linked javascript files from within: function loadTrack(){

[Code]...

which is in an .as file which I assume somehow becomes the swf file. How would I go about this and 're-compile' the .as file?

View 3 Replies

Javascript :: Cross-domain Browsing Javascript, Silverlight Flash?

Oct 2, 2011

I'm trying to write a web application that searches google and then downloads the result sites and parses them.The search has to be done on the client side. Without implementing a server side proxy.Can this be done using javascript/sliverlight/flash?

View 1 Replies

Actionscript 3 :: Javascript: Calling JavaScript Function From Flash (swfObject)?

Feb 29, 2012

let suppose i have a object named "data" which has a callBack function named "closeItem" which does something. So i have flash file which has a close button. on click of that i am calling this function which closes this item. So issue is? If i pass this "closeItemFunction" as global function this works fine. but if a pass this function as a "data.closeItem" this doesn;t work throwing some falsh error. so i just wanna ask that "does flash only call gobal scoped javascript function" ??

View 2 Replies

Javascript :: Best HTML/JavaScript Framework For A Flex Application?

Oct 23, 2009

We're currently building a Flex application using the PureMVC framework with a shell.swf which loads/unloads modules dynamically. We're experiencing issues with memory and we're looking to replace the shell.swf with a JavaScript-based loader.Two questions:What would be a good framework to dynamically load the Flex components and allow the modules to communicate between each other?Would dynamically loading/unloading the modules via JavaScript take care of the typical memory problems associated with Flex/Flash applications?

View 1 Replies

Javascript :: Flash - Security / Protecting Code In JavaScript?

May 10, 2010

With all the recent hype about JavaScript and HTML5 replacing Flash, I wanted to know - How would it be possible to protect client-side js code? Of course, it is possible to obfuscate it, but that would only make it a little harder. Also, for games which submit high scores to the server, wouldn't it be incredibly easy to modify those scores before they are sent to the server? I know even Flash files can be decompiled, but they can be obfuscated and flash decompilation is not as easy as modifying data in JS - could be done easily using a plugin such as Firebug. I'd like to know everyone's views on this.

View 2 Replies

Javascript :: Flash - Create Rain Effect In Javascript?

Jun 12, 2010

I need to achieve something like this for my website: Flash Rain Effect

Is that possible to do in Javascript? I want it to be just as smooth as it is in Flash.

View 3 Replies

Javascript :: Use Javascript To Call Method Within A Flash (.swf) File?

Dec 19, 2010

I have a flash file that contains a package "game" which has a class "Scores" and a method setValue(). I want to write some lines of Javascript that allow me to call that method. Someone directed me to this tutorial, but I am still a bit confused.

Javascript: alert("start"); var so; so = document.embeds[0];
so.addParam("allowScriptAccess","always"); import flash.external.ExternalInterface;
ExternalInterface.call("setValue[2600]");

displays an alert to tell me that it has indeed began to execute saves the embedded flash file into a variable and sets access imports that class calls the method.I am not sure about how this class thing works? This is just the bits and pieces I was able to come up with from that site, but I don't really understand how it all works (but certainly hope to eventually).This is the site: http:[url]...how-do-i-access-flash-function-using-javascript.When I execute the code with the importation nothing happens, but the alert does come up when I don't have that statement?

View 1 Replies

Javascript :: Flash/JavaScript: Non 360 (partial) Panorama Viewer

Jan 4, 2011

I'm searching for free partial panorama viewer. It should be placed in somewhere in the page and it should be customizable (openSource?). So far i found pan0.net but it only supports 360 and i have priority for non 360...

View 2 Replies

Javascript :: Sending An Email From The Browser With Javascript And Flash?

Aug 5, 2011

I'm wondering if its possible to do what I'm thinking, and if it is possible, does anyone know of a flash object that does what I need? I know a Flash object can provide a javascript API to interact with it, what I dont know is can Flash send an email directly without the need to talk to the webserver to do so? If thats possible would it not be possible to write a flash object that did nothing but provide an API to send emails? Has such a thing been created that is out there for others to use?

I'm looking to create a email form on a web page but the site is static (no server scripting). In my situation server scripting is not possible as there is no server, the site is 100% client side on a CD/DVD/USB Stick.

View 4 Replies

Javascript :: Access The Name Of Static Member Of A Class In AS3 Or JavaScript?

Dec 4, 2011

I have the following class, I want to do what is in the comments.I know I can do it with conditionals.I'd like to know if there is a way of doing that dinamicaly.This code is in AS3, but I know maybe this is related to javascript because AS3 is based on ECMAScript

public class ClientStatus
{
public static const INVITED:int = 0;[code].....

View 2 Replies

Javascript :: Mouse Move Effects - Css Maybe Javascript Maybe Flash?

Feb 10, 2012

when I moved my mouse there was a red fluid like velvet effect that followed my mouse and slowly faded.It was really cool and would love to add it to my website.

View 1 Replies

Javascript :: Looking For Wii Compatible Javascript Flash Mp3 Player?

Oct 24, 2009

I am looking for a flash mp3 player that will work within the Opera-based browser on the Wii. The player needs to be javascript enabled (support methods like play, stop etc.) The mp3 tracklist will be built dynamically using ajax on the same page as the player so it must trigger an event when a track finishes playing (or at least provide functionality of some kind to indicate that it's time to start the next track). Does anyone know of such a player?

[Code]...

View 4 Replies

Javascript :: Unable To Fullscreen This Swf File Using Javascript

Dec 10, 2010

I have a swf file and i want to able to fullscreen this swf file using javascript. I have a button to access function inside of swf but it gives me error. I searched over google but nothing good i found. Is it impossible or i do something wrong?

View 3 Replies

Php :: Calling A Page With MySQL Query From Javascript Function Then Returning Results To Another Javascript Function

Jul 8, 2010

I am refactoring some code. I have a PHP page that contains a MySQL query and stores the result in a PHP variable $my_result. This result is then echoed to a Flash SWF during embedding with SWFObject. I now want to call this PHP page that makes the query from a javascript function like so - one change I have made to the PHP is that instead of storing the result in a variable $my_result I am echoing the result. Javascript function to call the PHP page and make the database query

[Code]....

View 2 Replies







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