Flex / Flash Front End For Gallery

mikeypotter

Joined: 2006-02-22
Posts: 12
Posted: Tue, 2006-06-06 14:10

(Updated to fix broken links)

I have (finally!) got around to publishing the source code for my PHP Gallery / Flex integration. You can see it in action at http://www.wickeddemo.com/flex_gallery/FlexGallery.html . NOTE: You need Flash Player 9 ( http://labs.adobe.com/technologies/flashplayer9/ ) to view this site. Flash Player 9 is currently in beta.

The Flex / Flash front end to Gallery is at http://www.wickeddemo.com/flex_gallery/FlexGallery.html .

The PHP code is at http://wickeddemo.com/amfphp/services/embededGallery.phps .
When you visit the Flex front end to Gallery, right click on the Flex application and select "View Source" to see the code. Or, view the source at http://www.wickeddemo.com/flex_gallery/srcview/index.html .
This is an example of using AMFPHP http://www.amfphp.org for data transfer from PHP to Flex / Flash.

For those of you unfamiliar with Flex, it is essentially building Flash applications in Eclipse, as opposed to Flash authoring. Flex 2.0 applications require Flash Player 9 to run, as they compile into ActionScript 3.

Mike Potter
Adobe Systems Inc.
Web Evangelist
http://blogs.adobe.com/mikepotter/

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-06-10 10:07

nice proof of concept. :)
you didn't pass the g2 coding style review though ;)

the amfphp link is also pretty interesting. we'll probably use all that for a flash based slideshow.

the requirement of flash player 9 is a real problem though. basically that means that noone can use flex for websites within the next 2 years without having either a non flash version available or a flash < 9 version available as well.

 
mikeypotter

Joined: 2006-02-22
Posts: 12
Posted: Mon, 2006-06-12 13:10
valiant wrote:
the requirement of flash player 9 is a real problem though. basically that means that noone can use flex for websites within the next 2 years without having either a non flash version available or a flash < 9 version available as well.

Not to sound too much like an Adobe kool-aid drinker, but the most recent version of Flash player is distributed much more quickly than 2 years. Flash Player 8 hit 70% distribution in the US only 6 months after being released (http://www.adobe.com/products/player_census/flashplayer/version_penetration.html) Plus, newer versions of Flash Player allow it to be upgraded on the same page, so you can easily prompt people to upgrade to the latest version, without having to leave your website.

So, if Flash Player 9 comes out in July of this year, you could reasonably expect 70% of your website visitors to have access to it by December of this year, which I think is a reasonable requirement.

Mike

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2006-06-13 01:11

yep, Flash is sure special in that regard. so anyone targeting for a new website launch in fall of this year can start coding g2 / flash stuff based on flex now. :)
i'm sure your example will be very helpful once we get a little closer. a flash based slideshow ranks pretty high on the desired features list.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2006-06-13 04:05

Should not be too hard :)
I'll look into it, but I too would have to put my Flex away for awhile. This app is fantastic! Or is it the Kool-aid?

Though I have not looked at the current slideshow, I'm assuming there is an easy way to generate an array of images from an album as to keep away from rss.

-s

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2006-06-21 01:26

@mikeypotter,
Have you tried this with the FABridge?
I've got it kinda working, it seems much faster without AMFPHP.

-s

 
geezee

Joined: 2006-06-11
Posts: 4
Posted: Thu, 2006-06-22 04:16

Hey folks,

Just spent the afternoon playing around with a class to act as a data service for Gallery2. I packaged it up today for free use. I hope it helps a lot of people get the data they need.

http://fundamentalflaws.com/Gallery2/Gallery2.mxp

This component comes with 2 modified rss.php files named rss1 & rss2 that I jsut hacked around with to get them returning what I wanted using the Gallery API. It would be really cool if someone better at PHP could help me coombine them into 1 file that you can call in both ways needed.
1. to get album listing
2. to get specific album

The plugin handles this but would be nice to not have my 2 clunky files....anyways this should work in Flash 7 Player ans is published in AS2. If anyone wants the source jsut decompile or drop me a line..

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2006-06-22 03:31

Can you fix the link?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2006-06-22 10:49

Ok, where do I get the rss files?

Thanks,

-s

 
geezee

Joined: 2006-06-11
Posts: 4
Posted: Thu, 2006-06-22 17:36

The get installed into your:

c:/Documents and Settings/[local user]/Local Settings/Application Data/Macromedia/Flash/en/Configuration/Libraries/RSS

Also, I haven't updated Gallery in over 6 months so I hope they still work! I will update my server tonight and do some testing as well. Thanks for your interest suprsidr

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-01-31 03:05

Hi Mike,

I was reading a few things about Flex today and it looks very promising. Building the frontend and fast client-server communication could be a breeze with Flex Builder. While I see that one can do Flex development with free tools (flex sdk), it seems that without the Flex Builder it's not so much fun. Productivity is much lower without the Builder and a graphics design guy needs a WYSWYG tool anyway.

Is Flex Builder free for FLOSS projects?
Or is there a massive discount for non-profit / FLOSS developers?

--------------
Enter the Gallery 2 Theme Contest today!

 
mikeypotter

Joined: 2006-02-22
Posts: 12
Posted: Fri, 2007-02-02 13:41

Sorry, there currently isn't a program for Flex Builder and free or open source projects. Its an interesting idea, but we don't have anything like that currently.

Mike

 
Vicker

Joined: 2007-02-23
Posts: 2
Posted: Fri, 2007-02-23 17:11

Hi~

I guess this might be a little bit off topic...
But I am currently working on the second release of a Flex-based WYSIWYG web building tool - FLABER 2

The first version is open source and based on Flash 8.

If you are interested you can check out our WIKI.
http://www.cubeforge.net/flaber/wiki

Or play around with the developing version 2
http://www.cubeforge.net/current_projects/flaber2/flaber.html

Sorry if these links cause any violation to forum rules~

Cheers
Vicker

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2007-02-25 22:23

vicker

what does it have to do with Gallery?

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
Vicker

Joined: 2007-02-23
Posts: 2
Posted: Tue, 2007-02-27 04:04

valiant,

Is just because I see you talking about WYSIWYG tools, then I posted.
Sorry to be off topic~

 
yuks

Joined: 2008-03-12
Posts: 1
Posted: Wed, 2008-03-12 10:50

HI,
/sorry for my bad english/

I have installed Gallery2 and AMFPHP after executing instructions on http://blogs.adobe.com/mikepotter/ i build flex app but cant load any data from gallery2
any ideas ?

 
Sigge
Sigge's picture

Joined: 2008-07-01
Posts: 1
Posted: Tue, 2008-07-01 14:25

Is the demosite still online? When I click the link, a french site with advertisement opens. I have this on different pc's, so I don't think it's mallware/hijack on my side.

 
JohnnyC

Joined: 2006-08-22
Posts: 22
Posted: Sun, 2008-08-31 16:30

I contacted mikeypotter, and he informed me that the code is no longer available. Did anyone happen to download it? If so, could someone make this available somewhere? I'd like to use what he did as a starting point for my project.