Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by KenD

Has anyone gotten Impact to work inside an Adobe AIR HTMLLoader? I use AIR for kiosk development, and I'm installing my game at a museum where we have a bunch of other stations that use AIR based applications. I'm trying to embed the game I've built so I can reuse a lot of the other Flash-based assets I've already got working. I've learned that AIR doesn't support the Audio element at all, which is very disappointing, but I believe I can work around that with SoundManager 2, but beyond that, I can't get it to start, even if I disable audio. I just want to know whether working around the Audio bug (which I believe is the main reason it's failing to load now) is worth the effort - i.e. are there other problems I'll have to contend with?

1 decade ago by mimik

You should checkout the adobe air extention for dreamweaver.
I gave it a try and it was easy to export and try an impact.js air application from there.

You can ofcourse do it manually with a buildscript for sublime text to if you want.

check this out
http://www.adobe.com/devnet/air/articles/getting_started_air_js.html

1 decade ago by KenD

Did you not have any issues with Impact trying to create an Audio element? I put in a workaround in the sound.js init function (would be better as a plugin, but it was just a test):

if (typeof(Audio) == "undefined")
{
	ig.Sound.enabled = false;
	return;
}

So, the good news is that the game does run after adding that check. The bad news? AIR's HTML canvas is painfully slow compared to other WebKit based browsers. I'm going to play with it a bit more to see if I can do anything about that.

1 decade ago by mimik

Yeah i diden't really get to the audio part.
But its backed with flash right? so you might as well use that?

I was more fiddling about making a movie intro to the impact.js game
Worked out good. played movies with callbacks.

airs own javascript API to play the movie,
So there musts be an Audo API aswell.

Cant find it now, there docs and site is a mess.
But find there docs there should me some code in there.
And think "Actionscript3"

You have the AIRAliases.js & AIRIntrospector.js to play with.
Worst case just hide the video and play the sound.

Homework:
http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7ecc.html
Page 1 of 1
« first « previous next › last »