ActionScript 3.0 :: Integration - Create WebGL Extensions Or Classes?

Jan 27, 2010

i'm trying to find something that can boost Flash display performance. I nicely ended up with WebGL, promoted by the guys behind OpenGL. I wonder if the WebGL can in any way be ported or used with actionscript 3.0. I saw someone have created plugin to use flash with Unity 3D, but it's a little complicated to manage and too little "tricky" for me. How hard could be create WebGL extensions or classes for actionscript? Any guru here that want to start doing something?

View 0 Replies


Similar Posts:


Data Integration :: Loading XML Using A Custom Class And Accessing It From Other Classes?

Aug 30, 2006

I began with a class for a movie clip rollover function FigureRollOver. It works marvellously. Three things happen:

1) it loads XML from a file "mod1_fig1.xml" and uses another class, XMLMember, to retool the scoping of the XML so that I can get at it

2) an onload call inside of XMLMember calls the myOnLoad function and transfers the XML into an array.

3) so long as the array is finished building, rolling over a movie clip attaches a new movie clip with the rollover text in it.But I don't want all those functions in one because I need it to be more dynamic, starting with being able to load any old xml file instead of just "mod1_fig1.xml", plus it seems lik overbuilding to have all of that in one class, so I've separated out the loading of the XML and building of the array into its own class, FigureXMLLoader. FigureRollOver is then left to just attach the rollover with text in it, extracted from the array built by the new class.

Problem is, though the array builds inside FigureXMLLoader, I can't figure out how to make it available outside the class. I know that I'm constructing things in the wrong order, and that the array needs to be somehow built inside the class function to be available, but I can't figure out how to do that. A cruddy work-around is to put a function call at the end of the building of the array, which calls yet ANOTHER function on the main timeline of my .swf to put the array I've just built into a new variable.This works, but it's messy. It seems like I should be able to have one line of script in the .swf that generates an array on the main timeline (or just a public array) which I can then access from my FigureRollOver class:

var myRollOvers:Array = new FigureXMLLoader("mod1_fig1.xml");

Here is FigureXMLLoader (see comments in the code for more details) which obviously does not return an array as it is, because of all the working around I've had to do. Note the "testing" variable, which can be traced from the main timeline of the .swf, but I will get "not what I want" because of course the array hasn't been built yet, and never will be, inside of the declaration as it is. How do I get it in there so I can return an array?

View 2 Replies

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

Javascript :: Calculate Sha256 Hashes In The Browser Using The User's Video Card, Eg. By Using WebGL Or Flash?

Jun 18, 2011

Is it possible to calculate sha256 hashes in the browser using the user's video card, eg. by using WebGL or Flash?

I'm afraid this is all there is to ask, but if more elaboration is needed

View 2 Replies

Data Integration :: Class To Create New XML?

Jun 2, 2006

i got a doubt with creating XML objects using classes. thecase is:there should be a class like CreateXML which will intialisean XML objectand has methods to add new elements to the XML. how to createnew XMLelements/nodes to this class?is there anyway to create and write into an external XML fileusingactionscript?can we make an XML object updated with new data elements onthe runtime

View 1 Replies

Data Integration :: Create A Database Using Flash?

Nov 21, 2007

I need to create a database using Flash which gets the data such as "name , last name..." from the user and stores it in a database.

View 1 Replies

Data Integration :: Using Flash To Create A Web Mapping App?

Jan 24, 2007

I've done a bit of web design work,and have used Flash a little,so familiar with the principles of the timeline, keyframing, and twining etc.The sort of thing we might be looking to produce would be similar to this site below :[url].....how technically challenging that might get,or is it the sort of thing that although looks complex, might be relatively easy to achieve armed with a reasonable understanding of the Flash principles that are driving it.

View 10 Replies

IDE :: Custom Extensions In AIR

Feb 7, 2009

I was wondering if anyone had heard of a way that you could access the file that was used to open an AIR application. That is, you know how you can double click a .fla and it will open Flash? I want to be able to do that with a AIR application. I've already tried it and I know I can select a specific application to open the file with when a user opens that file, I just need to know how to access it.Also, is there a way to register a AIR application for a specific file type?

View 2 Replies

Data Integration :: Store In A Database Create Reports?

Apr 22, 2008

1. I wish to build a questionnaire with 14 questions where the user can answer Yes or No each question.

2. Then I would like to save these answers in a mySQL

[Code]...

View 1 Replies

Php :: Set Allowed File Extensions?

Dec 4, 2011

For a download.php I need to set allowed file extensions. What do I need to insert for an Adobe Air file (.air) file?

$allowed_ext = array (
'zip' => 'application/zip'

View 2 Replies

ActionScript 3.0 :: Air For Android Cs5 Extensions Available?

Oct 10, 2010

i dont know why i cant figure this out. android market now has adobe Air, and developer beta testing sign up is closed. I assumed at this point you would be able to upgrade or buy the extentions or plugins for flash cs5 for air for android?I didnt sign up for the beta testing pre release. Is it still in beta or something? how would i get the plug ins for flash cs5?

View 4 Replies

Data Integration :: Create External File That Can Be Accessible / Editable?

Apr 8, 2006

Is it possible to build a flash programme that will create new files that can be accessed or edited. I would like to know all the possible ways.

View 17 Replies

Data Integration :: Create A Tree Layout That A User Can Navigate?

May 12, 2009

I have been given the task at work to create a interactive tree. A little like a family tree, but instead of people it will be branches (think of them as buildings). I've spent a day or so looking and finding out how to get the data from my SQL database in a format that flash can read it etc. Anyhow the problem is I don't really know where to start with the graphical aspect of it...

Each branch can have more than one child and i want the user to be able to scroll through the history of that branch, seeing it's parent branch and also it's child branches, each branch will have a certain amount of information to show. So it's almost as if i need to create a branch class and then use this and load all the data into it etc.

Should i create a new layer for each branch? Then when the user clicks a down button i just take them to a new layer? Do i create the whole thing on one layer and have navigation buttons so the user can scroll around the window and see all the other branches?

It would be nice if i could draw the damn thing at run time, and the user almost walks along lines from one branch to another, and has the option which path to take if one branch has more than one child etc.

View 3 Replies

Data Integration :: Create A Slideshow That Pulls Information From A Database?

Apr 22, 2011

I want to create a slideshow banner that will showcase our products. The slideshow will contain the image of the product, the name, the price, the item code and the link when someone clicks on it. Each week we update the best sellers and it can be from 5 to 15 different products. Similar to what we have now in our website www.deiequipment.com which now is static, we want to animate it and rotate the products like a slideshow.The problem we are encountering is that we have to manually update the slideshow content.
 
We would like to know if there is a way through scripting or catalyst to connect to a database and simply update all these fields automatically. So for example if the database has 5 items, automatically will pre-fill each field listed above and the slideshow will have 5 products.
 
If we update the database now with 10 products, to update automatically. That way we can create 1 slide show, the time it takes to rotate to the next product, and add simple button controls to the slide show for next and back that will simply go through the loaded items.I tried to do a research on how to do it online but some takes me to scripting, others to catalyst dabases, but none are specific to what I need.As a note, the image will just be an image holder that will be updated with the image field in the database that points to the URL location of the image.

View 10 Replies

Data Integration :: Create A Flash Based "widget?

Apr 8, 2011

I need to figure out how to create a flash based "widget? where I can pull in and display basic local airport data, like Delay information.

View 1 Replies

Admob In Flex 4.6 Native Extensions?

Nov 24, 2011

Has anyone found a way to get a Native Extension running for Admob yet? Or for iAd for that matter?

There seem to be a number of issues with the ANE, with compiling and with the manifest. Has anyone found a way to have it all sorted?

View 1 Replies

ActionScript 2.0 :: Where Does A Sane Person Put Their Extensions

Feb 7, 2007

I am using Flash 8, AS2. I have a nice code library called the Fisix Engine. Within the unzipped folder is the subfolder 'Bin' and within is an empty folder named 'generated' and FisixEngine, a seemingly non-editable 'Flash Component File'. At the moment, this Flash Component File rests in C:Program FilesMacromediaFlash 8FisixEngine_Alpha_0.5Bin ... but where is it supposed to go? I have heard that it doesn't matter where. In that case, what is the best practice?

EDIT: For that matter, I cannot even seem to get this component file to be listed in my components browser no matter what I do with it. Furthermore, the examples included #include files which appear to be HTML files instead of .as files. This confuses me very much... What's the fastest way to organize this so that I can make instances of the custom classes included in the component?

View 4 Replies

Data Integration :: Code That Was Written To Create A Thumb Galleryof Sorts?

Sep 29, 2006

I have some code that was written to create a thumb galleryof sorts...an image scroller that, when the thumbnail was clicked,another data area was populated with the xml data. I have removedthe image scroller part, making the main data area itself scroll. Ineed it to display the xml data when the image loads, instead ofmaking me click on the image to load it, which is what is currentlyhappening.

View 7 Replies

ActionScript 3.0 :: Create Top Level Classes?

Nov 21, 2010

what is the meaning of top level classes. and how to create toplevel classes.

View 1 Replies

ActionScript 3.0 :: Create Classes On Timeline?

Jan 17, 2009

In AS1/2 I would use functions to create class-like structures;

it would be nice to be able to, for the sake of convenience, use classes on the timeline

View 3 Replies

ActionScript 3.0 :: Create Abstract Classes In It?

Feb 7, 2011

Is it possible to create Abstract classes in AS3?

In other words, is it possible to declare a virtually pure method in AS3?

For instance, from my C++ knowledge, is it possible to do something like this in AS3[code]...

View 2 Replies

ActionScript 2.0 :: Setup And Create Classes?

Apr 5, 2005

does anyone know the format for setting up classes in AS? Also I was wondering if anyone knows if there is "type." A type in some programming languages is exactly like a class but its much easier to call into a program. Okay right now I just need to find out the format for classes

View 5 Replies

Opening Old Flash Movies With Lost Extensions?

Oct 6, 2009

I have three very old flash movies that have lost their extensions and can not open them any more. how can I open them in the newer Flash 9.0 that I have they were originally done on a PC Flash 3.0.

View 1 Replies

ActionScript 3.0 :: Filereference.save And File Extensions?

Feb 13, 2009

I'm using Filereference.save() to save a jpg file. It'sbasically working fine, but is there anyway to force a fileextension on the saved file? I'm using "untitled.jpg" as thedefault filename, but if the user changes it to say "myfile", itgets saved as "myfile", rather than "myfile.jpg".

View 11 Replies

Professional :: Mac OS X Native Extensions Framework Error?

Mar 28, 2012

When I try to publish an Air app out of CS5.5 I've started to get this message:It happens with a blank document. I'm using Air 2.5 & 2.6 on SnowLeopard

View 2 Replies

Flash :: Getting Icons For File Extensions In Adobe Air?

Sep 11, 2010

I'm working on an Adobe Air Desktop App ATM. My question is how to get the icon for a given file extension, but without actually loading up a file of such type.

I had the idea to just create a blank file for the extension and then delete it once i have the bitmap for its icon, but that seemed like too much trouble and kinda inefficient.

So for example i want to get the icon associated with a .txt file, or .html file. Is their any way of doing such without having to directly reference and existing file , or create a temporary one as mentioned above?

View 1 Replies

Flex :: Sorting DatagridColumn According To FileType Extensions?

Oct 28, 2011

I have a DatagridColumn in flex with two names, TYPE and NAME. Now, when I am sorting a datagridcolumn, TYPE, it sorts the type using sortcomparefunction and gives the result which contains grouped and sorted order of elements. Ex. if I sort for type I get elements in pdf, doc, ppt in grouped order, but they are internally not sorted, ex: for the pdf part, I have elements such as:
TYPE NAME
pdf A1.pdf
pdf X2.pdf
pdf B1.pdf

Here the filetypes are sorted, but for a particular filetype, the elements are not, please notice that B1 occurs after X2, which should be sorted. Is there a way I can sort the second datagridcolumn after sorting the first one according to filetype extensions? I am using sortcomparefunction for sorting the elements according to type , which works fine. The signature is:
private function sortTheTypeColumn(itemA:Object, itemB:Object):int

View 1 Replies

ActionScript 2.0 :: FileReference.download Losing Extensions?

Mar 19, 2007

I need to allow a user to download images from my app, but everytime a user attempts to download, the extension is stripped from the filename I provide.This is only happening in Firefox & IE on Windows. It's working just fine on OSX.

I'm using FileReference.download(), and specifying the filename as "imageX.jpg". However, when the file dialog opens on Windows to save the document, only "imageX" is shown as the filename, and the extension is never saved. In the "Save As type..." field, there is only the "*.*" option available.

The majority of our users aren't technically savvy, so a lot of them don't realize that if they put a .jpg extension on the file they just downloaded, they'll be able to view the image.

View 3 Replies

Flex :: Class - Create Own Classes / Objects?

Dec 7, 2009

When I try to do this in an AS CDATA block, it tells me I can't have a class declared within a class (the MX:Application itself). Makes sense. But where and how do I do it?

View 2 Replies

ActionScript :: Create Own Undo/redo Classes?

Jan 17, 2011

i've been unsuccessfully attempting to create my own undo/redo classes that work well with any type of possible undo and redo commands.

for example, my simple class works perfectly with undoing/redoing x and y positions of display objects or undoing/redoing values of sliders, etc., but things get dicey when i try to tailor my classes to also work with things like adding and removing items to a list.

is there any well known and well documented solution for general undoing and redoing for actionscript (without Flex)?

View 1 Replies







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