Actionscript 3 :: What Are The Pro And Cons Of Using Haxe

Mar 7, 2011

I'm thinking about using Haxe in place of AS3.What are the disadventages of that?Difficulties with using native AS3 ibraries.Difficulity of debugging after language translation.Haxe is quite young, it may have some rough edges. Does it?What are the adventages? I've heard:

Performance.Multiple targets (But I don't see how that is useful)Better typing that AS3 Maybe better syntax.Haxe is big enough that there should be more. What are the pros of Haxe?

Edit:If there are no real disadvantages then why Haxe is not replacing AS3?

View 1 Replies


Similar Posts:


ActionScript 2.0 :: What Are Cons Of Publishing In Flash Player 7

Jan 23, 2010

I've been working on an xml gallery. The website scales according to the browser window. Some of my work is fine lineart and any scaling seems to cause a lot of aliasing. If I publish it with Flash Player 7 the scaling is fine.This may sound like a naive question but what are the cons with publishing a portfolio with an older Flash Player?

View 2 Replies

ActionScript 3.0 :: Outweigh The Pros And Cons Of Using Vector Vs Array

Jan 22, 2010

I'm developing a small library and trying to outweigh the pros and cons of using Vector vs. Array. So far, I can only think of a few things to think of: Vector only works for FP10, while Array works for both 9 and 10. Vector is typed (which is a wonderful, fabulous thing), but if I'm only using the Array as a private variable, so I have full control over what goes in and comes out of it, this factor may not play as great a part anymore, but definitely great protection.

I believe I heard somewhere that Vector is a lot faster than Array, yet in a quick inconclusive speed test I did a while back, it didn't seem to make any real difference at all. Is Vector really faster than Array? If so, is it faster in all aspects, or only faster in certain situations just as uint is only faster than Number when using byteshifting?

View 2 Replies

Flash :: Flex - Benifits/cons For Multi-player Servers For A AIR Game?

Jul 13, 2011

I have an air application that I'd like to turn into a multi-player game. I'd like to have 2-40 concurrent connections per "room". We would like to have 1-10 rooms going at once in the beginning. I'd like for users to be able to share voice and video but that's not a requirement.

Users will be racing each other based on data that's updated once every second, so ping doesn't have to be super low. 1000ms would be fine but lower is preferred.[URL]..

Cirrus looks perfect. I've heard some problems about firewall and port settings, but was wondering if anyone had experience with at home users and Cirrus. Another problem is that it's been in labs for ever. You can get RTMFP with Flash Media Server Enterprise but that's like 60k-70k per processor, way out of our price range. I've also looked at [URL] but it doesn't support RTMFP. I know we can host this on AWS and maybe save some money.

There is an open source project (cumulus) that implements RTMFP too but I've read that it's more of a POC then a production ready project. The license is also GPL which doesn't work for our commercial application. I've also looked at[URL].. but again, no RTMFP integration.The reason I like RTMFP is because we can scale without a lot of server cost. I know it's a closed protocol from Adobe and it looks like wowza or red5 won't be implementing it any time soon.

Is there an affordable (not 70k per processor) server tech for multi-player gaming that you can use with AIR/Flash that scales well?

View 2 Replies

Serialization - What Are The Pros/cons Of Using AMF Versus Serializing Data Between Flash And A Web Script/service

Nov 24, 2009

I was using the serializing approach between Flash and PHP for the longest time before AMFPHP had its 1.0 release (wow...that was a long time ago...in 2006)!Serializing using a sepiroth's AS library paired with PHP's built in serializing functions worked and I didn't change it because it did the job.

Should I switch over to the AMF format and technology? One pro is that the data exchange is probably more efficient for AMF because it's a binary format.I've also see other scripting languages/frameworks such as Python/Django, Ruby/Rails supporting AMF. I guess AMF is also a standard format. Does each language serialize data differently?

View 2 Replies

Jquery :: Flash - Pros And Cons To Use Jquery SWF Plugin Over Original Swfobject?

Mar 12, 2010

I'm alreadu using jquery library on site.What are pros and cons to use jQuery SWFObject plugin over origional swfobject

jQuery SWFObject plugin

http:[url].....

View 3 Replies

Flex API's To Use HaXe With FDT5?

Apr 10, 2012

I installed FDT5 and it gave me a warning about missing APIs. But at the FAQ it said the APIs weren't needed to use haXe. Yet while trying to follow the haXe FDT5 tutorial, it says to create a new FDT project. But FDT5 won't let me do this. It gives an error that the required SDK's aren't installed. So do I need to install Flex anyway? Or is there something I am doing wrong?

View 2 Replies

Flash :: Use Components In Haxe?

Dec 10, 2009

I am mostly intersted in modyfing the components appearance in Flash (CS4) than pulling an swf file which I could include in swf-lib. Right now I am kind of forced to make it via movie clip export it, and build functionality in Haxe.Which as you imagine is not handy and timeconsuming (especially that fl.controls used to work for me very well, I barely had to modify any mechanics, sometimes was just adding functionality).

View 1 Replies

Flash :: Play An FLV File In HAXE?

Nov 25, 2009

It is very difficult to find good resources for Haxe informationI have an FLV movie in the same directory as the SWF I am generating. I cannot get the FLV to play. I can get this working in AS but I need to know what I am doing wrong in my Haxe code.

var mc:MovieClip = Lib._root;
var connection:NetConnection = new NetConnection();
connection.connect(null);

[code]........

View 3 Replies

Actionscript 3 :: Duplicate Image With Haxe

Mar 23, 2010

My goal is to make a wide map using only one square image. Using actionscript 3 the solution is to simply make new Bitmap from the Loader:

var loader:Loader = new Loader();
loader.load(new URLRequest("xyz.png"));
this.addChild(loader);
var duplicationBitmap:Bitmap = new Bitmap(Bitmap(loader.content).bitmapData);

Unluckily, Haxe API doesn't allow to do that. I can't get bitmapData from loader content

View 3 Replies

Flash :: Port A C-like Enum To Haxe

Sep 22, 2011

I need to port a C-like enum to Haxe:

enum Items
{
item1,
item2=0x00010000,
item3=0x00010001,
item4,
[Code].....

But Haxe doesn't allow default value it seems. How can I do this? My real enum has hundreds of entries and for those with default values I must preserve the values.

View 1 Replies

Gpu - Enabled Hardware Optimization (wmode) From Haxe?

Dec 11, 2009

It is possible to enabled hardware optimization (wmode) from haxe?

View 1 Replies

Use Compiled HAXE Swf's Swc's In Actionscript As Normal Libs?

Mar 5, 2010

Can we use compiled HAXE swf's swc's in Actionscript as normal libs? I have a swf compiled from haxe code (I can try to compile it into something else SWC for ex) I want to use it as lib in AS3.

View 1 Replies

Actionscript 3 :: Flash Function Overloading In HaXe

May 9, 2010

I am having some trouble figuring out how to overload a function in Flash using haXe. I know that Flash does not allow overloads but can accept function parameters without a type declared, but I am unsure as how to replicate this trick in haXe. EDIT: Since this does not appear to be possible, are there any known tricks that can be used to get around this limitation?

View 3 Replies

Flash :: HaXe -- Code Refuses To Work?

Sep 2, 2010

I have the following code:

package ;
import flash.display.DisplayObject;
import flash.display.Graphics;

[code].....

View 2 Replies

Flash :: Haxe Indirect Property Referencing

Oct 5, 2010

I might be missing something obvious, but how do I reference a property indirectly? E.g in javascript it would be: if(propName in obj) return obj[propName];

How to say the same in haxe? The object in question is Dynamic<String>, flash.display.LoaderInfo.parameters to be specific.

View 1 Replies

Actionscript :: Tokens In Haxe Build Process?

Jan 10, 2011

I'm using HaXe to make a few simple SWFs for RTMP video streaming. Everything is working great, but what I'd really like to do is tokenize a few properties so that the SWFs are compiled with environment specific properties ALA Ant.

[Code]...

I've poked around in documentation and on forum posts and can't see how to do this, though I'm sure it's possible. anyone point me in the right direction?

Note: I considered using flashvars and managing the address in the web application, but that seems less efficient. If that's the better way to handle this please explain why.

View 1 Replies

Actionscript 3 :: Generics - Use HaXe Parameterized Types?

Aug 4, 2011

Is there any way I can use a parameterized haXe type like this:

class GenericTest<T> {
public function putSomething(value:T) {
...[code]....

I tried building to a .swc and including that but the type parameters turn to plain Objects. It seems like there must be a way to trick flash into using custom generic types if the support exists for Vector. Or is that a special case built into the player?

View 1 Replies

Creating Drop-down Menus For Flash With Haxe?

Mar 13, 2012

What are the common ways of creating drop-down menus for Flash with Haxe?

I've used a variety of "drop-down" menus:

drag-and-drop "combo boxes" in C# Forms
<select> in HTML
UIPickers in iOS

Now I'd like to create something similar in Flash. Note I'm not using Flex per requirements that are out my control.

I'm quite new to Flash. So far it looks like I'll extend Sprite and perhaps use some HTML/CSS for styling.

View 1 Replies

Actionscript 3 :: HaXe, Differentiate Anonymous Function At Runtime?

Mar 8, 2011

I'm trying to differentiate anonymous functions like:

function() { trace("WOO"); }

from the other ones ('named'?) like

var _FUNC:Dynamic = function() { trace("WOO"); }

The reason I want to do that is because I can't compare between two anonymous functions, because they are two different ones.

var _TEST:Dynamic = function(a:Dynamic):String {
var _TESTA:Dynamic = function() { trace("WOO"); };
var _TESTB:Dynamic = _FUNC;
return (a == _TESTA) + ", " + (a == _TESTB);
}

If I run _TEST(_FUNC);, I'll get back "false, true". Even though they are the same function, they are NOT the same object.Is there a way to compare those such that functions that they are the same if they perform the same task? Is there a way to serialize functions? So that maybe I can compare the serialized representations and see if they share the same 'code'.

View 1 Replies

Flash :: Fill MovieClip With Webcam Output In Haxe?

May 17, 2011

I'm trying to build a simple flash swf with haxe that shows the output of my webcam. I want to swf to be embeddable and the size to be determined in the html. So my html looks like:

<html>
<head><title>Web cam</title></head>
<body bgcolor="#dddddd">

[Code]....

This creates the swf file that shows the webcam output but with some big white bands on the right and bottom. I want to make the webcam image to fill all the flash object size.

View 1 Replies

Actionscript 3 :: Write A Library With HaXe That Uses Type Parameters?

May 23, 2011

First a little background: I'm looking for a way to create a "collection" library that abstracts the Flash Player version based implementation (Vector on FP10, Array on FP9) away from the calling code. I've already written a small AS3 lib doing that but.the performance is bad (especially because of two levels of indirection and the runtime type checks on the Array implementation)the code is ugly (since Vector types need to be defined at compiletime I needed a factory returning concrete Vector instances based on an Enum that contains only the supported types)

I'm currently looking into haXe as a possible solution since it supports type parameters and is able to compile to various Flash Player versions (and apparently compiles into mmore optimized bytecode).Now, my question is: Is there a way to write a library in haXe that can be used like this in AS3 code

View 1 Replies

Iphone :: Haxe Convert Flash Content Into Objective C?

Dec 15, 2011

I went through many links like this,this and this, but not getting good direction to move with. I need to implement some flash content in my iPhone app. good tutorials to move on with the conversion process.

Suppose I am having a flash air iOS app and I need to convert the whole app in objective c for say adding some features like APNS then I have to do some needful. I want to convert the air iOS based app in objective c for same thing and hence need a tool like Haxe.

View 2 Replies

Iphone :: Haxe Create Library For IOS Native Method?

Feb 6, 2012

Flash packager can't Adobe Packager for iOS: Bundling native iOS code together with Flash?

View 2 Replies

Flash :: Scrolling Through Children Of A MovieClip Subclass In Haxe

Mar 14, 2012

In haxe I have a DropDownMenu class that extends MovieClip:

class DropDownMenu extends MovieClip { ...

TextFields are added to DropDownMenus (about 50 TextFields total):

// in a loop in DropDownMenu new method
addChild(myTextField);

When a DropDownMenu is displayed the items further down are hidden as the menu goes off the bottom of the flash player. How can I make these DropDownMenus scroll?

I've considered doing something on the rollout mouse event. However I imagine MovieClip provides some mechanism for scrolling its contents.

View 1 Replies

Haxe/Flash Game Loop Slow Down Over Time?

Mar 29, 2012

I have a game loop written in Haxe/Flash. For some reason it slows down over time. At first it runs reasonably, but my laptop fan starts spinning up and it gets slower and slower. Why would this happen?

import flash.display.StageDisplayState;
import flash.display.StageScaleMode;
import flash.display.MovieClip;

[code].....

View 1 Replies

Actionscript 3 :: Creating A Class For A Flash Symbol In HaXe?

Mar 31, 2012

I am having trouble incorporating graphical assets created in Flash with my haXe code.

In the Flash IDE, I've created a symbol with the linkage name "MySprite". I compile this into assets.swf. I know that to use symbols in this .swf from my haXe code, I need to add the following option when using the haxe compiler:

-swf-lib assets.swf

I'd now like to write a class called "MySprite" which is associated with this symbol, like so:

class MySprite extends Sprite {
public function new() {
// ...
}
}

Basically, I'd like to achieve something similar to the technique presented in this tutorial:

package {
import flash.display.*;
[Embed(source="assets.swf", symbol="MySprite")]

[Code]....

It's unclear from the haXe documentation whether this can be done, or what the syntax is for doing it.

View 1 Replies

Flash 8 :: Audio - Get Haxe To Play Sound Files When Compiling?

Jan 20, 2010

I'm having some trouble getting Haxe to play audio files in Flash 8.At the top of my hx file, I have:import flash.MovieClip;import flash.Sound;and, within the class itself, I preload a lot of image files along with the names of the audio files.The idea is to do a slideshow with audio content. Basically, display the first slide and play the audio associated with it.Then, once that audio is finished, move on to the next slide and next audio file. I have the slides fading in and out okay but when I tried to add sound, nothing comes out the speakers.The following code is what I'm doing - the sound file associated with audios[0] never starts playing and I'm at a loss as to why.

class Whatever {
static var master : MovieClip;
static var slides : Array<MovieClip>;

[code]......

View 1 Replies

Iphone :: Haxe - Flash Project Compiles Fine But Won't Compile Using Hxcpp

Oct 8, 2009

In summary, I think my question is this: How can I force hxcpp to compile haxe code for Flash 8 ? Here's where I'm at. I'm new to haxe, and am trying to get a sample from here: [URL] to compile using hxcpp, in my tests to see how haxe compiled apps work on the iphone. I've gotten other samples to compile fine and put them on the iphone, but when I compile this sample, it complains with things like:

[Code]...

View 2 Replies

Actionscript :: Reference - HaXe Evaluate A Referenced Variable Inside A Loop In A Closure

Jun 17, 2011

I've been programming some stuff in Actionscript (haXe) and arrived this very specific problem. Here's the code (pseudo :S):

[Code]...

View 2 Replies







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