Post by Phil / October 7th, 2009

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

39 Comments

  1. ZinkhOctober 7th, 2009 / 22:47 / #736

    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

  2. Marnick MentingNovember 5th, 2009 / 16:34 / #832

    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?

  3. Marnick MentingNovember 5th, 2009 / 17:07 / #834

    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.

  4. nielsNovember 13th, 2009 / 14:47 / #836

    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…

  5. henkNovember 30th, 2009 / 21:00 / #861

    still waiting for the FLA file ?

  6. PhilNovember 30th, 2009 / 22:27 / #862

    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

  7. JamalJanuary 5th, 2010 / 11:47 / #923

    AHHH,

    COOL. THANKS !

  8. ChristianJanuary 11th, 2010 / 14:05 / #949

    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.

  9. ChristianJanuary 11th, 2010 / 22:03 / #951

    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.

  10. brof!January 17th, 2010 / 21:06 / #967

    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

  11. brof!January 17th, 2010 / 23:45 / #968

    i just deleted the .htaccess file…

  12. comosetaJanuary 23rd, 2010 / 18:43 / #975

    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 :)

  13. comosetaJanuary 24th, 2010 / 09:27 / #976

    i have some troubleshooting in tha amf folder with some files with public declaration

  14. comosetaJanuary 24th, 2010 / 11:43 / #977

    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

  15. comosetaJanuary 24th, 2010 / 11:53 / #978

    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

  16. Martim DornellasFebruary 18th, 2010 / 13:22 / #1015

    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?

  17. PhilFebruary 19th, 2010 / 11:08 / #1016

    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

  18. AnaMarch 1st, 2010 / 01:24 / #1021

    I am really excited for the FLA -file, when does it come out?

  19. PhilMarch 1st, 2010 / 09:24 / #1022

    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

  20. TakApril 14th, 2010 / 00:13 / #1041

    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

  21. EugeneApril 29th, 2010 / 18:24 / #1089

    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

  22. PhilApril 30th, 2010 / 09:51 / #1090

    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

  23. EugeneMay 2nd, 2010 / 10:31 / #1092

    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

  24. EugeneMay 12th, 2010 / 22:18 / #1117

    hello Phil !

    anything you can advise ? I’m still stuck on this issue :-(

    E

  25. PhilMay 13th, 2010 / 23:58 / #1119

    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

  26. christianMay 17th, 2010 / 17:53 / #1124

    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

  27. EugeneMay 17th, 2010 / 23:10 / #1125

    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

  28. EugeneMay 25th, 2010 / 14:21 / #1142

    hello again Phil, did you manage to give it a look ?
    I ‘m so disappointed not being able to make it work…

    E

  29. PhilMay 26th, 2010 / 08:41 / #1143

    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

  30. PhilMay 26th, 2010 / 08:51 / #1144

    @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

  31. EugeneMay 26th, 2010 / 21:46 / #1145

    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

  32. Pointer Men's BasketballOctober 30th, 2010 / 08:34 / #1391

    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.

  33. BrianDecember 23rd, 2010 / 06:35 / #1502

    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

  34. PhilDecember 24th, 2010 / 13:08 / #1505

    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

  35. BrianDecember 26th, 2010 / 07:31 / #1506

    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

  36. PhilDecember 30th, 2010 / 10:01 / #1511

    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

  37. BrianJanuary 2nd, 2011 / 07:44 / #1512

    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

  38. BrianJanuary 20th, 2011 / 11:17 / #1518

    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

  39. PhilJanuary 20th, 2011 / 11:31 / #1520

    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

Post a comment