John Dyer

Technology and web development in curly bracket languages {Javascript, C#, ActionScript}

Yet Another Coverflow using Papervision

by John Dyer 4. November 2007 22:00

UPDATE: Now uses Papervision 2.0 Alpha (GreatWhite). 

There are a million Apple Coverflow knockoffs (blitz, doug mccune, antti kupila, weber design) and now there are a million and one. This one is made using Papervision3d and Tweener and includes keyboard and scrollwheel support. Here are two uses, one pulling from a friend's Flickr photo stream, and the other pulling from DTS's recent media items:

 



This uses the Phunky GreatWhite branch of Papervision (1.9 or so 2.0 Alpha). Here's the setup:

var coverFlowData:Array = [{title: "item title", clickUrl:"http://mysite.com/target", imageUrl:"http://mysite.com/image.jpg"}];
var coverFlow = new CoverFlow(stage, camera, scene, coverFlowData); 

And here's the project (for Flash CS3): coverflow.zip (16.21 kb)

Comments

11/9/2007 4:20:06 AM # pingback thecorkboard.org | Reply
Pingback from thecorkboard.org

iTunes and CoverFlow @ your library… at The Corkboard
11/10/2007 6:15:19 PM # umer umer United States | Reply
I used the following lines to setup your CoverFlow file with Phunky branch of Papervision 1.9:

var coverFlowData:Array = [{title: "item title", clickUrl:"http://mysite.com", imageUrl:"ImageFlow/pic/1.jpg"}];
      var camera:Camera3D = new Camera3D();
      var container:Sprite = new Sprite();
      var scene:Scene3D = new Scene3D(container);
      addChild(container);      
      var coverFlow = new CoverFlow(stage, container, camera, scene, coverFlowData);

but I get the following errors:
DisplayObject3D: null
DisplayObject3D: null
Papervision3D Beta 1.9 - PHUNKY (20.09.07)

DisplayObject3D: null
0: 5
DisplayObject3D: null
TypeError: Error #1010: A term is undefined and has no properties.
  at com.webeyestudio::CoverFlow/::shiftCoverFlow()
  at com.webeyestudio::CoverFlow/com.webeyestudio::imageLoaded()

Can you suggest any solution to solve the problem I am having?
11/10/2007 6:19:05 PM # John Dyer John Dyer | Reply
@umer,
I just updated the download to include a full project instead of just the class, so you can see how it all works. It includes parsing the RSS feed from flickr.
John Dyer's last post: feedproxy.google.com/.../post.aspx" rel="nofollow">Simple Cross-Browser HTML5 video with a single H.264 file and fallback options
11/10/2007 6:40:28 PM # umer umer United States | Reply
@John Dyer
Thanks for the quick response. I appreciate it.
11/22/2007 3:46:47 PM # gnupi gnupi Germany | Reply
hi there!
as i tried to start the coverflow from the .fla in the zip,
i got some errors, i´m not quite sure how to manage them.

as far as i see, there is a problem with the AS3 Tweener Class I installed:

  
11/28/2007 6:40:50 AM # pingback nicva2.org | Reply
Pingback from nicva2.org

Feargal’s blog  » Blog Archive   » My del.icio.us bookmarks for November 27th
11/28/2007 6:44:48 AM # John Dyer John Dyer United States | Reply
@gnupi, it looks like your comment got cut off...
John Dyer's last post: feedproxy.google.com/.../post.aspx" rel="nofollow">Simple Cross-Browser HTML5 video with a single H.264 file and fallback options
11/28/2007 8:53:59 AM # Tomas Tomas Chile | Reply
Hi, great job man!
First of all i'd like to thank you for the code, is really cool.
I m trying to implement it, but just can't make the InteractiveScene3DEvents in the planes work. I wonder if you could help me with that.
P.D: I am using PHUNKY (20.09.07)
Thanks in advance.
12/2/2007 9:26:47 PM # fabien fabien France | Reply
Hi !

First i'd like to congrate you for your great work ! But i'm such a noob in flash and i've tryed severals times to made your coverflow working with my flickr ID but i got 3 errors when i compile my .fla

I think i've got trouble with tweener but i don't know how to use it, could you please help me

thanks Fab.
12/2/2007 10:16:20 PM # Chris Bray Chris Bray United States | Reply
Hey man -- great work!  This looks to be the best CoverFlow component out there yet.  The movement is very smooth.  Have you looked at killing the unnecessary idle time rendering as done in Doug's implementation?

~ Chris
12/6/2007 4:04:10 AM # John Dyer John Dyer United States | Reply
@fabien, you might want to check that the paths to Papervision and Tweener are setup correctly for your site.

@Chris, for one implementation I did add some code to only render when there is movement. Perhaps I'll update the source for PV2.0
John Dyer's last post: feedproxy.google.com/.../post.aspx" rel="nofollow">Simple Cross-Browser HTML5 video with a single H.264 file and fallback options
12/6/2007 2:40:53 PM # K K Italy | Reply
Hi,
your cover flowrocks! And reading this article I discovered both papervision and tweener... awesome stuff, thank you.
but...
I have a little problem, when i try to use you .fla, after the installation of papervision and tweener, I get this errors that I can't fix ..

ten error with this description
  
12/7/2007 2:47:28 AM # John Dyer John Dyer United States | Reply
@K, looks like your comment got a little messed up. Sorry about that.

As for the Phunky branch, it has been discontinued in favor of PV2.0 which is currently alpha. I need to update my stuff to see if it works with PV, but I might wait until it's more stable.
John Dyer's last post: feedproxy.google.com/.../post.aspx" rel="nofollow">Simple Cross-Browser HTML5 video with a single H.264 file and fallback options
12/10/2007 3:58:58 AM # Bryan Schoen Bryan Schoen United States | Reply
I've been looking around for an AS3.0 cover flow and yours is by far the best so thank you very much for sharing your code.  However, I am having a couple problems getting the code to work on my cpu.  Here are the main errors I am getting...

CoverFlow.as line 168: planeMaterial.interactive = true
CS3 doesn't recognize the interactive property of PV's BitmapMaterial

CoverFlow.as line 218: if (!showReflections || ev.y <= ev.displayObject3D.extra.height )
CS3 doesn't recognize the y property of PV's InteractiveScene3DEvent

FlickrFlow.as line 59: scene = new Scene3D( container, true )
CS3 expects one argument where you give Scene3D two arguments

I am using PV 1.5 and Tweener 1.26.62 both from code.google.

Help would be greatly appreciated, as I am doing my best to learn the PV class.
12/10/2007 7:31:06 PM # John Dyer John Dyer United States | Reply
@Bryan, this coverflow was created under Papervision 1.9 (Phunky). Unfortunately, the code for "interactive" changed a lot between 1.0, 1.5, 1.9 and now 2.0. I would recommend upgrading to 2.0 (using SVN). I updated my code to 2.0 and I'll post it soon.
John Dyer's last post: feedproxy.google.com/.../post.aspx" rel="nofollow">Simple Cross-Browser HTML5 video with a single H.264 file and fallback options
12/12/2007 5:33:04 AM # alexey alexey United Kingdom | Reply
please John, do a favor and publish 2.0 code. Thanks!
12/12/2007 4:37:09 PM # catalin catalin Romania | Reply
please John, publish 2.0 code. Thanks you too!
12/13/2007 1:20:05 AM # John Dyer John Dyer | Reply
The Papervision 2.0 (GreatWhite) code is up. Also includes Chris Bray's suggestion about idle time rendering.
John Dyer's last post: feedproxy.google.com/.../post.aspx" rel="nofollow">Simple Cross-Browser HTML5 video with a single H.264 file and fallback options
12/22/2007 3:44:13 PM # wil wil United States | Reply
Great work,

Having trouble finding how the scrollbar works. no scrollbar is defined
in the call to GenericScrollbar(_stage, scrollbar, scrollbar);

Thanks
1/18/2008 11:30:37 PM # Eric Eric United States | Reply
hey. i a very small amount of flash knowledge. i'd like to post a flash cover flow of some images i have.. i like the one you have here on your site, but i'm not exactly sure what i have to do in order to do that.  could you help me out? thanks for your time.
1/23/2008 1:44:24 PM # Moss Moss | Reply
I don't understand how to implement it.
1/29/2008 4:48:02 AM # Dan Dan United States | Reply
If you  change the size

CoverFlow(stage, camera, scene, coverFlowData, true,390,325)
(instead of 240/200) the clipping is horrible.

Any ideas how to enable a larger display of items?

1/29/2008 11:29:17 PM # Dan Dan United States | Reply
Nevermind - it's a fault of PV3d, not the script..

If you increase the size of the items, of have more items on the stage at once (say 1400pixels wide) then you get clipping..

When I ported this to flex I got clipping from about 6 items left and on, and 6 items right and on..

The fix is to move out (decrease your Z-index value) and zoom in with the camera (like a zoom of 4 and a z of -700)

1/29/2008 11:33:55 PM # John Dyer John Dyer United States | Reply
@Dan, thanks for the updates. I noticed something like this as well. It also seems to differ from PV 1.5, 1.7, 1.9, and 2.0. I'm glad you found a good solution. Also, you could try increasing the number of triangles for each image...
John Dyer's last post: feedproxy.google.com/.../post.aspx" rel="nofollow">Simple Cross-Browser HTML5 video with a single H.264 file and fallback options
2/6/2008 7:36:06 PM # James James United States | Reply
John,
This is awesome stuff but it seems like there is a problem with the eventListener added to the plane. Sometimes it doesn't register a click at all and other times it will send me back the wrong index. I noticed you have the same problem on the two examples you posted so I'm wondering if this is a problem with papervision 2.0.
2/7/2008 3:09:15 AM # John Dyer John Dyer United States | Reply
@James, I think it's a problem with PV2.0. I still have the PV 1.9 code lying around and it worked perfectly, so I need to get around to releasing it sometime.
John Dyer's last post: feedproxy.google.com/.../post.aspx" rel="nofollow">Simple Cross-Browser HTML5 video with a single H.264 file and fallback options
2/7/2008 8:59:52 PM # James James United States | Reply
John, Thank you so much for the quick reply. I appreciate you making this open source. When you post the working 1.9 code, you will without a question have the best flash coverflow option on the internet.
2/15/2008 1:21:52 AM # Jorge Jorge United States | Reply
John,
I'm very interested in using this coverflow in a website my department is working on but as other forum posters have already found, the 2.0 is a little finicky. I was just wondering if posting the 1.9 was anywhere on the horizon.

Thanks,
Jorge
2/15/2008 6:42:27 AM # John Dyer John Dyer United States | Reply
The PV2.0 (GreatWhite) event problems have been fixed based on a tip from Jorge. The download has been updated.
John Dyer's last post: feedproxy.google.com/.../post.aspx" rel="nofollow">Simple Cross-Browser HTML5 video with a single H.264 file and fallback options
2/16/2008 3:32:30 PM # Alexander Weiss Alexander Weiss Netherlands | Reply
I really love this CoverFlow... It's very smooth, in contradiction to most others.
The only problem I had was trying to put it on a white background, but after a moment of changing and trying i finally found a way to make non greyish reflections.
You should add transparency. I  made it work with transparant images, as you would normally see the gradient over other images, and it looked quite nice (www.helphettoneelstuk.nl/links).

Thank you very much, for this wonderfull CoverFlow (for which I had been looking quite some time)

2/24/2008 7:06:20 PM # Sebastian Sebastian Germany | Reply
hi,

verry nice work!!
where do i have do change the paths to PV and Tweener?

thx 4 answer
sebastian
2/24/2008 9:06:05 PM # John Dyer John Dyer United States | Reply
@Sebastian, Open the .fla file and go to Properties and click the settings button next to the Actionscript version dropdown. You can also do this at "Edit > Preferences > Actionscript > ActionScript 3.0 Settings"
John Dyer's last post: feedproxy.google.com/.../post.aspx" rel="nofollow">Simple Cross-Browser HTML5 video with a single H.264 file and fallback options
2/26/2008 7:05:09 PM # nono nono France | Reply
Very nice script but 2 question :
where are the images (covers), how define it
How integrate the SWF to a simple web page ?

thanks
3/5/2008 5:53:10 PM # Martin Martin Poland | Reply
Very nice coverflow Smile One of the most 'apple like' Laughing But hey... Could you explain me how to use this Laughing ? I'm a noob in flash and just dunno what to do... How to put images? How to get this thing working Smile What to do if i want to open a bigger version of image when clicking on a cover?

Thanks 4 answer!!
3/5/2008 5:55:21 PM # Martin Martin Poland | Reply
Oh... And where can i find PV 2.0 if i need it?
3/7/2008 7:23:50 PM # nono nono France | Reply
Hi John, i succed in custom your coverflow and integrate it on my future website project, it's excellent ! but there is one problem, the fact to click the on left or on right cover with the mouse don't work everytime, it don't scroll and move the wanted item and center it, sometimes it work when click on scroll bar or use keybord arrows but not everytime, i have PV2.0 like u said and tweener and right configured the AS files source, so i have made my own searches, look papervision as files and haven't find why i do it, but i'm sure that it's happen hre, on CoverFlow.as file, under the mousedonwHandler private function :

var index = viewport.hitTestMouse().displayObject3D.extra.planeIndex;

please tell me more, thank you very much, very nice script, apolozige my speaking.
3/7/2008 10:33:52 PM # b b Italy | Reply
your example is cool...thanks for providing the code.
I'm having problems though: the coverflow shelf can't seem to be able to stick to the center of the screen and it always loads and displays in the bottom right corner..

(I'm new to Papervision3d) I tryied moving the camera, moving the scene, moving the viewport, adding them to a container e and move the container...but I couldn't make it mode from the lower right corner
I used the greatWhite branch

do you have any tips on how one could center the shelf?
any documentation on what the viewport3d does? how is it different from the scene?

thanks alot anyways
3/7/2008 10:50:35 PM # ZaphodAK42 ZaphodAK42 United States | Reply
Hello, John. Splendid piece you have here. I would like to use this on my websites, but I don't know beans about Flash (I have vCS3, however). If there is a tutorial available for nooblings, or an IRC chan, or something, google hasn't come up with it. So, um... help? I need help with what elements of GreatWhite to download and where to put them, where to put the Tweener files, and how to edit the AS's and FLV to have my pictures show (that might be all, but I don't know).

Thanks in advance
3/7/2008 10:52:02 PM # ZaphodAK42 ZaphodAK42 United States | Reply
Oh, and you can get me at achythlook(a)google(dot)com, if you wish
3/8/2008 9:27:08 PM # Chris Chris Germany | Reply
I got a bunch of errors. Possibly somebody could help.
I am a Newbee to Papervision, but "Yet Another Coverflow" is perfect! Smile
I really want to get it work.


I used TortoiseSVN to get the latest Papervision-Repository 442.

Then i configured Actionscript3.0 path to \branches\GreatWhite\src.
Tweener Class i put to \en\First Run\Classes\FP9.

------
Occouring errors are: (CoverFlow.as)

Line 177:  1119: Access of possibly undefined property interactive through a reference with static type org.papervision3d.materials:BitmapMaterial.

Line 229:  1119: Access of possibly undefined property y through a reference with static type org.papervision3d.events:InteractiveScene3DEvent.

Line 313,326,337   1120: Access of undefined property Tweener.

Line 29     1172: Definition caurina.transitions:Tweener could not be found.
----

So i change AS3 classpath to \as3\trunk\src... this i've read anywhere i think in the papervisionwiki...

Only one Error occours:
Line 67   1046: Type was not found or was not a compile-time constant: Viewport3D.

I really would but can't help myself.

I would really happy if somebody of you could help a little...

Sorry for my bad english, it's been years ago i spoke the last english word....

Thank you.
Chris
3/8/2008 10:31:56 PM # Wouter Wouter Netherlands | Reply
hey John, great thing you created here!

but I found the same bug as nono (earlier comment)....clicking on an item (image) doesnt always work...I found a way to reproduce it: fire the thing up, then click ABOVE the items in the 'empty black area'....then try clicking an item again and it won`t work...I tried to fix this myself but haven`t been succefull (yet!) and hop it is easy for you to fix....I will keep trying though and if I succeed I`ll be sure to post a comment here!

thanx John,

greetings!
3/10/2008 12:33:29 AM # Charly Charly France | Reply
Hi John,

Thx a lot for your great job, really huge !
But like some others here, I can't have the click work each time on the pictures... :-(
I've spent hours tryin' to fix it but without any result... :-(
The only thing I found out is that the clicks work when I comment out this line :
"if ( !showReflections || ev.y <= ev.displayObject3D.extra.height ) {  "
If it can help...
Still workin' on it, I'll let you know if I find any solution...

Take care.

Charly
3/10/2008 2:44:36 AM # Wouter Wouter Netherlands | Reply
@charly: unfortunately that doesnt solve it.....when you read my comment and follow those 'instructions' you`ll see it still doesnt work

if the whole thing works from the start seems to depend on where you have your mouse pointer when you export the movie (i do this in my flash IDE with <ctrl><enter>
3/18/2008 9:48:13 PM # ic00 ic00 United States | Reply
John, that's beautiful.

I'm new to actionscript and wondering how I can use this coverflow to load local images.

Thanks alot,
3/29/2008 6:07:52 AM # d_fyah d_fyah Germany | Reply
first of all, thanks for sharing this great piece of work. I first had the 'cant click' problem, but found a workaround for that issue.

Now I lost my head while trying to figure out a procedure to 'reset' the coverflow in order to reinitialize it with a different array of pictures. The problem is -and it cant be a big deal lol- I dont really get to remove the created scene / planes / objects from the stage before the reinitialization...so it places a new (working) coverflow on top of the existing items in the scene / viewport. Any help on the on the 'removal' of the created objects would be greatly apprecciated.

once again, respect for that work and the 'open-sourcing'

d_fyah

3/31/2008 8:20:44 AM # James James | Reply
Hi John,
Firstly, thanks for publishing this code - I have implemented my own CoverFlow style interface and was concerned that the scene was being rendered on every frame (a little overkill) - this is what brought me to your implementation. I also experienced intermittent issues when selecting items with the mouse. It seemed to appear that if the mouse was not located over the Coverflow as it started up then certain mouse events are not being handled correctly by Papervision.
I've found a workaround, it may not be the best solution, but it maintains rendering only when necessary.Firstly it involves adding 2 more event listeners to the viewport interactiveSceneManager

viewport.interactiveSceneManager.addEventListener(InteractiveScene3DEvent.OBJECT_MOVE,vpMouseMove);
viewport.interactiveSceneManager.addEventListener(InteractiveScene3DEvent.OBJECT_OUT,vpMouseOut);

In the mousemove handler function add the following code
if(viewport.hitTestMouse().displayObject3D is Plane){         viewport.interactiveSceneManager.removeEventListener(InteractiveScene3DEvent.OBJECT_MOVE,vpMouseMove);
        viewport.interactiveSceneManager.updateRenderHitData();
}

and in the mouseout handler function add
viewport.interactiveSceneManager.addEventListener(InteractiveScene3DEvent.OBJECT_MOVE,vpMouseMove);

This seems to work for me - obviously it may be improved as you will inevitably get multiple updates to updateRenderHitData. I'll leave it to you guys to improve upon, but I hope it helps someone.
      
4/3/2008 1:35:10 PM # rd rd United Kingdom | Reply
Hi John,

Further to your help yesterday I did some investigation (tinkered) and I hit upon another problem but this time I also come armed with the solution Smile, you may want to include this in your version to help with potential future issues.

While the solution you gave me yesterday helped, it did indeed allow the reflections to work on a white background but it didn't allow the reflections to work on any background as they weren't transparent so I have changed a few bit of code to provide arguably better reflections that have a transparent gradient so that they can be used with any background.

Please find code changes to the CoverFlow class below:

before*
bmpWithReflection.draw( bmp, flipMatrix, new ColorTransform(alpha, alpha, alpha, 1, 0, 0, 0, 0));

after*
bmpWithReflection.draw( bmp, flipMatrix, new ColorTransform(alpha, alpha, alpha, 1, 0, 0, 0, 0),BlendMode.LAYER );

and...

before*
holder.graphics.beginGradientFill( GradientType.LINEAR, [ 0x000000, 0x000000 ], [ 0, 100 ], [ 0, 0xFF ], gradientMatrix);

after*
holder.graphics.beginGradientFill( GradientType.LINEAR, [ 0x000000, 0x000000 ], [ 100, 0 ], [ 0, 0xFF ], gradientMatrix);

before*
bmpWithReflection.draw( holder, m );

after*
bmpWithReflection.draw( holder, m,null,BlendMode.ALPHA );


All done Smile

rd's last post: www.madeintheuk.com/.../" rel="nofollow">Interview with a Robot [Bina48]
4/3/2008 9:22:59 PM # John Dyer John Dyer United States | Reply
@rd, thanks for the code. I was initially worried that the use of alpha blending would cause the frame rate to drop so I didn't pursue it. If you're finding that it doesn't make much difference that's great! I'll look into adding it for a later version.
John Dyer's last post: feedproxy.google.com/.../post.aspx" rel="nofollow">Simple Cross-Browser HTML5 video with a single H.264 file and fallback options
4/4/2008 1:31:51 AM # rd rd United Kingdom | Reply
Performance is a valid point, but so far I haven't seen any substantial performance issues. It's all good Smile

rd's last post: www.madeintheuk.com/.../" rel="nofollow">Interview with a Robot [Bina48]
4/11/2008 3:20:30 AM # mike mike Austria | Reply
I got the same problem like chris

Occouring errors are: (CoverFlow.as)

Line 177: 1119: Access of possibly undefined property interactive through a reference with static type org.papervision3d.materials:BitmapMaterial.

Line 229: 1119: Access of possibly undefined property y through a reference with static type org.papervision3d.events:InteractiveScene3DEvent.

Line 313,326,337 1120: Access of undefined property Tweener.

Line 29 1172: Definition caurina.transitions:Tweener could not be found.

can someone help???
thx
4/11/2008 3:22:31 AM # mike mike Austria | Reply
oh sorry, not the same problem, but i think it's very similar:

1061: Call to a possibly undefined method calculateMultiply4x4 through a reference with static type org.papervision3d.core:Matrix3D.1061: Call to a possibly undefined method calculateMultiply4x4 through a reference with static type org.papervision3d.core:Matrix3D.1061: Call to a possibly undefined method calculateMultiply4x4 through a reference with static type org.papervision3d.core:Matrix3D.

did they change the papervision code? or whats the problem!
thx for help!
4/11/2008 6:27:04 AM # John Dyer John Dyer United States | Reply
@mike, sounds like there might be some PV3D differences. Make sure you're using the GreatWhite branch.
John Dyer's last post: feedproxy.google.com/.../post.aspx" rel="nofollow">Simple Cross-Browser HTML5 video with a single H.264 file and fallback options
4/14/2008 11:42:04 PM # pingback antoniomolinari.com | Reply
Pingback from antoniomolinari.com

magnum blog  » Blog Archive   » links for 2008-04-14
4/17/2008 9:27:21 PM # kevin kevin United States | Reply
I'm getting these errors:
4/21/2008 11:47:19 PM # kevin kevin United States | Reply
weird, the actual content of my errors didn't display.. here's a screenshot

-n http://tinyurl.com/5ydukr

totally unsure what to do.
any ideas?
it's very much appreciated!


4/21/2008 11:48:35 PM # kevin kevin United States | Reply
i should add that i'm using the GreatWhite Papervision version and have specified "caurina" as the directory that contains Tweener 3d
4/23/2008 3:14:25 AM # Chris Elmes Chris Elmes United States | Reply
Hi John, Looks awesome, but I am having some trouble getting it to compile, What revision number of great white did you use, it looks like they changed a couple methods in Face3D.as, I get a bunch of errors on line 165, a little poking around and I think they changed drawFace3D() to drawTriangle() and the params are a little different.

I have the latest revision of great white (532) but maybe I need to go backwards a few revisions if you haven't updated your code in a while - I am guessing you posted the 2.0 version in Nov 07?

So if you could let me know what revision of great white you are using that would be awesome.

Thanks in advance

Chris
4/29/2008 2:35:53 AM # Soenke Soenke Germany | Reply
hi John, thanks for sharing the code.
is there any license needed to use the cover flow in one of my projects?
well done!

Soenke
5/4/2008 2:40:30 AM # pingback koyamataro.com | Reply
Pingback from koyamataro.com

小山太郎.com  » Blog Archive   » Flash 気になるリンク集
koyamataro.com's last post: http://koyamataro.com/2010/07/15/wordpress-meta-%e3%81%aewordpress%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b/" rel="nofollow">WordPress meta のWordPressを削除する
5/5/2008 4:04:00 PM # pingback theflashindex.com | Reply
Pingback from theflashindex.com

The Flash Index  » Blog Archive   » Apple Coverflow in Papervision3D
5/11/2008 9:31:47 PM # meekish meekish United States | Reply
This is the first clone I've found that really feels like CoverFlow. Excellent work.
5/13/2008 6:10:06 AM # Daron Daron United States | Reply
anyone know how to get this to work in flex
5/15/2008 3:25:53 AM # Jim Jim United Kingdom | Reply
Hey John,  Great work on your amazing Coverflow. I was hoping to try a simpler treatment of this which just loaded image files from an XML source file. Little did I know how difficult is was going to be! : ) Anyway I seem to have most of the issues resolved stripping out the text and click through references in the FlickerFlow.as file but I'm really struggling with CoverFlow.as. The problem all seems to stem from …

line 119// imageLoader.load( new URLRequest( coverFlowData[currentLoaderIndex].imageUrl ), loaderContext );

imageUrl hasn't been defined anywhere in this file so I'm getting a a error message…

TypeError: Error #1010: A term is undefined and has no properties.

Any advise would be awesome.

thanks, Jim
5/16/2008 12:42:20 AM # John Dyer John Dyer United States | Reply
I'll try to get out an update that shows how to load from a simple local XML file.
John Dyer's last post: feedproxy.google.com/.../post.aspx" rel="nofollow">Simple Cross-Browser HTML5 video with a single H.264 file and fallback options
5/16/2008 8:52:28 PM # Jim Jim United Kingdom | Reply
Thanks John. I've resorted leaving the code as you had it originally and using Yahoo's XML namespace to get round the problem for now. Not exactly tidy but does the job! A simpler version would still be great to have. I've also noticed that resizing the viewport in FlickerFlow.as trips out when it goes for the Coverflow.as. file
5/28/2008 5:05:25 PM # John John | Reply
hi,
is it possible to use the coverflow without flickr? i like to use it with pictures from a folder. is there an easy way?
thanks.
6/2/2008 11:08:19 PM # wcteskey wcteskey United States | Reply
This seems to have happened over the last weekend. I had it working
on Friday.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
  at CoverFlow/::imageLoaded()
Error opening URL 'http://file:/crossdomain.xml'
Failed to load policy file from http://file:/crossdomain.xml
6/3/2008 10:45:35 PM # Nigel Nigel United States | Reply
I really like this coverflow. Great work!  And I'd also like to use it with a simple xml file pointing to pictures in a folder etc.  Looking forward to that version.  
6/6/2008 12:14:14 AM # wcteskey wcteskey United States | Reply

I have just a question from CoverFlow.as line 320
dispatchEvent(new CoverFlowEvent(CoverFlowEvent.ITEM_FOCUS, newCenterPlaneIndex));
Commenting out this line seems to have no effect whatsoever on
the functionality of the app.  

Comment 2: The source is missing a ; after this statement. line 166
Amazing enough the CS3 does not seem to care until you start making
changes to the code then it gets real confusing.  

holder.graphics.beginGradientFill( GradientType.LINEAR, [ 0, 0 ], [ 0, 100 ], [ 0, 0xFF ], gradientMatrix) !!! missing ; !!!
        


Also
Well It seems be slightly less broke then it was.  Now it loads one picture before you get the following:

Connection to http://file:/apps/video/video_mtl_xml.gne?v=x&photo_id=null&secret=null&olang=null&noBuffer=null&bitrate=700&target=_blank halted - not permitted from www.flickr.com/.../stewart.swf
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: www.flickr.com/.../stewart.swf cannot load data from http://file:/apps/video/video_mtl_xml.gne?v=x&photo_id=null&secret=null&olang=null&noBuffer=null&bitrate=700&target=_blank.
  at PlaylistParser/loadPlaylistUrl()
  at Stewart/::initialize()
  at Stewart$iinit()

6/12/2008 11:26:56 PM # soulgloooow soulgloooow United States | Reply
EXCELLENT,EXCELLENT CODE!!!! For those having trouble with dynamic centering, it's as easy as using the stageWidth/stageHeight properties. Worked like a charm.
7/17/2008 7:26:42 PM # Joe Joe United States | Reply
Is there a simple example somewhere of how to use the latest version of the code?
7/28/2008 3:08:27 AM # Justin Justin United States | Reply
John, can you help me place this on a white background?  Itried using the method described by "rd" on April 3rd, but the image still appears to have a black background behind it.
7/28/2008 7:02:34 PM # John Dyer John Dyer United States | Reply
Justin,
I think the best way might be to replace all the references to 0x000000 (which mean 'black') with 0xFFFFFF (which in hex means 'white'). That should do it...
John Dyer's last post: feedproxy.google.com/.../post.aspx" rel="nofollow">Simple Cross-Browser HTML5 video with a single H.264 file and fallback options
7/29/2008 4:40:42 PM # Philippe Philippe France | Reply
Nice and simple, thanks.

In FlickFlow, instead of the "stupid hack" to properly get the title, just get the first title node:
var t:String = entryNode.title[0].text();

You're just getting a double title because of the additional flickr <media:title> node.
8/14/2008 7:17:01 PM # ico ico Germany | Reply
Hi,
first of all i wanna say:"great job", i have done something very similar to that but now i am stuck into a problem...i would like to have some alpha effect within the shifting, somehow i cannot make it work, plane doesnt't get alpha...any ideas how could i make fade effect.

best regards
8/15/2008 6:39:00 PM # P P United Kingdom | Reply
Hi,

Anyone know how many planes can I render with it ?
1000 is possible ?

thanks.
9/24/2008 9:07:09 PM # Brandon Brandon Canada | Reply
Does anyone here know where I can find a tutorial on this step by step?
Thanks
10/6/2008 3:22:26 PM # pingback davidmaignan.com | Reply
Pingback from davidmaignan.com

David Maignan  » Blog Archive   » Carousel - Itunes
10/6/2008 9:20:05 PM # pingback superjavason.gicp.net | Reply
Pingback from superjavason.gicp.net

Superjavason  » Blog Archive   » flash CoverFlow photo show effect (ActionScript3)
11/20/2008 12:03:55 AM # Brandon Brandon United States | Reply
Hi,

Great work!!! Just one question, is it possible to make this a continuous cover flow?
12/2/2008 6:42:13 PM # baskarans baskarans India | Reply
Hi John,

Thanks for your wonderful code. I have a problem: I CANT click the plane(image) even though mouse click event code(planeClicked) present. How can i overcome this problem. Could anyone pls suggest what's wrong.

Thanks in Advance.
Bas.S
12/6/2008 4:31:51 AM # Alex Alex United States | Reply
I was wondering if there was a way to fade the left and right most edges of your coverflow with papervison3d 2.0? I was looking at how the itunes coverflow works and it does fade left and right. Let me know if you think this is possible. P.S. I think this clone is the best one I've seen. Good work!

12/6/2008 4:47:58 AM # John Dyer John Dyer United States | Reply
@Alex, you could try to do this programatically, but you could also add a gradient just in the Flash IDE on top of whereever you have the coverflow.
John Dyer's last post: feedproxy.google.com/.../post.aspx" rel="nofollow">Simple Cross-Browser HTML5 video with a single H.264 file and fallback options
12/6/2008 5:17:10 AM # Alex Alex United States | Reply
John, thanks for your reply.

I tried both approaches and neither worked.

1. I created a movieClip with a black to white gradient and exported it for actionscript.

Then i did:

var mc:MyClip = new myClip();
addChild(mc);

myClip.casheAsBitmap = true;
this.mask = myClip;

2. Same as 1 but created the gradient shape programmaticlly.

Papervision alwasy shows up on top most layer while my gradient shows up behind it.

Well thanks again for your replay let me know if you think there is a better approach than this.

Thanks!
Alex

12/14/2008 1:48:19 PM # pingback timovirtanen.com | Reply
Pingback from timovirtanen.com

Flash Coverflow (PV3D) : timovirtanen.com
1/21/2009 10:45:35 PM # Mike Mike United States | Reply
Hi John,

I have been puzzled for the last two days about something.  I have been trying to add rollover functionality to each image.  I added the following two lines of code below where you set the planeClicked event listener in CoverFlow.as

plane.addEventListener(InteractiveScene3DEvent.OBJECT_OVER, planeRollover);      
      plane.addEventListener(InteractiveScene3DEvent.OBJECT_OUT, planeRollout);

Now, my rollovers work.  The issue is that the rollovers are working when the user rolls over the reflection not just the image.  But the strange thing is the click event doesn't get triggered when a user clicks on the reflection.  Do you know why? Where is that listener getting overwritten?

I noticed in your FlickrFlow class you have the following line of code viewport.buttonMode = true; so when the user rolls over an image the cursor changes to button mode.

I want to make sure if a user rollsover the image and/or reflection the rollover, out and click functionality is synched.

Could you please help me with this issue?  Any information would help a lot.

Thanks,
Mike
3/4/2009 7:47:48 PM # rsprake rsprake United States | Reply
Was able to modify and use your code in a project. Thanks for the hard work!
rsprake's last post: www.eightdotthree.net/.../" rel="nofollow">How to integrate Twitter and Facebook and not annoy your friends
3/4/2009 7:59:54 PM # John Dyer John Dyer United States | Reply
Awesome! If you have a link to the project, I'd love to see it.
John Dyer's last post: feedproxy.google.com/.../post.aspx" rel="nofollow">Simple Cross-Browser HTML5 video with a single H.264 file and fallback options
7/29/2009 3:07:02 AM # pingback nobicom.de | Reply
Pingback from nobicom.de

jkdoc» Blog Archive » Ontoprise Coverflow
6/5/2010 2:32:20 AM # adrenaline adrenaline United Kingdom | Reply
Hi the link for the download is broken
6/13/2010 3:57:51 AM # Astral Projection Astral Projection United States | Reply
Your cover flow is amazing. When I looked over your article I discovered both of papervision and tweener, which were new to me... incredible contribution, thanks.
7/1/2010 2:45:07 AM # Prescott Prescott United States | Reply
Yes, I love these to feature photo's and other art. Glad more options are coming out. I know there are some free services out there too that automate this. Thanks
7/5/2010 3:44:43 PM # steve steve United Kingdom | Reply
Papervision3D now has integrated QuadTree support.  For those of you who aren’t sure what this means – it is a technique of subdividing the screen into smaller and smaller regions to resolve potential conflicts between triangles.  This is one solution to the common error found in the Painter’s algorithm that Papervision, (and all Flash3D engines) uses.
7/7/2010 9:49:05 PM # Susanne Dale Susanne Dale United States | Reply
Hi John,

Thanks so much for the code.

Like a couple of others, I can't have the click work each time on the pictures.

I've tried to fix it but without but had no luck.

Following another comment above; I found out is that the clicks work when I comment out this line :
"if ( !showReflections || ev.y <= ev.displayObject3D.extra.height ) {  "

Any ideas?

Thanks again.
Susanne Dale's last post: http://www.thedogtrainingclub.com/papillon/" rel="nofollow">Papillon
7/10/2010 4:45:48 PM # Savita Savita India | Reply
Its great feature with keyboard and mouse....which makes it simple and easier. excellent code. wonderful post with useful information shared here.. tnks
Savita's last post: feedproxy.google.com/.../post.aspx" rel="nofollow">Simple Cross-Browser HTML5 video with a single H.264 file and fallback options
7/13/2010 1:14:36 PM # benrhayader benrhayader France | Reply
Hey there
The coverflow demo is amazing !

I wish i could dig in the code, but it seems that the download link is down !!
I'd be really grateful if someone could rehost it or share it with me
thanks in advance

ben
7/23/2010 11:35:33 AM # Reda Makhchan Reda Makhchan France | Reply
lien de telechargement ne marche pas, quelqu'un peux nous aider pour pouvoir telecharger le code source?

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Web Statistics