Installation guide for Flash Indexhibit frontend
Because some of you asked for an installation guide for the example I posted earlier – here comes a small how-to so that you can get the demo up and running on your own computer/webserver.
There is more than one way to get this done …
1) you can focus on the visual part (flash) and just use our Indexhibit installation / remoting gateway to get the data into your flash-page
or
2) you want to install everything on your own computer/webserver and create your own flash/indexhibit page.
for 1) just download the sources and take a look at the frontend-classes within the com.apdevblog.examples.indexhibit.view package. play with them and change the things you need to alter the look of the entire page. don’t modify the amf-server url and you’ll get our dummy-posts to be displayed in your page (for testing purposes).
for the rest of you (2) … here is the short installation guide.
- requirements: webserver running php (>=4) and mysql
- install Indexhibit in a subdirectory of your webserver (e.g. /ndxz)
- copy the “amf” folder to the root-directory of your webserver (this is the installation of amfphp)
- then make sure you can access the remote gateway of your amfphp installation by opening the URL in your browser (sth. like http://localhost/amf/gateway.php) – it should look like our gateway.
- change the values in /amf/includes/dbaccess.php to fit your mysql-user and DB
- also, you need to change the SERVER_URL inside of the Constants-AS3-class (com.apdevblog.examples.indexhibit.model.Constants)
- now you should be able to compile* the swf and grab the data from your server
* we are using the flex 3 sdk to compile the Index.as. But you have to add the “frame”-parameter to the compiler arguments:
-frame two com.apdevblog.examples.indexhibit.Main
*** Important notice *** :)
For those of you who are not that much into flash/flex and never used the flex compiler before I am currently working on a FLA-file that will also compile the example (stay tuned).
The example is heavily based on the pureMVC framework – so again, if you’re not familiar with this framework, you better wait for the easier-to-use FLA-file example coming up this week.
This is it for now – if there are any questions or suggestions for improvement just post a comment and we’ll get to it right away.
Cheers

Awesome work guys, i was checking every day your blog waiting for this, but since i am not familiar with the flex sdk, i’ll continue checking for the FLA.
Thanks, and great work
I got everything installed and pull my own data from my webserver. But the images won’t load, because it searches for Indexhibit in the folder /ndxz instead of /ndxz-studio. Where can I change the image path?
Ah, I found it. By using a handy program SadMan Search I could locate the right line. It is in com.apdevblog.examples.indexhibit.view.content.ContentDetails.as.
hello,
i really like your flash application and i want to integrate this in de idexhibit, or maybe could you do this for my because i dont understand this, i am willing to pay for it, or maybe can you help to built a flash site…
still waiting for the FLA file ?
hi henk.
you can get the FLA-version of the flash/indexhibit example here:
http://apdevblog.com/super-simple-flash-example-of-the-indexhibit-frontend/
hope this helps?!
phil
AHHH,
COOL. THANKS !
I used to have a indexhibit portfolio site running, but i decided to replace that for full flash (just for the free layout / font possibities that flash deliver). But now i’m working on a new indexhibit site again, because i miss the easiness in uploading new material / project to me site.
SO THIS SEEM LIKE HEAVEN! The best of both worlds.
But if i understand correctly, i should be able to take me indexhibit site merge with this? Or how do i go about starting from scratch? What do i need to download. I’m interested in starting from scratch with #1.
Haha, i will return safely to my old flash site, even though that means i’m not gonna be able to take advanced of the super quick uploading of content that indexhibit delivers.
The Flash Indexhibit frontend i’m never gonna figure it out.
But i will have a look out on this site and the indexhibit forums, maybe things will clear up by time.
Great concept and idea.
Hi! i’m fan of Flash and Indexhibit, so i’m happy you get them together! thanks!
i’ll need some help:
I couldn’t install the amfphp.
I uploaded via ftp the amf folder (without the folder, right?) to the root, but get an Error 500 trying to reach http://www.barbarapartegas.com/gateway.php
i just deleted the .htaccess file…
Hello i try your website and i like so much your work but i have problem when i want connect to my gateway.php i have a error repport in flash don’t understand have you some identication for me :)
i have some troubleshooting in tha amf folder with some files with public declaration
it’s running !!! thanks i use charles for debugging my server don’t like public php but when i change in var it’s good
but i have a problem with the image i think it’s a link problem i go to search the exact classe
if you have time to get to me this infos that’s great
sorry i try it in view/.content/contentdetails.as your project are very very great
i work one day to that’s run but i happy to get this time to understanding your work
respect
cheers
Anyone know what do i have to do in order to be able to access gateway.php (http://www.flishstudio.com/amf/gateway.php ) from my browser? It’s something i can do our have to ask to my Hosting provider?
hi martim,
it seems the page is just not there …!? i get an 404 error when trying to open the URL. does the folder “amf” exist? is the “gateway.php” inside of it?
phil
I am really excited for the FLA -file, when does it come out?
hi ana,
it’s been out for a while … :)
you can get it here: http://apdevblog.com/super-simple-flash-example-of-the-indexhibit-frontend/
cheers
phil
Hey, tolles Project! Ich würde das gerne ausprobieren. Drupal und Joomla muß grad net sein.. Kann ich es lokal auch mit XAMPP testen? Hängt grad an der Datenbank (weiß nicht wie ich die installieren soll). AMF muß sein oder? Und wohin mit den Daten aus apdev_indexhibit.zip? ..puh.. ja danke schonmal.
Mlg tak
Hello,
first of all, thank you for providing this great application to everyone as it is reallly great to finally have an indexhibit flash interface to play with !
i just installed everything and it is working great, … Except : when i try to get back to my home page by using the close button after displaying a page :
the home url displays correctlly with a “#” added, and then nothing ! still on the same page !
tryed locally as well as on a sever, same thing happenning, while your example works flawlesslly.
I’ve been looking everywhere in the classes and my installation to see what i was getting wrong, with no avail… :-(
pretty please, is there a way you could point me in the right direction ? I would really like to use your interface as the Flash possibilities are great and exiting
in advance, thank you for your help !
E
hi eugene,
is there any way i can take a look at your example?
online or can you email me the files!?
otherwise it is hard for me to guess what’s going wrong.
cheers
phil
Hello, and thanks for your concern Phil.
here is the link to my website, i gave it a try on the first level instead of a sub-directory… still the same result; getting back to home page does not occur. Guess I’m new to swfadress.
got mad looking for a fix, hope you will see something obvious !
thx
E
hello Phil !
anything you can advise ? I’m still stuck on this issue :-(
E
hi eugene,
there’s even more that’s not running as it is supposed to …!?
when a project is open and you press the shuffle button at the upper right corner it orders the cards anew but the big project card stays open – don’t know where this comes from but i think both errors are connected in some way.
can you send me your FLA and AS files so i could compile the project myself?
phil
i really appreciate your great work! and, yes, i know you’ve already warned about dealing with flex without any knowledge, but after i got he simple flash version working, i now try the advanced version due to better menu handling.
i’ve just installed everything, amf is in root and working, but i always get a blank flash page and safari activity sais that http://apdevblog.com/crossdomain.xml couldn’t be found and i dont know why. is it somewhere in one of those as.file to be found? – i grazed thru all of them. or is it a typical flex-noob-error? i mean why it should want to connect to your site although i changed the server url?
thanks in advance und weiter so, jungs!
christian
well,
here is the source i used, what I did was just change the constants :
http://www.waldemaar.com/apdev_WF_source.zip
hope I’m not asking too much from you,
but could you please tell me how to use a font from inside Flash, instead of using an external otf font ? couldn’t make this work either !
again, thx a lot for your help philipp !
E
hello again Phil, did you manage to give it a look ?
I ‘m so disappointed not being able to make it work…
E
hey.
checked your sources and found what caused the error – you don’t have a page with an empty deeplink “/”. i thought that every indexhibit installation has such a “home” page but it seems that i was wrong …
change the “set currentUrl” function in the IndexhibitProxy.as to this:
public function set currentUrl(url:String):void { log.debug("set currentUrl() >>> " + url + " alt: " + data["currentUrl"]); if(url == data["currentUrl"]) { // same url exit return; } // look for exhibit var exh:ExhibitVo; for(var i:int=0;i<exhibits.length;i++) { exh = exhibits[i] as ExhibitVo; if(exh != null) { log.debug("page.url: " + exh.url); if(exh.url == url) { data["currentUrl"] = exh.url; sendNotification(IndexhibitProxy.PAGE_CHANGED, exh); sendNotification(IndexhibitProxy.UPDATE_TITLE, exh); return; } } } // special case: if there is no "/", just fire the notification anyway ... if(url == "/") { exh = new ExhibitVo(); exh.url = url; data["currentUrl"] = url; sendNotification(IndexhibitProxy.PAGE_CHANGED, exh); sendNotification(IndexhibitProxy.UPDATE_TITLE, exh); } sendNotification(IndexhibitProxy.SELECT_PAGE, "/"); }… should work then.
cheers
phil
@christian
did you recompile the whole thing after changing the SERVER_URL?
the crossdomain is loaded automatically when you access a different server – there’s no explicit line in the code for that.
hope this helped …!?
phil
OMG ! you did it !
it works so well now, thank you, thank you, thank you *1000
Phil : [ you don’t have a page with an empty deeplink “/”. i thought that every indexhibit installation has such a “home” page ]
well, i thought I saw smthing like that in the debug trace, but couldnt figure it out.
what exactlly is different in my installation ?
If you still have 5 mins, i would like to change the font by embedding directlly in Flash (instead of using an external otf font ) some characters are missing, and well, for the sake of change !
mate, you are a genius !
cheers
E
You you could change the page name title Installation guide for Flash Indexhibit frontend – aron / philipp development blog to something more generic for your subject you write. I loved the the writing still.
Hey Phil.
First of all I love what you’re doing and keep it up.
Second, I’ve installed the amf file to the root directory of my server, but keep getting an error message.
I have no idea as to how to fix it.
http://brianvaldizno.com/amf/gateway.php
Thanks for your time,
Brian
hi brian,
seems like your server has a problem with either PHP or the MySQL installation.
can you upload a simple php-info file and open it in the browser?
phil
Hi Phil,
Merry Christmas or happy holiday haha.
I created the file and uploaded it to the server and here’s what it looks like:
http://brianvaldizno.com/amf/phpinfo.php
I’m hosting on GoDaddy so could that be a problem?
Thanks again and have a happy holiday,
Brian
hi brian,
try putting the phpinfo.php in the root folder.
do you have a .htaccess file restricting the access to the amf-folder?
if yes, rename the .htaccess to something like xx.htaccess and try to reach the /amf/phpinfo.php or any other file in the subfolder.
php is running on your server otherwise the html version of the indexhibit site wouldn’t work as well …
phil
Hey Phil.
So I got it to work:
http://brianvaldizno.com/phpinfo.php
Now what do I do?
Thanks for all your time and help,
Brian
Hey Phil,
Sorry to be a bother, but is the gateway really an important part of the installation? Or should i move on to the other steps.
Thanks again,
Brian
hi brian,
your last comment wasn’t approved right away – so i just saw that you replied some weeks ago. sorry for the wait.
yes, the gateway is very important – it’s the interface for the whole indexhibit-data you want to get into your flash-application.
did you try contacting your webhosting company? maybe they can help …
sorry i can’t be more of help
phil