Profile

Member Since
April 02, 2012

Search Members

  

LeFabrice

34
@

Badges

This user hasn't earned any badges yet.

Posts

Viewing 1 to 20 (34 Total)

Geolocation

I think a Geolocation class as well as GestureEvent would be very welcome.

I was wondering : how to access IOS or Android native apis with haxe?

Posted on May 15, 2012 at 2:23 PM

TouchEvent on android : no pressure property

Hi, i'm trying to get some gesture handling working for android (and later ios), but it generates a compilation error with the TouchEvent when i target android (no errors in flash):
compiler says that "pressure" property doesn't exists on Android.
Is this a bug, or do we have to skip this property when targeting android?

Posted on May 11, 2012 at 7:08 AM

events for virtual keyboard?

Hi, i haven't found any event that tells you if the virutal keyboard shows or hide, something like VirtualKeyboardEvent.HIDE.
Anybody knows if it is possible to detect those events when targeting ios or android?

Posted on May 11, 2012 at 4:20 AM

Re: compilation errors on Mac OS 10.6.8

Finally the xcode project is created in the export folder, so i can launch the project created with xcode,
So even if i have a compilation error in monodevelop, the project is correctly created

Posted on May 11, 2012 at 3:58 AM

Re: compilation errors on Mac OS 10.6.8

Please, anybody can tell me how i can solve this bug?
I can't use xcode 4 as i have mac osx 10.6.8

Posted on May 10, 2012 at 7:44 AM

Re: NativeApplication

thanks for the tip, i just found it in the exemple How to override the back button

Posted on May 03, 2012 at 9:54 AM

Re: a strange android comilation error

hi, i tried, but unfortunately, it didn't solve the problem, still have the same errors:

In file included from include/org/puremvc/haxe/patterns/facade/Facade.h:8,
from include/application/TouchFacade.h:8,
from ./src/application/TouchFacade.cpp:4:
include/org/puremvc/haxe/interfaces/IFacade.h: In member function 'Void org::puremvc::haxe::interfaces::IFacade_delegate_<IMPL>::sendNotification(String, Dynamic, hx::Null<String>) [with IMPL = org::puremvc::haxe::patterns::facade::Facade_obj]':
./src/application/TouchFacade.cpp:178: instantiated from here
include/org/puremvc/haxe/interfaces/IFacade.h:89: error: no matching function for call to 'org::puremvc::haxe::patterns::facade::Facade_obj::sendNotification(String&, Dynamic&, hx::Null<String>&)'
include/org/puremvc/haxe/patterns/facade/Facade.h:92: note: candidates are: virtual Void org::puremvc::haxe::patterns::facade::Facade_obj::sendNotification(String, Dynamic, String)
Called from ? line 1
Called from BuildTool.hx line 1246
Called from BuildTool.hx line 554
Called from a C function
Called from BuildTool.hx line 591
Called from BuildTool.hx line 710
Called from BuildTool.hx line 746
Called from BuildTool.hx line 200
Uncaught exception - Error : 256 - build cancelled
Error: Source path "Export/android/obj/libApplicationMain-debug.so" does not exist



As i had the same error with some classes i was writing, i finally i found what causes this error: it's when you have a function of this type:

someMethod(someParam:String = null):Void { ... } (generates compilation error for Android)

i could correct the errors by replacing the previous line by

someMethod(someParam:String = "none"):Void { ... } (ok for Android)

strange isn't it?
I think we could say it's a bug

Posted on May 03, 2012 at 3:00 AM

a strange android comilation error

Hi, if you try to run a test,with pure mvc framework, it works fine when targeting flash, but generates a strange error when targeting android:

- ln178: /Users/tenso/Projects/TestBase/TestBase/./src/application/TouchFacade.cpp(-1): Error: instantiated from here (TestBase)
- ln 89: /Users/tenso/Projects/TestBase/TestBase/./src/application/TouchFacade.cpp(-1): Error: instantiated from here (TestBase)
- ln 92: /Users/tenso/Projects/TestBase/TestBase/include/org/puremvc/haxe/patterns/facade/Facade.h(-1): Error: note: candidates are: virtual Void org::puremvc::haxe::patterns::facade::Facade_obj::sendNotification(String, Dynamic, String) (TestBase)
- Error: Source path "Export/android/obj/libApplicationMain-debug.so" does not exist (TestBase)

Anybody knows where this error comes from?
Is pureMVC compatible with NME ?
If not, what in the puremvc package has to be corrected?


here is the TouchFacade.hx class:

import org.puremvc.haxe.patterns.facade.Facade;

class TouchFacade extends Facade{

static private var _instance:TouchFacade;

static public function getInstance():TouchFacade {
if( _instance == null ) _instance = new TouchFacade();
return _instance;
}

public function new () {

super();

}

public function run():Void {
trace("run");
}

override private function initializeController():Void {
super.initializeController();

}

override private function initializeModel():Void {
super.initializeModel();

}

override private function initializeView():Void {
super.initializeView();

}

}

Posted on May 02, 2012 at 4:23 AM

compilation errors on Mac OS 10.6.8

Hi, since i've upgraded to version 3.3.1 and then 3.3.2, i have a compilation error on a Mac 10.6.8, with MonoDevelop:

Error: xcodebuild [-project ] [-activetarget] [-alltargets] [-target ]... [-parallelizeTargets] [-activeconfiguration] [-configuration ] [-sdk |] [-xcconfig ] [=]... []... (TestBase)

anybody knows where this error comes from?

Here is the whole error:

unknown option: -arch
Usage: xcodebuild [-project <projectname>] [-activetarget] [-alltargets] [-target <targetname>]... [-parallelizeTargets] [-activeconfiguration] [-configuration <configurationname>] [-sdk <sdkfullpath>|<sdkname>] [-xcconfig <filepath>] [<buildsetting>=<value>]... [<buildaction>]...
xcodebuild [-version [-sdk [<sdkfullpath>|<sdkname>] [<item>] ]
xcodebuild [-showsdks]
xcodebuild [-find <binary> -sdk <sdkfullpath>|<sdkname>]
xcodebuild [-list]

So i can't compile any project for mac or ios.

i have xcode 3.2.3 installed.
Is this a bug or is there something wrong in my installs?

Posted on May 02, 2012 at 4:12 AM

NativeApplication

Hi, in flash you can access the NativeAplication
as3 : NativeApplication.nativeApplication.exit(0);

is there a way to exit the app on android, iphone, mac windows ?
maybe with ExternalInterface ?

This could be a feature request: having a NativeApplication class (if it's not the case)

Another could be the flash.globalization package which i like better than th mx.formatters

Thanks

Posted on April 26, 2012 at 9:35 AM

Installing NME on different platforms

Hi, if that can helps anybody, here is a little summary of my adventures with NME and Windows7, Ubuntu 12.04,& Mac Lion

After being very dummy, and trying to go too fast (i was stressed and tired), i finally succeded in having NME working correctly on all platforms

on Mac Lion and Ubuntu, i used MonoDevelop (a nice transition for a FlashDevelop addict).

All the installs worked fine on mac, and i don't remember anything special to say. I don't have my apples's license, but i could see the app running with the xcode simulator when targeting ios, i could compile to all targets i've tried.

On ubuntu 12.04 , i had problems with the installer, the .sh file doesn't work correctly on Ubuntu 12.04, the rm... lines in the script remove all what's necessary (usr/lib/haxe/lib is empty after the install and monodevelop generates a compilation error saying nme is not installed).
Finally, i used the terminal and run sudo haxelib install nme, etc... i downloaded all the libraries by hand on the terminal. I could test android, webos, flash, html5, it worked fine. I didn't test windows as i forgot to download visual sdk.

On windows7, it works fine with FlashDevelop except that i have problems with the android sdk, which is not an NME problem, i hope to solve this soon.

Thanks again to all the guys working on this very nice project.

Posted on April 23, 2012 at 3:19 PM

Re: different environment different problems

i'm sorry, i've been very dummy, i think i didn't even installed nme my home windows7 computer, presuming that flash develop had already installed everything, but i can't event run any haxe project, so i guess i shall first download and install nme before writing post when you're much to tired.
Sorry again

Posted on April 23, 2012 at 3:37 AM

Re: Newb trying NME with MonoDevelop in Ubuntu 10.04LTS

no, release or debug generates the same compilation error.

but i think the error comes from the fact that the setup didn't work correctly and as long as the setup is not correct, it is not suprising that i have errors.
i think it comes from the paths for the directories that are not correct (they seemed strange on mac :' nme' for the full path to the nme directoy, and it can't create th directories on ubuntu so ican't compile on ubuntu as long as the haxelib and me setup didn't occur)

at this point for me on ubuntu i'm stucked at the setup state, on mac also i have a bad setup so the compilation with monodoc keeps telling me to do a haxelib setup
on windows7 it works fine wih flashdevelop ( had no problems to compile for all except android and ios-simulator i haven't tried yet )

Posted on April 20, 2012 at 10:18 AM

Re: Newb trying NME with MonoDevelop in Ubuntu 10.04LTS

Hi, i tried monodevelop with the haxe adInn on mac snow leopard and ubuntu 12.04, i encountered the same construction error

La construction a échoué. ApplicationName='haxelib', CommandLine='run nme build "test1.nmml" flash', CurrentDirectory='/home/fabrice/workspace/test1/test1'

Do we have to download manually flex sdk?

Maybe it would be better if i had downloaded haxe before.......

Now i have haxe installed and i'm facing new problems with the haxelib setup :
on ubuntu : failed to create directory "/usr/lib/haxe/lib" (std@sys_create_dir) maybe you need appropriate user rights
i tried sudo haxelib setup but it didn't change.

Anyone has a suggestion?

Posted on April 19, 2012 at 6:47 PM

different environment different problems

Hi, today i tried at the office to compile a test for android, webos, cpp on a windows7 machine. I could compile succesfully for webos, cpp...i had problems with the android sdk install which seemed to get stuck for hours.

Tonight, i'm trying to compile at home on another winows7 machine, i coud succesfully istall anfroid sdk (great!), but when tried to compile , i had several compilation errors:

android compilation error:
C:\Development\Android SDK\tools\ant\build.xml:470: Unable to resolve target 'android-8'

webos commpilation error:
Unable to access jarfile null\share\jars\webos-tools.jar

cpp compilation error:
Warning: Could not find environment variables for Visual Studio
Called from ? line 1
Called from BuildTool.hx line 1179
Called from BuildTool.hx line 510
Called from BuildTool.hx line 544
Called from Setup.hx line 84
Uncaught exception - Could not automaticall setup MSVC
Error : Build failed
Build halted with errors (haxelib.exe).

Anybody knows how i could solve this errors?

Posted on April 19, 2012 at 1:44 PM

no trace for cpp?

It seems trace api doesn't work when targeting cpp. Is this a bug? Is there some other way for tracing when targeting cpp?

Posted on April 19, 2012 at 10:47 AM

Re: no styles in html5

Thanks fort he tip.
A stupid question : i can't locate the *.hx files and so, i'v been unable to find the font.hx file.
Do you know where i could find it in windows7?

Posted on April 19, 2012 at 9:48 AM

Re: Cant find Android SDK later in build process

Hi i'm facing a similar problem: i couldn't install android sdk trhu the nme setup .... so i installed it from the .exe from android.
Now i have to tell nme where is my Android SDK,
But where can i find this hxcpp_config.xml file?

Posted on April 19, 2012 at 6:19 AM

Re: please some text input

yes, thanks for the tip, that's what i was planning to do: getting more familiar with jeash package

Posted on April 17, 2012 at 11:08 AM

Re: please some text input

It works when targeting flash, but not html5.
Sorry i forgot to say that i was targeting html5

Posted on April 17, 2012 at 10:57 AM
« Previous12Next »