Library/API/program For Converting Flash Code Into Html5 Code?
Aug 25, 2004What library/API or even a program for converting flash code into html 5 code automatically do you recommend me?
View 2 RepliesWhat library/API or even a program for converting flash code into html 5 code automatically do you recommend me?
View 2 RepliesI'm looking for some help converting as3 code to pixelbender code in an attempt to improve the performance of my application. This as3 code goes as follows. I scan through the Number values of a bytearray in chunks. Lets say this chunk lenght was 100 numbers I read 2 numbers (left and right) and try find the maximum values. The numbers in my bytearray are PCM data so there is millions of them and this code can often take a long time to execute, especially on a low spec machine.
The whole aim of this is to render a waveform as quickly as possible. I know very little about pixel bender. I can basically make a new file and create a shaderJob of it in flash but I'm really uncertain how to approach this...
[Code]...
Got to the point where the hole in my AS3 knowledge is getting large!Realising I have confusion about the relationship of:Body of code on first frame of AS3 file.(Which I have so far used to create instances of library objects using addchild and make calls to class code).Is this code called the document code? What do people call it?Numerous classes linked together by extending each other etc.Library objects (usually graphical objects)Should it be done differently? have the following problems due to lack of understanding:Addchild complicated from a class but straight forward in main body code.Cant call functions on the main body code from classes, because class code does not know the main body code exists?
View 1 Repliesconverting the following code (i got from some site, i can't remember which) to on-frame code:
Code:
onClipEvent (enterFrame) {
with (_root.player) {
// Controls Player Speed
[Code].....
Basically its a movement and hittest script for a maze. It works great but I need it running within an onEnterFrame in the frame code.
Currently the code is on a clip which contains the clip "walls". and player is on the _root timeline.
I was wondering, if I have a proprietary flash code (e.g: some cool animation which is really just client side stuff, its just example), and about to rewrite it using HTML5, is it possible to hide the code? or at least make it harder to see (unlike right click, view source, then you can just copy paste the code).
View 2 RepliesMy page validated error free against HTML5 until I added YouTube's embed code. # Line 140, Column 132: Stray end tag param. ¦O30JM&hl=en_US&fs=1"></param><param name="allowFullScreen" value="tru # Error Line 140, Column 183: Stray end tag param. ¦llowFullScreen" value="true"></param><param name="allowscriptaccess" value="a # Error Line 140, Column 238: Stray end tag param.
¦scriptaccess" value="always"></param><embed src="http://www.youtube.com/v/1rW # Error Line 140, Column 430: Stray end tag embed. ¦ways" allowfullscreen="true"></embed></object> Is there a way to get object, embed and param tags validate against HTML5 ?
i have a .swf which i have downloaded on the internet it is a animation that i would very much like to have it in my .swf however, when i am loading it and trying to control the .swf i get a error code.TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::AVM1Movie@10d52701 to flash.display.MovieClip.
i searched the net for this error and it is because the .swf is compiled in as1/2 therefore i am unable to get it's "object" and control it.i have also decompiled the .swf and read the codes, but the codes are mostly done in as1/2 and i have no clue what it does, as i just started learning as3 , and have never touched as1/2.the below is the code decompiled, from what i understand it is used to "shift" the parts of the animation. which is a "fish" body part, to create a very smooth, swimming action. i have tried converting it to as3 code but i get errors where it cant find the variables.
function corps(objet)
{
i = 0;
for (;;) [code].............
Is it possible to make a flash application where if a User enters some text and presses a button the text is encrypted by a cipher?For example:What if you used a simple cipher like this:
B = a, C = b, D = c and so on
So when the User types BCD and presses the button he gets the text ABC
Or if he types IBM he gets HAL
or vise versa
I'm not sure if or how Flash could split a sentence into individual letters and swap the letters based on a cipher you create.
I converted a .swf file into .fla file using Sothink SWF Decompiler. I can open the file with Adobe Flash Professional CS5, but I cant see the source code. The only thing that I see is the timeline layers. I want to change the background picture of the Flash and save it as .swf.
View 1 RepliesThe problem is I've created a nice elastic menu which I want to use with the rest of my project, but the menu only works if I publish to Flash 5, but I need it to be Flash 6.I've attached the file, maybe someone who knows a bit more than me can spot the problem. The file menu works perfectly in Flash 5, so I'm assuming there's some deprecated in the code that doesn't work with 6.
View 1 Repliesis there a code for Actionscript 2.0 for the "Auto-Resizing and Centering your Content" Tutorial all my code is in AS2 and i cant change it.url...I get an error in AS2 in the line function updateSize(e:Event)
View 1 RepliesI want to develop the following program in AS3
main -> Async call A -----> join
|- Async call B ->|
|- Async call C ->|
[Code]...
Since Action Script is an interpreted language, and it is clear by decompiling animations that the code is still in there, is there any function that lists the code of a function or class as a string?asically, I want to create a suite of components for developers that lets them make modifications to or at least view the code behind a component while the animation is running, and that way make it easier to find bugs, instead of having to stop the animation, dig up the code for that class, and recompile it. It would be even handier if it was possible to edit code while the code was running, so the next time Flash encounters that code, it will instead run the new code. Yes, if used unwisely, that could cause a lot of problems, but the benefit outweighs the risk, and that feature is used in such development environments such as Visual Studio.
Likely, the only solution to that would be to give each class a "code" variable, likely a String. Then when the users click the button to view that certain source, it checks for the "code" variable and displays the contents. The problem is that you have to remember to update the variable each and every time Perhaps I can write an extension for FlashDevelop that does that automatically? It could just update that variable at compile time.
Does Adobe had releases the source code for the components that comes with Flash CS4 (fl.controls.*). If not, is there any way to use the Flash component library with another IDE like FlashDevelop for code and compile the flash applications.
View 1 RepliesI have a flash video(.swf) on my website and i want it to convert into such a format so that it remain available from iphone/ipad. Is there any possible way of doing so? Can i convert it into HTML5? If yes can anyone suggest the process and if no, can anyone suggest any other method?
View 6 RepliesAre there any other swf to HTML converters, I know there is Wallaby and Swiffy from Google, but does anyone know any others, that support ActionScript. I want to convert a swf file to HTML, but the swf has some ActionScript (AS3) code inside it that is used to populate the swf. I want to be able to convert this into HTML and use JavaScript to populate the HTML version.
View 1 RepliesActionScript Code:
//Random Movement: kirupa.com
//Thanks to Suprabeener for the original code!
function getdistance (x, y, x1, y1) {
[code]....
This will probably seem a moronic question, but I've only been using Actionscript for about a week... Either way, I've written a very long and complicated (8500 lines w/ autoformat) code for a game I've decided to program. The game is functional, the AI can respond to outside inputs etc, and I know reasonably well how to use SharedObjects.
What I'd now like to do is make a menu system surrounding my game that can pass variables in and out of this existing program. The program is currently in the shapely form of a Document Class, meaning the code runs on load. I'd prefer if there was a way to simple make the code run upon being called. How would I best do this? The only inputs presently used are keyboard inputs...
I have the following code for a game how can I extract pieces of the god for example the enemy and make it run as an external class as via seperate .as file?
Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
import flash.media.Sound;
import flash.net.SharedObject;
[Code] .....
convert this code from AS2 to AS3?
Code:
Timer = function () {
};
[code].....
Specifically flash.display.BitmapData.
I've seen the swc file, header-like classes, and some implementation files for
fl.*, but not flash.*!
I'm trying to create a flash program that uses it's own code to send and create images. Each square has a colour and that colour gets added into the array. A black, then grey, then white is:
filecode = ["Bl", "Gr", "Wh"];
That works fine, but when I try to paste it into an Input text box it will only fill in the first part of the array.
filecode = ["Bl,Gr,Wh"];
So the program has NO idea what I want.The only ways I can think of fixing this is by putting in 402 text boxes to suit every box...But every one of them needs a Variable Name.Or by sending the information straight into the array. But this way you are just looking at what you just drew, and that is not at ALL practical.
As stupid as my question might sound, i have spent the last 2 weeks reading oop books; but could use some guidance. I have a flash project that is basically a supped up slide show. On the stage i have the following: main_mc (instance name = images_mc) = movieclip which holds "pictures" ui1 (instance name = ui1_mc) = user interface that allows user to draw on picture (when drawing is enabled) ui2 (instance name = ui2_mc) = activates invisible hit areas (buttons) on select pics, when hit area is clicked, we jump to another pic in the main_mc.
I accomplished all of this on the timeline, but am updating the code to OOP. I am having A HELL OF A TIME trying to figure out how to store references to the instances (images_mc etc..), so i can control them from varying class files. I have found it is easy to control the instances from the documentclass, but not from unrelated class files. Example: images_mc.stop(); works in document class; but ovieclip(Parent).images_mc.stop() doesn't seem to work from any class file.(ui2 class file for example);
[Code]...
I'm looking for a workaround to the "AdSense does not let you choose only images but no flash" issue. I'm rather a newbie to JS, but is there any way for one script to prevent other scripts embedded in a site from detecting the presence of the flash plugin? Even if it doesn't work with AdSense, it would be nice to know if there's a hack to do this that might work in other settings.By the way, I suppose I wouldn't care if it failed to work on IE or obsolete browser versions.
View 1 RepliesIs thre any program which uses static analysis to look for bugs in actionscript code?
View 1 RepliesI'm working on a project that involves making a globe in flash which will have many particular points (all the worlds major cities by using their longitudes and latitudes). It's all 2D made to look 3D.To make the "Sphere," I put together some code that stacks a bunch of ovals that creates the illusion of space, ala the code below...
//AS3
function magicTrigFunctionX (pointRatio){
return Math.cos(pointRatio*2*Math.PI);
}
[code]....
Now, my problem is that in order to assign the longitude and latitude information I need to be able to address each oval individually (not only which one, but also eventually the angle/radians of each oval for the latitude) and I've run into a snag...I don't know how or perhaps exactly what to do, because I know how to make it a symbol and class if the object was already made visually using the oval tool in the tool bar, but I can't figure out (after taking a bit of time looking up on how to use arrays and classes) how to do it in the AS3 code where I actually made the "sphere."
Been so long I haven't write anything here in the forum. I have a big FLA file containing a huge symbol with lots of subsymbols on it. The structure is crazy however there is no even a single line of code in the FLA. The big symbols is exported for actionscript, is associated with some class (say TheSymbol) and its base class is set to MovieClip. I publish the big FLA file to SWC file and link the SWC to project with "Merge into code" linkage type.
[Code]...
I have images in my library I want to reference in code, because I want those images to be displayed dynamically.
View 2 RepliesI would like to load movie clips from the library to the stage.How can I load them with some code on them? I mean load them already with onClipEvents on them, as if I added them myself to the stage..
View 4 RepliesI need to generate colored QR codes in AS3. Is their any library available for that? Can zxing do this?
View 1 Replies