Generated swf classes extend null

I’ve recently the latest haxe rc along with develop branches of OpenFL and Lime and all of my classes generated from a swf library extend null rather than MovieClip.

I haven’t touched this project in 11 months so it was stable with 8.4-ish. I’m using

<library path="Assets/Test Layout.swf" id="layout" generate="true" preload="true" />

Let me know if you need any more info, I’m gonna try making a test repro project tomorrow morning. Has anyone else tried using swf assets with latest? Anyone else seeing this?

Are you using dev builds? Have you run openfl rebuild tools lately?

No, I need a put a tattoo on the back of my hand to remember this. but i tried it and I get:

Error: ./src/backend/sdl/SDLWindow.cpp:74:16: error: use of undeclared identifier 'SDL_HINT_ANDROID_TRAP_BACK_BUTTON'
                SDL_SetHint (SDL_HINT_ANDROID_TRAP_BACK_BUTTON, "0");
./src/backend/sdl/SDLWindow.cpp:76:16: error: use of undeclared identifier 'SDL_HINT_MOUSE_TOUCH_EVENTS'
                SDL_SetHint (SDL_HINT_MOUSE_TOUCH_EVENTS, "0");
2 errors generated.

And then the terminal process never ends. do i need dev openfl-tools, too?

It sounds like you may also have a development version of Lime that has an out-of-date SDL library.


cd path/to/lime
git pull
git submodule init
git submodule update
lime rebuild mac -clean (or windows or linux -- your desktop)
openfl rebuild tools

Thanks this worked! I’ll add this tidbit to the tattoo when I get it