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


Similar Posts:


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

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

Flash :: Flex Dynamically Created Components Added To Custom Components

Sep 8, 2009

I am created a dynamically adding a VBox, that contains two images. Into a Custom Component that is derived from UIComponent. The problem is the Vbox that contains the two image is only a really tiny size. I would like the VBox stretch to the size of the two images. This is how I am creating the Vbox....

[Code]...

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

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

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

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

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

Haxe Flash API -- Get/set The The Flash Display Size?

Sep 3, 2010

How do i get and set the size in pixels that the flash file's drawing output is?

View 1 Replies

Flex :: Components - Components - Any Component With The Functionality Such As Horizontally Collapsible Window Or Panel

Aug 22, 2010

Do you know any flex component with the functionality such as horizontally collapsible window or panel I found arc90, but it folds vertically.

View 1 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

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

Is It Bad Design To Nest Components Inside Components Using Flex 4

Sep 15, 2010

Is it bad practice/design to nest components inside components using Flex 4? Should I simply be creating components and inserting them into my main application as below, or doesn't it matter?

<com:MyComp1>
<com:MyComp2>
<com:MyComp3>

[code]....

View 1 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

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 :: 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

Actionscript :: Use Components Code In Mmxl Components

May 8, 2011

how i can use actionscript component code in mmxl components,as in actionscript components we use classes ,but in mmxl component we can not use classes function, so how i can use actionscript component code in mmxl component

[Code]...

but i cant use this code in mmxl components how i can use public class DialogTitle extends HBox implements IBindingClient in mmxl component code,what are the way to use it,sorry i am newbie if it is silly question

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

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 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

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