haxegui

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

haxegui

go2ghana
  Hi,
I really need some help to start using haxegui.

1. How will I have to compile an swf from the xml files?

2. trying to build from svn fails with:

Buildfile: C:\devel\haXe\haxegui\build.xml
   [taskdef] Could not load definitions from resource
net/wildwinter/anthx/anthx.properties. It could not be found.

compileAll:

BUILD FAILED
C:\devel\haXe\haxegui\build.xml:5: Problem: failed to create task or
type haxe2swf
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

Cordially,
Axel



--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: haxegui

Blue Sans douze
Hi Axel.

I know that's not the answer you're looking for, but if you don't want to use specifically haxegui, you may try to use aswing. Even if it's not designed for haXe, it's perfectly working.

You can find a page on the haxe doc to see how make it work with haXe.

Enjoy your haXe gui trip :D

--
Blue112

2010/4/29 Axel Huizinga <[hidden email]>
 Hi,
I really need some help to start using haxegui.

1. How will I have to compile an swf from the xml files?

2. trying to build from svn fails with:

Buildfile: C:\devel\haXe\haxegui\build.xml
 [taskdef] Could not load definitions from resource net/wildwinter/anthx/anthx.properties. It could not be found.

compileAll:

BUILD FAILED
C:\devel\haXe\haxegui\build.xml:5: Problem: failed to create task or type haxe2swf
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

Cordially,
Axel



--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: haxegui - utest

go2ghana
In reply to this post by go2ghana
  Am 29.04.2010 08:13, schrieb Axel Huizinga:

>  Hi,
> I really need some help to start using haxegui.
>
> 1. How will I have to compile an swf from the xml files?
>
> 2. trying to build from svn fails with:
>
> Buildfile: C:\devel\haXe\haxegui\build.xml
>   [taskdef] Could not load definitions from resource
> net/wildwinter/anthx/anthx.properties. It could not be found.
>
> compileAll:
>
> BUILD FAILED
> C:\devel\haXe\haxegui\build.xml:5: Problem: failed to create task or
> type haxe2swf
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/types have been declared.
> Action: Check that any <presetdef>/<macrodef> declarations have taken
> place.
>
> Cordially,
> Axel
>
>
>
sorry - 3. question:
trying to build the tests build.hxml first fails with:

WindowTest.hx:39: characters 0-33 : Class not found :
utest.ui.text.TraceReport

looks like the utest package changed meanwhile?

Then I tried to comment out the TraceReport usage and compiled without
errors but
the resulting swf complains about:

ReferenceError: Error #1065: Variable Arrow ist nicht definiert.
     at global/flash.utils::getDefinitionByName()
     at flash::Lib$/attach()
     at MethodInfo-1878()
     at flash::Boot()

Any ideas?

Cordially,
Axel

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: haxegui - utest

Zjnue Brzavi
> ReferenceError: Error #1065: Variable Arrow ist nicht definiert.
>    at global/flash.utils::getDefinitionByName()
>    at flash::Lib$/attach()
>    at MethodInfo-1878()
>    at flash::Boot()
>
> Any ideas?

Hi Axel,

I just checked and I get the latest with the same with the latest SVN
haXe build.
I tried a previous haXe build from 28 January and haxegui compiles fine.
The problem is related to how haXe treats swfmill assets.
Perhaps a regression was introduced here:
http://code.google.com/p/haxe/source/detail?r=3213#
Can't test again until tonight, but perhaps it is worth filing a bug.

All the best,

Zjnue

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: haxegui - utest

Andreas Mokros
On Thu, 29 Apr 2010 08:15:21 +0100
Zjnue Brzavi <[hidden email]> wrote:
> I just checked and I get the latest with the same with the latest SVN
> haXe build.
> I tried a previous haXe build from 28 January and haxegui compiles
> fine. The problem is related to how haXe treats swfmill assets.

Well, latest svn uses the new -lib functionality, doesn't it?

--
Mockey

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: haxegui - utest

Andreas Mokros
On Thu, 29 Apr 2010 09:41:26 +0200
Andreas Mokros <[hidden email]> wrote:
> Well, latest svn uses the new -lib functionality, doesn't it?

-swf-lib, I meant, sorry.

--
Mockey

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: haxegui - utest

Franco Ponticelli
About utest, yes the API changed. The basic usage is now as follows:

import utest.Assert;
import utest.Runner;
import utest.ui.Report;

class Test {
    public static function main() {
        var runner = new Runner();
        runner.addCase(new Test());
        Report.create(runner);
        runner.run();
    }
   
    public function new();
   
    public function testMath() {
        var i = 1;
        Assert.equals(2, i + i);
    }
}


On Thu, Apr 29, 2010 at 8:43 AM, Andreas Mokros <[hidden email]> wrote:
On Thu, 29 Apr 2010 09:41:26 +0200
Andreas Mokros <[hidden email]> wrote:
> Well, latest svn uses the new -lib functionality, doesn't it?

-swf-lib, I meant, sorry.

--
Mockey

--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: haxegui - utest

go2ghana
In reply to this post by Andreas Mokros
  Am 29.04.2010 09:41, schrieb Andreas Mokros:

> On Thu, 29 Apr 2010 08:15:21 +0100
> Zjnue Brzavi<[hidden email]>  wrote:
>> I just checked and I get the latest with the same with the latest SVN
>> haXe build.
>> I tried a previous haXe build from 28 January and haxegui compiles
>> fine. The problem is related to how haXe treats swfmill assets.
> Well, latest svn uses the new -lib functionality, doesn't it?
>
> --
> Mockey
>
Yes - with 2.04 the test build works a little better.
Axel

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: haxegui

MarcWeber
In reply to this post by go2ghana
Hi Axel,

2 weeks ago a lost a project because I couldn't finish in time.
Why couldn't I finish in time? Because I tried different HaXe gui
libraries - noone was what I expected.

I ended using HaXe compiling to as3 code using that within a Flex
project using Flex to create the gui.

I don't tell you use this way. Keep in mind that this works reasonable
well if everything else fails for you or if you are not satisfied with
.swf file size..

Flex may suck (?) - But it has many working gui components.
Using the mxml to clue those components is fast.

If you go this way and if you want my Makefiles (applying one patch -
which I found on the mailinglist) contact me.

good luck
Marc Weber

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: haxegui

go2ghana
In reply to this post by Blue Sans douze
  Am 29.04.2010 08:41, schrieb Blue Sans douze:
> Hi Axel.
>
> I know that's not the answer you're looking for, but if you don't want
> to use specifically haxegui, you may try to use aswing. Even if it's
> not designed for haXe, it's perfectly working.
>
> You can find a page on the haxe doc to see how make it work with haXe.
The problem here is that haXe still doesn't support selective
integration of only used classes
Not really useful then to add the whole lib for say just using some
checkbox components...

Cordially,
Axel

>
> Enjoy your haXe gui trip :D
>
> --
> Blue112
>
> 2010/4/29 Axel Huizinga <[hidden email] <mailto:[hidden email]>>
>
>      Hi,
>     I really need some help to start using haxegui.
>
>     1. How will I have to compile an swf from the xml files?
>
>     2. trying to build from svn fails with:
>
>     Buildfile: C:\devel\haXe\haxegui\build.xml
>      [taskdef] Could not load definitions from resource
>     net/wildwinter/anthx/anthx.properties. It could not be found.
>
>     compileAll:
>
>     BUILD FAILED
>     C:\devel\haXe\haxegui\build.xml:5: Problem: failed to create task
>     or type haxe2swf
>     Cause: The name is undefined.
>     Action: Check the spelling.
>     Action: Check that any custom tasks/types have been declared.
>     Action: Check that any <presetdef>/<macrodef> declarations have
>     taken place.
>
>     Cordially,
>     Axel
>
>
>
>     --
>     haXe - an open source web programming language
>     http://haxe.org
>
>


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: haxegui

Martijn Loots
On Thu, 29 Apr 2010, Axel Huizinga wrote:

> Am 29.04.2010 08:41, schrieb Blue Sans douze:
>> Hi Axel.
>>
>> I know that's not the answer you're looking for, but if you don't want to
>> use specifically haxegui, you may try to use aswing. Even if it's not
>> designed for haXe, it's perfectly working.
>>
>> You can find a page on the haxe doc to see how make it work with haXe.
> The problem here is that haXe still doesn't support selective integration of
> only used classes
> Not really useful then to add the whole lib for say just using some checkbox
> components...
>
I don't know what haXe is supposed to do with unused classes,
but the aswing lib is less than 600k. And you get a lot of
functionality with that. It still might be worth taking a serious
look at...

I mean, if you only need a checkbox, that would not be too
hard to implement yourself would it ? Aswing sports a very
extensive gui; I still haven't found it lacking something
(though I wished the look-and-feel templates were a bit easier
to handle...).

Grtz,
--
-Martijn    @..@    ( Martijn Loots       -  Hengelo  [NL] )
-          (`--')   ( martijn<@>cosix.com -  www.cosix.com )
-         ( >__< )  ----------------------------------------
-         ^^^  ^^^  (   Netwerken, Security, Open Source   )

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: haxegui - utest

gershon
In reply to this post by go2ghana
Hi Axel, Zjnue and list.
Before attempting to start with haxegui, a fair warning should be given, that library isn't finished, and that code isn't trivial to get up and running..

About the tests, those aren't really necessary, but should work with an older utest...
 
About compilation, the ant task (build.xml) is rather old, and compiles only haxe code and not any of the assets...
Best would be to use the makefile, which also need swfmill... (though you could use any other swf authoring software to generate the assets, just mind the linkage ids in `library.xml`)

Not sure how the new -swf-lib affects stuff, i actually haven't been haxing for a while now... version 2.04 should work.

I should mention some of the pros for using the thing though, size is a pretty big pro and the skeletal app weights ~250k, using is IMHO, straightforward, and hacking\adding features shouldn't be hard either. I Believe the hscripted nature of haxegui makes it versatile and fun to use, and was probably one of the best moves in the design of the framework.

If you require a stable and mature gui framework for a critical app, you should probably stick to flex\aswing, otherwise, feel free to try haxegui and to post your questions.

Best of wishes, gershon.

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: haxegui - utest

go2ghana
  Am 29.04.2010 18:21, schrieb gershon:

> Hi Axel, Zjnue and list.
> Before attempting to start with haxegui, a fair warning should be
> given, that library isn't finished, and that code isn't trivial to get
> up and running..
>
> About the tests, those aren't really necessary, but should work with
> an older utest...
>
> About compilation, the ant task (build.xml) is rather old, and
> compiles only haxe code and not any of the assets...
> Best would be to use the makefile, which also need swfmill... (though
> you could use any other swf authoring software to generate the assets,
> just mind the linkage ids in `library.xml`)
>
> Not sure how the new -swf-lib affects stuff, i actually haven't been
> haxing for a while now... version 2.04 should work.
>
> I should mention some of the pros for using the thing though, size is
> a pretty big pro and the skeletal app weights ~250k, using is IMHO,
> straightforward, and hacking\adding features shouldn't be hard either.
> I Believe the hscripted nature of haxegui makes it versatile and fun
> to use, and was probably one of the best moves in the design of the
> framework.
>
> If you require a stable and mature gui framework for a critical app,
> you should probably stick to flex\aswing, otherwise, feel free to try
> haxegui and to post your questions.
>
> Best of wishes, gershon.
Hmm,
I have some questions  since I really want a haXe gui.

first I noticed the line
<server address="localhost" port="2000"/>
in loader.xml - does that mean I have to run the swf from a server using
this port?

second is it possible to compile a simple component to a small swf to be
used at any DisplayObjectContainer
  like it is possible with aswing? Or better is there a not too hard way
to tweak the code that this will become possible?

Is there any documentation about the xml syntax?

Cordially,
Axel

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: haxegui - utest

gershon
About the loader.xml, its parsed into a static xml.Fast, Haxegui.loader, for easy access (like `Haxegui.loader.node.server.att.address`)
the <server> node was only used when experimenting if i recall correctly... its basically a config file used mostly to avoid hardcoding.

Regarding the second question, haven't tried it, and will probably require ApplicationDomain stuff, but should be possible... only problem i can think of is that the file wont be minimal, as it will still requires framework's dependencies...

Custom components can either be subclasses hardcoded in haxe, or xml layout based...

Xml isn't documented, but is pretty intuitive, uses reflection to create instances.
The namespaces are converted to packages, tag to a class, and attributes to fields in the init object.
Hope the chxdocs and xml samples are clear enough.

l8tr, gershon


On Thu, Apr 29, 2010 at 8:19 PM, Axel Huizinga <[hidden email]> wrote:
 Am 29.04.2010 18:21, schrieb gershon:

Hi Axel, Zjnue and list.
Before attempting to start with haxegui, a fair warning should be given, that library isn't finished, and that code isn't trivial to get up and running..

About the tests, those aren't really necessary, but should work with an older utest...

About compilation, the ant task (build.xml) is rather old, and compiles only haxe code and not any of the assets...
Best would be to use the makefile, which also need swfmill... (though you could use any other swf authoring software to generate the assets, just mind the linkage ids in `library.xml`)

Not sure how the new -swf-lib affects stuff, i actually haven't been haxing for a while now... version 2.04 should work.

I should mention some of the pros for using the thing though, size is a pretty big pro and the skeletal app weights ~250k, using is IMHO, straightforward, and hacking\adding features shouldn't be hard either. I Believe the hscripted nature of haxegui makes it versatile and fun to use, and was probably one of the best moves in the design of the framework.

If you require a stable and mature gui framework for a critical app, you should probably stick to flex\aswing, otherwise, feel free to try haxegui and to post your questions.

Best of wishes, gershon.
Hmm,
I have some questions  since I really want a haXe gui.

first I noticed the line
<server address="localhost" port="2000"/>
in loader.xml - does that mean I have to run the swf from a server using this port?

second is it possible to compile a simple component to a small swf to be used at any DisplayObjectContainer
 like it is possible with aswing? Or better is there a not too hard way to tweak the code that this will become possible?

Is there any documentation about the xml syntax?

Cordially,

Axel

--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org